diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-04-18 14:46:53 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-04-18 14:47:49 +0200 |
commit | 05b58916b25d4ff3cada5d7e78e4a6cf6de1058a (patch) | |
tree | 61a6b4bb7b137637590a52b7e118dea4669ff46c /application/config/config.php | |
parent | fa3f2e9c2dcf1fdf329778a77c2dfd2d4416f131 (diff) |
Add LDAP authentification driver
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/config/config.php')
-rw-r--r-- | application/config/config.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/application/config/config.php b/application/config/config.php index 8df4dca9d..639e4e566 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -385,6 +385,24 @@ $config['contact_me_url'] = ''; // ommiting this will remove the "contact me" li // for possible drivers look into ./application/libraries/Duser/drivers/ $config['authentication_driver'] = 'db'; +// This is only used it the driver is set to ldap +if (extension_loaded("ldap")) { + $config['auth_ldap'] = array( + "host" => 'ldaps://ldap.example.com', + "port" => 636, + "basedn" => "dc=example,dc=com", + "scope" => "one", // possible values: base, one, subtree + "options" => array( + // key/values pairs for ldap_set_option + // http://php.net/manual/en/function.ldap-set-option.php + LDAP_OPT_PROTOCOL_VERSION => 3 + ), + // Please note that php-ldap converts attributes to lowercase + "userid_field" => "uidnumber", // This has to be a unique integer + "username_field" => "uid" // This is the value the user supplies on the login form + ); +} + if (file_exists(FCPATH.'application/config/config-local.php')) { include FCPATH.'application/config/config-local.php'; } |