diff --git a/README.md b/README.md index 4bc9630..a3ec206 100644 --- a/README.md +++ b/README.md @@ -43,14 +43,11 @@ Gen_Config -> Services -> Activer LemonLDAP::NG -> "Oui" * GenConfig -> Lemonldap -> Port d'écoute du LDAP utilisé par LemonLDAP::NG * GenConfig -> Lemonldap -> Base DN des utilisateurs dans l'annuaire * GenConfig -> Lemonldap -> Utilisateur de connection à l'annuaire (DN ex: cn=reader,o=gouv,c=fr) -* GenConfig -> Lemonldap -> Mot de passe de l'utilisateur de connection à l'annuaire +* GenConfig -> Lemonldap -> Mot de passe de l'utilisateur de connection à l'annuaire (file like /root/.reader or the clear password) #### Configuration CAS -Add your CAS attributes mapping (default) - -* uid = uid -* mail = mail +Add your CAS attributes mapping ( uid = uid and mail = mail are created by default) * GenConfig -> Lemonldap -> Nom de l'attribut CAS * GenConfig -> Lemonldap -> Attribut LDAP équivalent diff --git a/tmpl/lmConf-1.js b/tmpl/lmConf-1.js index 3fa8709..1c21d85 100644 --- a/tmpl/lmConf-1.js +++ b/tmpl/lmConf-1.js @@ -229,7 +229,11 @@ }, "portalDisplayChangePassword": "$_auth =~ /^(LDAP|DBI|Demo)$/", "hideOldPassword": 0, +%if %%is_file(%%ldapBindUserPassword) + "managerPassword": "%%pwdreader("", %%ldapBindUserPassword)", +%else "managerPassword": "%%ldapBindUserPassword", +%end if "authChoiceParam": "lmAuth", "lwpSslOpts": {}, "portalSkinRules": {},