function LdapTestFunctions::ldapUserIsAuthmapped in Lightweight Directory Access Protocol (LDAP) 8.2
Same name and namespace in other branches
- 7.2 ldap_test/LdapTestFunctions.class.php \LdapTestFunctions::ldapUserIsAuthmapped()
- 7 ldap_servers/tests/LdapTestFunctions.class.php \LdapTestFunctions::ldapUserIsAuthmapped()
File
- ldap_test/
LdapTestFunctions.class.php, line 111
Class
Code
function ldapUserIsAuthmapped($username) {
$authmaps = user_get_authmaps($username);
return $authmaps && in_array('ldap_user', array_keys($authmaps));
}