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