You are here

function ldap_user_conf in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_user/ldap_user.module \ldap_user_conf()

get ldapUserConf or ldapUserConfAdmin object

Parameters

enum $type is 'admin' for ldapUserConfAdmin object or NULL for ldapUserConf object:

boolean $resect clear static cache of object.:

Return value

object ldapUserConf or ldapUserConfAdmin object

26 calls to ldap_user_conf()
LdapAuthenticationConf::allowUser in ldap_authentication/LdapAuthenticationConf.class.php
decide if a username is excluded or not
LdapAuthenticationTestCase::x_testSSOUserLogon in ldap_authentication/tests/ldap_authentication.test
LDAP Authentication Exclusive Mode User Logon Test (ids = LDAP_authen.EM.ULT.*)
LdapUserIntegrationTests::testDrupalAccountsOrphaned in ldap_user/tests/ldap_user.test
test cron function for dealing with ldap associated users who no longer have ldap entries
LdapUserIntegrationTests::testProvisionToLdap in ldap_user/tests/ldap_user.test
integration tests for provisioning to ldap
LdapUserUITests::testUI in ldap_user/tests/ldap_user.test
make sure user admin interface works. (its a beast)

... See full list

6 string references to 'ldap_user_conf'
LdapUserConf::load in ldap_user/LdapUserConf.class.php
LdapUserConfAdmin::save in ldap_user/LdapUserConfAdmin.class.php
LdapUserConfAdmin::uninstall in ldap_user/LdapUserConfAdmin.class.php
LdapUserIntegrationTests::testProvisionToLdap in ldap_user/tests/ldap_user.test
integration tests for provisioning to ldap
ldap_servers_update_7201 in ldap_servers/ldap_servers.install
upgrade as much as feasible for 7.1 to 7.2 branch

... See full list

File

ldap_user/ldap_user.module, line 181
Module for the LDAP User Entity

Code

function ldap_user_conf($type = NULL, $reset = FALSE) {
  static $ldap_user_conf;
  static $ldap_user_conf_admin;
  if ($type == 'admin' && ($reset || !is_object($ldap_user_conf_admin))) {
    ldap_servers_module_load_include('php', 'ldap_user', 'LdapUserConfAdmin.class');
    $ldap_user_conf_admin = new LdapUserConfAdmin();
  }
  elseif ($type != 'admin' && ($reset || !is_object($ldap_user_conf))) {
    ldap_servers_module_load_include('php', 'ldap_user', 'LdapUserConf.class');
    $ldap_user_conf = new LdapUserConf();
  }
  return $type == 'admin' ? $ldap_user_conf_admin : $ldap_user_conf;
}