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.

CommentFileSizeAuthor
#9 vialdap.jpg15.86 KBKrisBulman
#2 usereditpage.jpg28.29 KBKrisBulman

Comments

miglius’s picture

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.

KrisBulman’s picture

StatusFileSize
new28.29 KB

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

KrisBulman’s picture

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.

miglius’s picture

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

KrisBulman’s picture

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?

miglius’s picture

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

KrisBulman’s picture

yes, it does

miglius’s picture

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?

KrisBulman’s picture

StatusFileSize
new15.86 KB

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)

miglius’s picture

which ldapauth version do you use?

KrisBulman’s picture

5.x-1.3 ldapauth / ldapdata / ldapgroups

KrisBulman’s picture

Status: Active » Closed (fixed)

closing ticket, this is very old.