function ldap_servers_get_servers in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_servers/ldap_servers.module \ldap_servers_get_servers()
- 7.2 ldap_servers/ldap_servers.module \ldap_servers_get_servers()
return ldap server conf objects
Parameters
alphanum $sid:
enum $type 'all', 'enabled',:
boolean $flatten signifies if array or single object returned. Only works if sid is specified:
boolean $reset do not use cached or static result:
Return value
- array of server conf object keyed on sid
- single server conf object (if flatten == TRUE)
27 calls to ldap_servers_get_servers()
- LdapAuthenticationConf::load in ldap_authentication/
LdapAuthenticationConf.class.php - LdapAuthenticationConfAdmin::validate in ldap_authentication/
LdapAuthenticationConfAdmin.class.php - validate object, not form
- LdapAuthenticationConfAdmin::__construct in ldap_authentication/
LdapAuthenticationConfAdmin.class.php - LdapAuthenticationTestCase::testAuthenticationWhitelistTests in ldap_authentication/
tests/ ldap_authentication.test - LdapAuthenticationTestCase::testExclusiveModeUserLogon in ldap_authentication/
tests/ ldap_authentication.test - LDAP Authentication Exclusive Mode User Logon Test (ids = LDAP_authen.EM.ULT.*)
File
- ldap_servers/
ldap_servers.module, line 279
Code
function ldap_servers_get_servers($sid = NULL, $type = NULL, $flatten = FALSE, $reset = FALSE) {
ldap_server_module_load_include('inc', 'ldap_servers', 'ldap_servers');
if (variable_get('ldap_simpletest', FALSE)) {
return _ldap_servers_get_simpletest_servers($sid, $type, $flatten, $reset);
}
else {
return _ldap_servers_get_servers($sid, $type, $flatten, $reset);
}
}