function _ldapauth_init in LDAP integration 5.2
Same name and namespace in other branches
- 5 ldapauth.module \_ldapauth_init()
- 6 ldapauth.module \_ldapauth_init()
1 call to _ldapauth_init()
File
- ./
ldapauth.module, line 607
Code
function _ldapauth_init($config) {
global $ldap;
$row = db_fetch_object(db_query("SELECT * FROM {ldapauth} WHERE name = '%s'", $config));
// $ldap = new LDAPInterface();
$ldap
->setOption('name', $row->name);
$ldap
->setOption('server', $row->server);
$ldap
->setOption('port', $row->port);
$ldap
->setOption('tls', $row->tls);
$ldap
->setOption('encrypted', $row->encrypted);
$ldap
->setOption('basedn', $row->basedn);
$ldap
->setOption('user_attr', $row->user_attr);
$ldap
->setOption('mail_attr', $row->mail_attr);
return;
}