Programming123 Programming123 - 5 months ago 20
Python Question

django-auth-ldap AUTH_LDAP_FIND_GROUPS_PERMS not working

I'm running Django 1.8.18 and django-auth-ldap 1.2.11 authenticating against Active Directory.

My current configuration authenticates properly against the AD, however, when I enabled

it doesn't seem to do anything. I've previously tried
(which works without any problem), and found all of the user's groups created. The only slight issue is that it also remove any local group memberships the user had.

In any case, after having the groups auto-created by
I would expect
would auto-add the user to that same group on the next login. However, this did not happen. The only change in configuration was those two lines. The
is set to

Any ideas why users aren't being added to the groups with matching names?

Answer Source

Turns out that AUTH_LDAP_FIND_GROUPS_PERMS doesn't actually add users to a group, but virtually adds them to it making sure their permissions respond as if they are in the groups that match names.