In ldapgroups_user_login, _ldapgroups_detect_groups might return false and pass that value into array_intersect in the next statement.
Further down, it's returning true if $groups is false. Should this statement be right after the assignment of $groups?
I think at least it should detect the contents of $groups before assuming it's an array.
This is generating the error:
warning: array_intersect() [function.array-intersect]: Argument #1 is not an array in ldap_integration/ldapgroups.inc on line 30
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | ldap-integration-groups-err.png | 49.92 KB | aritztg |
Comments
Comment #1
davea commentedSubscribing....
Comment #2
aritztg commentedSubscribing....
Comment #3
verta commentedI think this is happening on our site that is using a patch to let the server's windows authentication handle the login automatically. Subscribing.
Comment #4
aritztg commentedWe solved the problem by adding a row in the users table with a zero value in the UID column and the other columns as empty.
The problem was in a line with user_load(0);
Comment #5
johnbarclay commentedComment #6
cgmonroe commentedThe changes just committed should correct this.
For details of these changes see #1475272: 6.x-1.0 Release Candidate 1 Status