From 20e382934cfed75f9a9800c82cdee92335e42426 Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Mon, 14 Dec 2020 14:04:09 +0100 Subject: [PATCH] set default openldap --- dicos/71_lemonldap_ng_scribe.xml | 14 ++++++++------ tmpl/lmConf-1.json | 18 ------------------ 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/dicos/71_lemonldap_ng_scribe.xml b/dicos/71_lemonldap_ng_scribe.xml index 691bd0c..67433ca 100644 --- a/dicos/71_lemonldap_ng_scribe.xml +++ b/dicos/71_lemonldap_ng_scribe.xml @@ -35,8 +35,8 @@ - 636 - + 389 + oui @@ -48,17 +48,19 @@ - 636 + 389 - AD + LDAP - AD + LDAP + + + ldap_base_dn - sasl_ldap_reader diff --git a/tmpl/lmConf-1.json b/tmpl/lmConf-1.json index a794cd1..e38468e 100644 --- a/tmpl/lmConf-1.json +++ b/tmpl/lmConf-1.json @@ -171,19 +171,6 @@ %end if "ldapAuthnLevel": 2, "ldapSearchDeref": "find", -%if %%eole_module == "scribe" - "ldapBase": "cn=Users,dc=%echo ",dc=".join(%%ad_domain.split('.')) + '",' - "ldapExportedVars": { - "cn": "cn", - "mail": "mail", - "uid": "cn" - }, - "ldapGroupAttributeName": "memberUid", - "ldapGroupAttributeNameGroup": "dn", - "ldapGroupAttributeNameSearch": "cn", - "ldapGroupAttributeNameUser": "cn", - "ldapGroupObjectClass": "group", -%else "ldapBase": "%%ldapUserBaseDN", "ldapExportedVars": { "cn": "cn", @@ -195,7 +182,6 @@ "ldapGroupAttributeNameSearch": "cn", "ldapGroupAttributeNameUser": "uid", "ldapGroupObjectClass": "eolegroupe", -%end if "ldapGroupRecursive": 0, "ldapPasswordResetAttribute": "pwdReset", "ldapPasswordResetAttributeValue": "TRUE", @@ -247,11 +233,7 @@ %end if %end if "maintenance": 0, -%if %%eole_module == "scribe" - "managerDn": "cn=%%ldapBindUserDN,cn=Users,dc=%echo ",dc=".join(%%ad_domain.split('.')) + '",' -%else "managerDn": "%%ldapBindUserDN", -%end if %if %%is_file(%%ldapBindUserPassword) "managerPassword": "%%readPass("", %%ldapBindUserPassword)", %else