flask-simpleldap icon indicating copy to clipboard operation
flask-simpleldap copied to clipboard

get_user_groups()

Open superteece opened this issue 5 years ago • 1 comments

My issue is the same as #28 and #29. The fix in #29 also resolves my issue but I'd like to understand what I'm doing incorrectly to cause the struggle. From what I can tell, the authenticated user's username is being correctly passed to get_user_groups(). This function calls (self.get_object_details(user, dn_only=True) which returns the full dn for the user. get_user_groups() then uses this full dn as the %s value in LDAP_GROUP_MEMBER_FILTER = memberUid=%s which results in an LDAP query of (in my case) (memberUid=uid=bob,ou=users,dc=geekministry,dc=virt) whereas it should be (memberUid=bob).

superteece avatar Nov 26 '19 16:11 superteece

Also getting this issue

Marshall-Hallenbeck avatar Sep 21 '22 03:09 Marshall-Hallenbeck