You are here

function ldap_authorization_get_consumer_admin_object in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_authorization/ldap_authorization.module \ldap_authorization_get_consumer_admin_object()
  2. 7.2 ldap_authorization/ldap_authorization.module \ldap_authorization_get_consumer_admin_object()
4 calls to ldap_authorization_get_consumer_admin_object()
LdapAuthorizationBasicTests::testFlags in ldap_authorization/tests/BasicTests/BasicTests.test
flag (binary switches) tests clumped together
LdapAuthorizationBasicTests::testSimpleStuff in ldap_authorization/tests/BasicTests/BasicTests.test
just make sure install succeeds. doesn't really need to be tested
LdapAuthorizationDeriveFromAttr::testDeriveFromAttr in ldap_authorization/tests/DeriveFromAttr/DeriveFromAttr.test
LdapAuthorizationOtherAuthenticationTests::testDrupalAuthnWithLdapAuthor in ldap_authorization/tests/Other/Other.test
test drupal user authentication with ldap authorization

File

ldap_authorization/ldap_authorization.module, line 295
ldap authorization module

Code

function ldap_authorization_get_consumer_admin_object($consumer_type) {
  ldap_server_module_load_include('php', 'ldap_authorization', 'LdapAuthorizationConsumerConfAdmin.class');
  $consumer_object = ldap_authorization_get_consumer_object($consumer_type);
  $consumer_conf_admin = new LdapAuthorizationConsumerConfAdmin($consumer_object);
  return $consumer_conf_admin;
}