node-activedirectory
node-activedirectory copied to clipboard
isUserMemberOf(), getGroupMembershipForUser() and getUsersForGroup() seem not working?
Actual result
I have 1 user belonging to 1 group. However, when calling isUserMemberOf with the user and the group, it returned false. When calling getGroupMembershipForUser with the user, it returned empty (i.e., no groups membership). When calling getUsersForGroup with the group, it also returned empty (i.e., no users).
Expected result
-
isUserMemberOfshould returntrue. -
getGroupMembershipForUsershould return the group. -
getUsersForGroupshould return the user.
Discussion
I'm not sure if it is a bug. I found someone indicated that the "member" attribute does not include members for primary group membership, and we should use primaryGroupToken and primaryGroupId to check the membership.
yes, same here