You are here

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

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

File

ldap_servers/tests/LdapTestFunctions.class.php, line 83
LdapTestCase.class.php

Class

LdapTestFunctions
@file LdapTestCase.class.php

Code

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