I'm getting some problems when I activate "LDAP group to Drupal role limits" in order to deny login grants to all groups except one. If I access with an account of the allowed group, the user is correctly created, it maps LDAP group to Drupal roles. But when I try to access with an account from one of the not allowed groups, Drupal denies the access and it shows:
* Sorry, unrecognized username or password. Have you forgotten your
password?
* warning: array_fill() [function.array-fill]: Number of elements
must be positive in /usr/share/drupal6/includes/database.inc on line 253.
* warning: implode() [function.implode]: Invalid arguments passed in
/usr/share/drupal6/includes/database.inc on line 253.
* warning: array_keys() [function.array-keys]: The first argument
should be an array in /usr/share/drupal6/modules/user/user.module on
line 502.
* 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
/usr/share/drupal6/modules/user/user.module on line 502.
the user is created in Drupal with no group mapping and it's never allowed to login.
The idea is that I only want to login the people from the allowed group, and no user-mapping or anything else from the rest of the groups, just ignore them and fail to log in.
I've read that other modules can interact with ldap_integration, so I deactivate all non-core modules, but the problem is still there.
Comments
Comment #1
cgmonroe commentedClearing out old support requests - reopen if problem still exists in newest code (dev version)