Hi,
I'm trying to use LDAP beyond the standard config. LDAP is working fine for my installation with only one posixGroup so the basic stuff is sorted out ;)
Now to the tricky part:
We have two distinct posixGroups that I would like to add for the AUTH_LDAP_REQUIRE_GROUP_DN.
I tried the ldapseach syntax
--> (|(cn=ops-groups-1,ou=group,dc=bbbbbb,dc=aaaaaaa)(cn=ops-groups-2,ou=group,dc=bbbbbb,dc=aaaaaaa))
and the LDAPGroupQuery as described in the django-auth-ldap docs
--> (LDAPGroupQuery("cn=ops-groups-1,ou=group,dc=bbbbbb,dc=aaaaaaa") | LDAPGroupQuery("cn=ops-groups-2,ou=group,dc=bbbbbb,dc=aaaaaaa"))
All I was able to achieve was a
Caught LDAPError while authenticating xxxxxxx: INVALID_DN_SYNTAX({'desc': 'Invalid DN syntax', 'info': 'Invalid DN'})
Is there a way how to do this with posixGroups?
My LDAP config as below..
AUTH_LDAP_ATTR_FIRSTNAME=cn
AUTH_LDAP_ATTR_LASTNAME=cn
AUTH_LDAP_ATTR_MAIL=mail
AUTH_LDAP_BIND_AS_AUTHENTICATING_USER=true
AUTH_LDAP_BIND_DN=cn=proxyagent_netbox,ou=profile,dc=bbbbbb,dc=aaaaaaa
AUTH_LDAP_BIND_PASSWORD=xxxxxxxxxxxxxxxxxx
AUTH_LDAP_GROUP_SEARCH_BASEDN=ou=group,dc=bbbbbb,dc=aaaaaaa
AUTH_LDAP_GROUP_SEARCH_CLASS=posixGroup
AUTH_LDAP_GROUP_TYPE=PosixGroupType
AUTH_LDAP_IS_ADMIN_DN=cn=cn=ops-manager,ou=group,dc=bbbbbb,dc=aaaaaaa
AUTH_LDAP_IS_SUPERUSER_DN=cn=ops-superuser,ou=group,dc=bbbbbb,dc=aaaaaaa
AUTH_LDAP_REQUIRE_GROUP_DN=(|(cn=ops-groups-1,ou=group,dc=bbbbbb,dc=aaaaaaa)(cn=ops-groups-2,ou=group,dc=bbbbbb,dc=aaaaaaa))
AUTH_LDAP_SERVER_URI=ldaps://ldap.xxxxxxxx.internal
AUTH_LDAP_USER_DN_TEMPLATE=cn=%(user)s,ou=people,dc=bbbbbb,dc=aaaaaaa
AUTH_LDAP_USER_SEARCH_ATTR=cn
AUTH_LDAP_USER_SEARCH_BASEDN=ou=people,dc=bbbbbb,dc=aaaaaaa
Thanks
Sebastian