diff options
author | Francois Ferrand <thetypz@gmail.com> | 2014-06-30 17:49:32 +0200 |
---|---|---|
committer | Francois Ferrand <thetypz@gmail.com> | 2014-06-30 18:15:51 +0200 |
commit | 98bd694e2bd47b0c4ed8247546b1903c762ffdde (patch) | |
tree | 9427c2b2347a353e35234ee43d9526bdbf278e67 /config.default.php | |
parent | e5e355d06890b324df2ded707ca491f9539dd171 (diff) |
Implement LDAP user lookup.
This is required to improve compatibility when the DN cannot be easily
computed from the user name. Additionally, this allows automatically
getting the full name and email address from LDAP.
Diffstat (limited to 'config.default.php')
-rw-r--r-- | config.default.php | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/config.default.php b/config.default.php index 6810ce9d..db3b7221 100644 --- a/config.default.php +++ b/config.default.php @@ -30,10 +30,26 @@ define('LDAP_SERVER', ''); // LDAP server port (389 by default) define('LDAP_PORT', 389); -// User LDAP DN -// Example for ActiveDirectory: 'MYDOMAIN\\%s' or '%s@mydomain.local' -// Example for OpenLDAP: 'uid=%s,ou=People,dc=example,dc=com' -define('LDAP_USER_DN', '%s'); +// LDAP username to connect with. NULL for anonymous bind (by default). +define('LDAP_USERNAME', null); + +// LDAP password to connect with. NULL for anonymous bind (by default). +define('LDAP_PASSWORD', null); + +// LDAP account base, i.e. root of all user account +// Example: ou=people,dc=example,dc=com +define('LDAP_ACCOUNT_BASE', ''); + +// LDAP query pattern to use when searching for a user account +// Example for ActiveDirectory: '(&(objectClass=user)(sAMAccountName=%s))' +// Example for OpenLDAP: 'uid=%s' +define('LDAP_USER_PATTERN', ''); + +// Name of an attribute of the user account object which should be used as the full name of the user. +define('LDAP_ACCOUNT_FULLNAME', 'displayname'); + +// Name of an attribute of the user account object which should be used as the email of the user. +define('LDAP_ACCOUNT_EMAIL', 'mail'); // Enable/disable Google authentication define('GOOGLE_AUTH', false); |