function ldap_authentication_get_valid_conf in Lightweight Directory Access Protocol (LDAP) 8.2
Same name and namespace in other branches
- 7.2 ldap_authentication/ldap_authentication.module \ldap_authentication_get_valid_conf()
- 7 ldap_authentication/ldap_authentication.module \ldap_authentication_get_valid_conf()
get LdapAuthenticationConf object
Return value
object LdapAuthenticationConf object if configured, otherwise FALSE
13 calls to ldap_authentication_get_valid_conf()
- LdapAuthenticationTestCase::testAuthenticationWhitelistTests in ldap_authentication/
tests/ ldap_authentication.test - LdapAuthenticationTestCase::testUI in ldap_authentication/
tests/ ldap_authentication.test - make sure user admin interface works.
- ldap_authentication_form_user_pass_alter in ldap_authentication/
ldap_authentication.module - Implements hook_form_FORM_ID_alter().
- ldap_authentication_ldap_server_in_use in ldap_authentication/
ldap_authentication.module - Implements hook_ldap_ldap_server_in_use().
- ldap_authentication_menu_alter in ldap_authentication/
ldap_authentication.module - Implements hook_menu_alter(). since menu items are cached, only useful to add or alter callbacks for ldap authentication driven menu items.
File
- ldap_authentication/
ldap_authentication.module, line 214 - This module injects itself into Drupal's Authentication stack.
Code
function ldap_authentication_get_valid_conf($reset = FALSE) {
static $auth_conf;
if (!$reset && is_object($auth_conf)) {
return $auth_conf;
}
ldap_servers_module_load_include('php', 'ldap_authentication', 'LdapAuthenticationConf.class');
$auth_conf = new LdapAuthenticationConf();
return $auth_conf->inDatabase ? $auth_conf : FALSE;
}