I had LDAP authentication and LDAP data working just fine - logging in to an LDAP directory to authenticate the user, then picking up a number of attributes in LDAP and adding them in to profiles on first login.
Then I wanted to add another field to the profile. In Profiles, I created a new field, then I configured the appropriate LDAP attribute to be put into the profile field in LDAP Data.
Since then, when I enter the LDAP Data module I get this message:

warning: Invalid argument supplied for foreach() in /var/www/drupal-6.6/sites/all/modules/ldap_integration/ldapdata.module on line 524.

Worse still, it has destroyed all the configuration details in LDAP Data and won't put them back. Now when new users connect they don't get their LDAP data updated.

Comments

miglius’s picture

Issue tags: +ldapdata

If you open a ldapdata configuration page, do you see the mappings between the drupal profiles and ldap attributes filled in?

martink’s picture

No, that is exactly the problem. Here is what happens:
1) Add new profile to the list of profiles, with default parameters
2) Go to LDAP Data configuration for the server. The new profile field is visible on the form but has no mapping, the other fields are visible and have the LDAP mappings allocated to them.
3) Enter the appropriate LDAP attribute in the new profile's mapping.
4) Press "Submit"
5) Return immediately to LDAP Data: all mappings have been deleted.

miglius’s picture

Status: Active » Postponed (maintainer needs more info)

Cannot replicate the issue. I followed the steps you provided and when I come back to the LDAP data settings page, I can see all mappings (old one and new mapping entered) correctly displayed.

Have you run all module updates? Could you reinstall the module with the latest dev code and check if the problem is still there?

martink’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Well, I'm sorry about that - I thought I had checked everything. I set up a completely new site, set up a completely new server, went through all the steps again, and it works ok.
Thanks for the reactivity though - much appreciated