flask-simpleldap
flask-simpleldap copied to clipboard
get_user_groups()
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)
.
Also getting this issue