Hello All,
I installed the LDAP intergation module and got it working against our AD structure. Users are now able to login without any problems (I have tested several AD users). I setup LDAP Groups then, and configured it such as, "Groups are specified by LDAP attributes" is enabled and the attribute name is memberOf. When I logged in with my AD account, it pulled down my groups that I am a member of without any issue. The issue i'm having is that it will not pull down any other user's groups. I read the one post and it said to put a debug statement after:
$groups = _ldapgroups_detect_groups($user);
I made the debug statement:
msg_r("------ LDAP GROUPS ------".$groups);
So, I placed it there to display out $groups and the value of it was: Array . I went one step further and placed a debug statement into the foreach loop down a few lines. I received a listing of my groups. I then had another user try to login and they successfully logged in, but did not receive any debug statement at all. For some reason, only I am having groups. Everyone should at least see that debug statement, since I have it printing static text along with the $groups variable, but it is not working.
Any ideas as to why the groups work pull from AD for myself, but not others?
Thanks,
Shane
Comments
Comment #1
shanefjordan commentedUpdate: The groups do not get pulled for the first login of a user. When the user logs in the 2nd time, the groups pull down properly without any issues. The last statement the user gets to in the function ldapgroups_user_login is:
When it goes to this function for a user logging in the first time, it comes back and hits the return statement.
Comment #2
shanefjordan commentedThis issue was address in http://drupal.org/node/171092 . I did not pull a copy down from HEAD, but the last release and it must not have the fix in the last release.
Thanks,
Shane