Hi !

I've installed LDAP in Drupal 4.6.5.
I would like the user (with his LDAP account) to connect to Drupal and, when he changes his password, that the password in LDAP is also changed.
I've tried several settings, but nothing works.

Do you have any idea ?
Thanks in advance ! CYA

Comments

pablobm’s picture

Assigned: Unassigned » pablobm
Category: bug » support
Priority: Normal » Minor

Go to admin/settings/ldap_integration, click on the tab LDAP attributes, select Changes in account fields will be mapped to LDAP attributes and back, and set the name of the LDAP attribute storing the password in the second of the three boxes below.

CyberKate’s picture

It's done, and it still doesn't work...

CyberKate’s picture

Priority: Minor » Critical

I've checked the accounts of the writer and the reader, and they work in LDAP.

But when I log in Drupal (with a LDAP account), it inserts the username in the table 'users' with the LDAP password.
The problem is when I change the password in my account in Drupal, it changes in the table 'users' but not in LDAP.

Here are my settings at the moment :

- LDAP server settings :
I've checked 'Store passwords in encrypted form'

- Login procedure :
I've checked 'Logins must be on the form user@server'.
When logging in, Drupal will look up for the user on : Drupal's own database. If it fails, will look on the LDAP directory
Changes in account fields will be mapped to LDAP attributes and back

- Group and roles :
The 'Map group sign offs' is checked by default. Can the problem be here ?

Thanks a lot for helping me with that. Should I be able to see the LDAP informations in my account too ? Because I only the the Drupal's ones and I've selected everything in the settings.

pablobm’s picture

"Map group sign offs" doesn't read like that anymore since, at least, 11th March. Where did you download the module from?.

Starting the begginning of this year, new versions for this module are released on the project Wiki site, as CVS is broken for me.

CyberKate’s picture

I've downloaded the last version on [url]http://drupal.org/node/15109[/url]. Should I try the one you gave me ?

By the way, could you explain me what are the options I should acitvate ?

Thanks a lot ! CYA

pablobm’s picture

Please do. Use default options + what described above. Don't forget editing conf.php

CyberKate’s picture

I've installed the version you gave me and it still doesn't work. Here is what I choose :

Login procedure :
- Drupal's own database. If it fails, will look on the LDAP directory
- Standard LDAP system

Groups and roles :
- Recreate group mappings upon login

LDAP attributes :
- Changes in account fields will be mapped to LDAP attributes and back
- mail | mail
pass | user Password

I've also edited conf.php.

Do you have any other idea please ?

acrowe’s picture

Were you ever able to get this working?

I'm authing to an Apple OS X OpenDirectory (LDAP v3) and am trying to get the password to update. I don't receive any error messages.

I have checked the following settings:
- " Changes in account fields will be mapped to LDAP attributes and back (see modules/ldap_integration/conf.php)."
- I have mapped pass to userPassword (LDAP Attribute)
- The User can modify password

Currently if I display the password it displays the password in the view page, but doesn't change the password in the LDAP server. I also cannot login with the new password, but the old one works (since the password in LDAP hasn't been changed.

If I try and change it via the account settings page (vs. the LDAP) I can login with both passwords, but the LDAP password isn't changed.

So has anyone gotten the password sync working? I need ot know if this is even possible, or if I need to find a different way to do it.

Thanks!

pablobm’s picture

Priority: Critical » Normal

Big code overhaul happened. This issue may not be happening anymore.

cadeon’s picture

Version: 4.6.x-1.x-dev » 4.7.x-1.x-dev

I second acrowe's comment. I am using Apple OpenDirectory also, and I can't get the ldap password to update. It's keeping me from installing drupal for my company's intranet site... if it worked, I'd install it *tomorrow*

I'm using 4.7

pablobm’s picture

Component: Miscellaneous » Code
Category: support » bug
Status: Active » Needs review

Hi cadeon, I thought this would be working at last. First, let me check you are using the appropriate options:

  • Select the option: Changes in account fields will be mapped to LDAP attributes and back (see modules/ldap_integration/ldapdata.conf.php)
  • Under the "Drupal field/LDAP attribute" table, put the name of the appropriate LDAP attribute beside the header "pass".
  • Under the header "Advanced configuration": enter the details of a user with permissions to edit the password attributes on the LDAP directory.

The last step is optional, and depends on the circumstances. However, setting it is a safer bet if you have problems.

Please, let me know if there are any more problems.

scafmac’s picture

There were a few bugs that have been fixed. At this point the ldap_data module can sync password, email, and signatures between the Drupal DB & LDAP. If you are still having problems, please let us know.

If you want the Drupal "Request new password" to work with LDAP, you will need to set an administrative account in the settings >> ldapdata >> advanced configuration. In addition if that is set up, user passwords do not need to be stored cleartext in Drupal settings >> ldapauth >> Do not store users' passwords during sessions.

geste’s picture

Excellent. I have just installed 5.1 with latest LDAP integration and was looking back at ldap_data and LDAP password issue.

I should probably make this a feature request.... but since I am using LDAP (Fedora Directory Service) as a back end for a Samba 3.x domain, it would be sweet if it could change both userPassword and SambaNTPassword attributes in LDAP at same time; that would require support for multiple hash schemes, I think.

I went looking in ldap_auth but didn't see anything that looked like it was writing to LDAP userPasswrod. Is this in ldap_data? Or somewhere else?

Thanks!

Jim

kreaper’s picture

geste

you are right. some of that functionality is in ldapdata. HEAD now includes a port of ldapdata.module. Please download it and submit issue reports if there are any.

johnbarclay’s picture

Status: Needs review » Closed (won't fix)

Closing 4.7 issues to clean out issue queue.