Hello team,
after many hours of research and already some LDAP implementations, I can not find a solution to my problem. Everything works fine, SSO, search specific attributes of the user email, address, zip code, date of birth. .... The mapping of my users member of an OU to a role working perfectly.
My problem is to update the contents of the user, for example, an update of address, name or first name. As the user information retrieved well as Drupal can not update the information in the LDAP database. The DN user has sufficient rights for the operation works correctly from the same client server from the command ldapmodify.
After several attempts, I found a message in the log :
Notice : Undefined index: pass in user_validate_current_pass() (ligne 1231 dans /var/www/modules/user/user.module).
And I have this error:
ldap_read() function error. LDAP Error: Invalid DN syntax, ldap_read() parameters:
as explained, everything seems to work correctly. Quota, personal info, everything is recovered but the update does not work. For information, I deactivated the ability to update the password ....
Frontend : Debian Wheezy, FastCGI, LDAPClient.
Drupal 7.41 + LDAP module version 7.x-2.0-beta8
Backend : LDAP Linux Schema Active Directory.
Login and rôle attribution is work.
View LDAP query attribute in profile is work.
LDAP query is work:
query_numeric_id = 1
qid = DemoLDAP
name = LDAPGroupsDemoUsers
sid = DemoCloudAuth
status = 1
base_dn_str = DC=Demo-cloud,DC=org
filter = (&(|(objectclass=person))(|(|(memberof=CN=DemoFreeConfirmed,CN=Groups,DC=Demo-cloud,DC=org)(primaryGroupID=1110))))
attributes_str = samaccountname,givenname,sn,displayname,mail,description,thumbnailPhoto
sizelimit = 0
timelimit = 0
deref = 0
scope = 3
LDAP Query Results: count=7 DN sn givenname displayname samaccountname mail description
CN=Sophie Demo,CN=Users,DC=Demo-cloud,DC=org Demo Sophie Sophie Demo sophie.demo sophie.demo@Demo-cloud.org 4 GB
I have 10 fields to be updated and for the password, I have another solution. I tried activating the password field but that seems to change anything. I deleted every time the tests of drupal account to have a clean and initial status for the user.
Finally, I tried with two simple text fields, I have the same result. Someone would have a track to solve my problem?
I search for any similar problem but I did not find very convincing related log I get.
I apologize for my English, I still helps me a translator because it is not yet perfect.
Thank you for your support,
Comments
Comment #2
sid_libre CreditAttribution: sid_libre commentedComment #3
sid_libre CreditAttribution: sid_libre commentedComment #4
grahlHi
If I understand you correctly, you wish to update the LDAP attributes with your user data, right?
The notice from user_validate_current_pass() is likely not the root case but rather the ldap_read error. The "Invalid DN syntax" is what LDAP returns so either you are providing bad input there or it's a bug in how the DN is prepared.
I'd recommend you try inspecting the entries passed to modifyLdapEntry() in LdapUserConf.class.php but cannot offer much more help since I have never synced in that direction.
Comment #5
sid_libre CreditAttribution: sid_libre commentedThank you for your reply,
I'll look into this file.
Details, I do not arrive at a self-provisioned utilistateur do not exist in the LDAP since Drupal (Soucription). So I have an external process for subscription I am writing (registration form) for circumvented the problem.
Authentication of a user existing in the LDAP works and the link with a role (OU or group) Works as well.
I feel that the problem is related ...
Meanwhile, I will try with an update and can try another version of LDAP module.
I come to you once I get to a result.
Thank you again for your help,
Regards,
Comment #6
grahlHi there
Did you ever resolve your issue? Or is this still reproducible in a stable version?
Comment #7
grahlNo feedback, closing.