You are here

function ldap_user_conf in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.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.

bool $resect: clear static cache of object.

Return value

\LdapUserConf|\LdapUserConfAdmin

27 calls to ldap_user_conf()
LdapAuthenticationConf::allowUser in ldap_authentication/LdapAuthenticationConf.class.php
Decide if a username is excluded or not.
LdapAuthenticationTestCase::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 176
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;
}