From 46ffc618499fa5e0c9f65a10f0336e956f6b5790 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Fri, 28 Oct 2016 15:44:21 +0200 Subject: [PATCH] Update password-config.inc.php.tmpl --- .../confd/templates/password-config.inc.php.tmpl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rootfs/etc/confd/templates/password-config.inc.php.tmpl b/rootfs/etc/confd/templates/password-config.inc.php.tmpl index 38d80ef..d15e4fc 100644 --- a/rootfs/etc/confd/templates/password-config.inc.php.tmpl +++ b/rootfs/etc/confd/templates/password-config.inc.php.tmpl @@ -9,14 +9,14 @@ $config['password_force_save'] = true; $config['password_algorithm'] = 'sha512-crypt'; $config['password_algorithm_prefix'] = '{CRYPT}'; -$config['password_ldap_host'] = '{{getenv "LDAPHOST"}}'; -$config['password_ldap_port'] = '389'; +$config['password_ldap_host'] = '{{getenv "LDAP_HOST"}}'; +$config['password_ldap_port'] = '{{getenv "LDAP_PORT" "389"}}'; $config['password_ldap_version'] = '3'; -$config['password_ldap_starttls'] = {{getenv "LDAPSTARTTLS"}}; -$config['password_ldap_basedn'] = '{{getenv "LDAPBASEDN"}}'; +$config['password_ldap_starttls'] = {{getenv "LDAP_STARTTLS" "true"}}; +$config['password_ldap_basedn'] = '{{getenv "LDAP_BASE_DN"}}'; $config['password_ldap_method'] = 'user'; -$config['password_ldap_userDN_mask'] = '{{getenv "LDAPUSERDNMASK"}}'; +$config['password_ldap_userDN_mask'] = '{{getenv "LDAP_USER_DN_MASK"}}'; $config['password_ldap_encodage'] = 'crypt'; -$config['password_ldap_pwattr'] = '{{getenv "LDAPPASSWORDATTRIBUTE"}}'; -$config['password_ldap_force_replace'] = true; \ No newline at end of file +$config['password_ldap_pwattr'] = '{{getenv "LDAP_PASSWORD_ATTRIBUTE" "userPassword"}}'; +$config['password_ldap_force_replace'] = true;