When a user successfully authenticates using LDAP I get the following error which repeats either 3 or 4 times depending on the user who logs in:

Warning: array_keys() expects parameter 1 to be array, null given in LdapUserConf->entryToUserEdit() (line 1277 of /sites/all/modules/ldap/ldap_user/LdapUserConf.class.php).

Comments

Saoirse1916 created an issue. See original summary.

grahl’s picture

Status: Active » Postponed (maintainer needs more info)

Hi

Which version were you running previously?

Also, we will need a lot more information on your particular setup to help here. Have you enabled detailed logging to gather more information and tried to narrow down your problem?

Generally, the line the error is reported on sounds like a misconfiguration of the user mappings table. Please review that for consistency and correctness.

Saoirse1916’s picture

StatusFileSize
new87.5 KB

Thanks grahl, I'll do my best to provide as much info as I can.

Previously I was running a dev version from about 6 months ago, but I got the error then as well. How can I enable detailed logging?

Here's my user mappings table. Now that you mention it, I do have one field that's not actively mapped because I'm trying to figure out how to map the user's office to an entity referenced field, which isn't working.

grahl’s picture

Thanks for that feedback, it's helpful.

So, the field which you do not have actively mapped is not listed in the user mapping, right? That would likely cause issues, even if it had an empty mapping (the screenshot suggest you do not).

You can enabled detailed logging if you turn on ldap_help and then check General settings of LDAP.

Are you able to reproduce this locally? Would you be able to review that particular line with a debugger? Alternatively, do you have a development site where you could deactivate the mappings and verify if the error still occurs? It might simply be a misconfiguration of the attributes.

grahl’s picture

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

No feedback since June, closing.