I'm looking to set up auth in vespene and connect to an Active Directory server. We've got AD auth working with some other applications in our environment but haven't ever done this with a Django app.
Does anyone have an example /etc/vespene/settings.d/authentication.py they could share where authentication against Active Directory is working?
Here's the minimal config i was thinking should work...
import ldap from django_auth_ldap.config import LDAPSearch, GroupOfNamesType AUTH_LDAP_SERVER_URI = 'ldap://local_dc_server' AUTH_LDAP_BIND_DN = 'CN=bind_account_uid,OU=bindAccounts,OU=Infrastructure,DC=redacted,DC=local' AUTH_LDAP_BIND_PASSWORD = 'redacted' AUTH_LDAP_USER_SEARCH = LDAPSearch('OU=allUsers,DC=redacted,DC=local', ldap.SCOPE_SUBTREE, '(uid=%(user)s)',)