You are here

function LdapTestFunctions::ldapUserIsAuthmapped in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_test/LdapTestFunctions.class.php \LdapTestFunctions::ldapUserIsAuthmapped()
  2. 7 ldap_servers/tests/LdapTestFunctions.class.php \LdapTestFunctions::ldapUserIsAuthmapped()

File

ldap_test/LdapTestFunctions.class.php, line 111

Class

LdapTestFunctions

Code

function ldapUserIsAuthmapped($username) {
  $authmaps = user_get_authmaps($username);
  return $authmaps && in_array('ldap_user', array_keys($authmaps));
}