function ldap_servers_get_servers in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_servers/ldap_servers.module \ldap_servers_get_servers()
- 7 ldap_servers/ldap_servers.module \ldap_servers_get_servers()
Return ldap server conf objects.
Parameters
string $sid:
string $type: All', 'enabled'.
bool $flatten: signifies if array or single object returned. Only works if sid is specified.
bool $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)
53 calls to ldap_servers_get_servers()
- hook_ldap_attributes_needed_alter in ldap_servers/
ldap_servers.api.php - Perform alterations of ldap attributes before query is made.
- 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
File
- ldap_servers/
ldap_servers.module, line 537
Code
function ldap_servers_get_servers($sid = NULL, $type = NULL, $flatten = FALSE, $reset = FALSE) {
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);
}
}