You are here

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

Same name and namespace in other branches
  1. 8.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 140

Class

LdapTestFunctions

Code

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