Problem With LDAP Authentication #18531
-
Hi, I was able to get the LDAP Authentication to work between our netbox (running 4.1.3) and our Active Directory. DC=company,DC=local I'm logging in as "userA" with netbox_superuser mapped out. Below is how my ldap_config.py looks like:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
According to the django-auth-ldap documentation, it looks as though it mirrors all groups associated with the user. You can specify a list of groups there you would like it to mirror instead of a boolean. AUTH_LDAP_GROUP_SEARCH is used in the case of determining groups for the purpose of authentication, not for the mirroring of groups. |
Beta Was this translation helpful? Give feedback.
The documentation doesn't seem entirely clear on that. It may simply be a list of the groups names, rather than an LDAPSearch.
e.g.
AUTH_LDAP_MIRROR_GROUPS = [ "netbox_allow", "netbox_staff" ]