function LdapTestFunctions::configureAuthentication in Lightweight Directory Access Protocol (LDAP) 7
1 call to LdapTestFunctions::configureAuthentication()
- LdapTestFunctions::prepTestConfiguration in ldap_servers/
tests/ LdapTestFunctions.class.php
File
- ldap_servers/
tests/ LdapTestFunctions.class.php, line 55 - LdapTestCase.class.php
Class
Code
function configureAuthentication($options) {
require_once drupal_get_path('module', 'ldap_authentication') . '/LdapAuthenticationConfAdmin.class.php';
$ldapServerAdmin = new LdapAuthenticationConfAdmin();
foreach ($ldapServerAdmin->saveable as $prop_name) {
if (isset($options[$prop_name])) {
$ldapServerAdmin->{$prop_name} = $options[$prop_name];
}
}
$ldapServerAdmin
->save();
}