Closed (fixed)
Project:
LDAP integration
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Mar 2008 at 12:10 UTC
Updated:
28 Mar 2008 at 12:11 UTC
in file ldap_integration/ldapdata.module
at function _ldapdata_ldap_init
there is the following line:
if ($row = db_fetch_object(db_query("SELECT * FROM {ldapauth} WHERE status = '%s' AND name = '%s'", 1, $user->ldap_config))) {
which uses the user data variable $user->ldap_config
checking in the mysql->users->MyUser->data , I couldn't find "ldap_config" variable...
so...
in file ldap_integration/ldapauth.module
at function _ldapauth_ldap_login
we can find a user_save call
$user = user_save(
'',
array(
'name' => $login_string,
'pass' => $pass,
'mail' => $mail,
'init' => $init,
'status' => 1,
'authname_ldapauth' => $login_string,
'roles' => array(DRUPAL_AUTHENTICATED_RID),
'ldap_authentified' => TRUE,
'ldap_dn' => $dn
)
);
in which is missing the appropriate variable...
to fix it, just add this line 'ldap_config' => $ldap->name,
$user = user_save(
'',
array(
'name' => $login_string,
'pass' => $pass,
'mail' => $mail,
'init' => $init,
'status' => 1,
'authname_ldapauth' => $login_string,
'roles' => array(DRUPAL_AUTHENTICATED_RID),
'ldap_config' => $ldap->name,
'ldap_authentified' => TRUE,
'ldap_dn' => $dn
)
);
Comments
Comment #1
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.