The first time and ldap user logs in they get an error. If they then log out and log back in they are fine. This is with ldadpgroups enabled and configured as well.

warning: array_fill() [function.array-fill]: Number of elements must be positive in /Library/WebServer/Documents/drupal/includes/database.inc on line 240.
warning: implode() [function.implode]: Invalid arguments passed in /Library/WebServer/Documents/drupal/includes/database.inc on line 240.
warning: array_keys() [function.array-keys]: The first argument should be an array in /Library/WebServer/Documents/drupal/modules/user/user.module on line 500.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /Library/WebServer/Documents/drupal/modules/user/user.module on line 500.
user warning: Duplicate entry 'mt' for key 2 query: INSERT INTO authmap (authname, uid, module) VALUES ('mt', 11, 'ldapauth') in /Library/WebServer/Documents/drupal/modules/user/user.module on line 1222.

Comments

miglius’s picture

This issue is caused by the profile module. I submitted an issue about that http://drupal.org/node/281465

agerson’s picture

ignore my error line "user warning: Duplicate entry 'mt' for key 2 query: INSERT INTO authmap (authname, uid, module) VALUES ('mt', 11, 'ldapauth') in /Library/WebServer/Documents/drupal/modules/user/user.module on line 1222." this is because I was doing a lot of testing with this user.

miglius’s picture

Assigned: Unassigned » miglius
Status: Active » Fixed

I have rid of user_external_login_register() function, so now the errors on first login should not appear.

huats’s picture

subscribing

Anonymous’s picture

Status: Fixed » Closed (fixed)

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