Hey everyone,
i got auth working fine, now i'd like to add in syncing of groups over
to django groups without success.
The LDAP setup has a Groups ou that seems to be posixGroups. Each
entry has members stored in memberUid.
Here's stripped to related what i am doing in settings.py, but even
tho auth is still working fine i dont get any groups synced.
AUTH_LDAP_SERVER_URI = "ldap://
192.168.105.50"
AUTH_LDAP_USER_DN_TEMPLATE = "uid=%
(user)s,ou=Users,dc=mackevision,dc=de"
#AUTH_LDAP_USER_SEARCH = LDAPSearch("ou=users,dc=mackevision,dc=de",
ldap.SCOPE_SUBTREE, "(uid=%(user)s)")
AUTH_LDAP_USER_ATTR_MAP = {
"first_name": "givenName",
"last_name": "sn",
}
AUTH_LDAP_GROUP_SEARCH = LDAPSearch("ou=Groups", ldap.SCOPE_SUBTREE,
"(objectClass=posixGroup)")
AUTH_LDAP_GROUP_TYPE = PosixGroupType()
AUTH_LDAP_MIRROR_GROUPS = True
# This is the default, but I like to be explicit.
AUTH_LDAP_ALWAYS_UPDATE_USER = True
# Use LDAP group membership to calculate group permissions.
AUTH_LDAP_FIND_GROUP_PERMS = True
AUTHENTICATION_BACKENDS = (
'django_auth_ldap.backend.LDAPBackend',
'django.contrib.auth.backends.ModelBackend',
)
Any hints what i might be missing ?
Regards,
Thorsten