Even though i can modify the "mail" ldap attribute via drupal, if i log out in log in again, go to my_account>modify, the mail address field is empty (so i can't ask for a new password for example, or receive contact messages)

i can see the mail attribute exists, and it can be modified or created by drupal, but not read by drupal.

I don't use mixed mode, but ldap only, how can i do for making drupal read the mail attribute ?

Comments

miglius’s picture

If I understand correctly, you're using ldap data module to sync drupal and ldap mails, right?

Does the user has enough rights to read it's mail attribute in ldap?

johnbarclay’s picture

You might try the wizard in the ldap integration help module (http://drupal.org/node/353036) . It will give you a message something like the following when with a test username of jbarclay:

Found 1 user object with search where base dn = dc=ad,dc=uiuc,dc=edu and filter =sAMAccountName=jbarclay. Search should return exactly one object.
Email Attribute of mail is present with a value of jbarclay@uiuc.edu

I wrote the module to help debug ldap integration problems.

John

ashledombos’s picture

>If I understand correctly, you're using ldap data module to sync drupal and ldap mails, right?
yes !
>Does the user has enough rights to read it's mail attribute in ldap?
YEs the rights are sufficients, and users can also change their mail attributes

ashledombos’s picture

>I wrote the module to help debug ldap integration problems.

I can't use it :(

i downloaded it, and then activated it, and... all my site became blank !

so i have to to delete the folder ldaphelp in order to make my website working again :/

johnbarclay’s picture

Sorry to hear. Can you put something like:

 ini_set("display_errors","on"); // turn on error reporting.  change to "off" in production
error_reporting(E_ALL ^ E_NOTICE);

at the top of settings.php and let me know what the error says?

Feel free to email me directly if you like: jbarclay --at-- illinois.edu

johnbarclay’s picture

Thanks ashledombos for helping me debug this.

I've fixed this bug to the help modules. The update is at:

http://drupal.org/node/353036 comment #3.

miglius’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +ldapdata

Is mail attribute missing only on the first login? Is it pulled on following logins?

Jhef.Vicedo’s picture

Version: 6.x-1.x-dev » 6.x-1.0-alpha2

Yes email field is missing on the first log in (first time the user has logged-in). I think the email field was not included on the $userinfo being save.

Though I am using 6.x-1.0-alpha2 version. See the code on creating new user account.

miglius’s picture

Priority: Critical » Normal

Can you test the latest dev release to see if issue is still there?

miglius’s picture

Status: Postponed (maintainer needs more info) » Fixed

A number of fixes were committed to the dev branch lately. Closing this ticket as I think this issue is solved. Please reopen if that is not the case.

ashledombos’s picture

Thank you, will test !

Status: Fixed » Closed (fixed)
Issue tags: -ldapdata

Automatically closed -- issue fixed for 2 weeks with no activity.