ldapauth.conf.php in LDAP integration 5
Same filename and directory in other branches
File
ldap_integration/ldapauth.conf.phpView source
<?php
// Transform the login name to something understood by the server
function ldapauth_transform_login_name($login_name) {
return $login_name;
}
// Let users in (or not) according to some attributes' values
// (and maybe some other reasons)
function ldapauth_user_filter(&$attributes) {
// Uncomment next line to see how the argument array looks like
// msg_r($attributes);
// Example: don't allow in users with no homeDirectory set
// return isset($attributes['homeDirectory'][0]) && $attributes['homedirectory'][0];
return true;
}
Functions
Name | Description |
---|---|
ldapauth_transform_login_name | |
ldapauth_user_filter |