users changing passwords

KrisBulman - July 11, 2008 - 05:07
Project:LDAP provisioning
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Is it possible to change user passwords in drupal and have it change the ldap password? I attempted to change a user password in 'account management' after successful account creation, and it returns "The DN cn=username,ou=Group, dc=my_domain, dc=ca is already taken in LDAP.".

My apologies if this is documented elsewhere, I can not find it.

#1

miglius - July 11, 2008 - 12:24

The user password can be changed on the drupal standard user edit page. If that user has the ldap account associated with him, then the password will be changed in ldap.

#2

KrisBulman - July 11, 2008 - 13:23

Home › Administer › User management > Edit

I get the same error on the user edit page after entering the new user/pass and clicking submit, please see attachment

AttachmentSize
usereditpage.jpg 28.29 KB

#3

KrisBulman - July 11, 2008 - 16:49

I did a few more tests, and if i change the user name & "LDAP User DN" (in LDAP authentication Settings) on this user edit page, once submitted, it will actually create a new account in ldap with a random password.

#4

miglius - July 11, 2008 - 16:49

Changing the username should chnage the drupal username, but shouldn't touch ldap. Changing LDAP DN moves user's ldap entry to other DN.

#5

KrisBulman - July 11, 2008 - 17:08

ok, yes, i see that it does that. however changing the password on this 'user edit' screen does still give the error seen in the screenshot above.

When watching the ldap console, it outputs very little information after attempting to make the change on the 'user edit' screen in drupal.. but when i change the password directly in ldap i see a whole different console output. Is there any information that i can provide that can help locate the source of the problem?

#6

miglius - July 11, 2008 - 17:48

If you don't change a pwd, just hit save on user edit page, does it still shows error?

#7

KrisBulman - July 11, 2008 - 18:05

yes, it does

#8

miglius - July 11, 2008 - 18:26

I cannot reproduce it.

This error should be shown if the LDAP DN is changed in the user edit page, but the new DN already exists in the ldap. If DN is not touched the error should never appear. IS checkbox Authenticate via LDAP checked in the user edit page?

#9

KrisBulman - July 11, 2008 - 18:39

strange that it's not reproducible. openldap / debian etch / drupal 5.7

I am creating the account through /admin/user/accounts/new and am modifying the user with the drupal user1 (admin) account.

Yes, the checkbox is checked to authenticate, although the box turns red after the attempt to submit the page.

(screenshot attached)

AttachmentSize
vialdap.jpg 15.86 KB

#10

miglius - July 13, 2008 - 20:52

which ldapauth version do you use?

#11

KrisBulman - July 14, 2008 - 12:23

5.x-1.3 ldapauth / ldapdata / ldapgroups

 
 

Drupal is a registered trademark of Dries Buytaert.