Open lemystere opened 6 months ago
got it working with the following config:
LDAP_AUTH=1
AUTH_LDAP_SERVER_URI=ldap://****:389
AUTH_LDAP_BIND_DN=CN=ldapservice,OU=users,DC=****,DC=****,DC=****
AUTH_LDAP_BIND_PASSWORD=****
AUTH_LDAP_USER_SEARCH_BASE_DN=ou=users,dc=****,dc=****,dc=****
AUTH_LDAP_USER_SEARCH_FILTER_STR=(cn=%(user)s)
AUTH_LDAP_USER_ATTR_MAP={'username': 'cn', 'email': 'mail'}
Issue
I want to use LDAP with Authentik but I can't figure out how it works.
With the log I can see that Tandoor can successfully query Authentik to see all users in Authentik :
search_s('ou=users,dc=****,dc=****,dc=****', 2, '(objectClass=user)') returned 1 objects: cn=****,ou=users,dc=****,dc=****,dc=****;
But after I get :
Authentication failed for test: failed to map the username to a DN.
So, my guess of the problem involve the environment variable
AUTH_LDAP_USER_ATTR_MAP
but unfortunately I can't figure out to make it work.Here is all my environment variables :
Also for the LDAP Outpost of Tandoor here is the log :
For documentation I used :
Tandoor Version
1.5.10
OS Version
Ubuntu 23.10
Setup
Docker / Docker-Compose
Reverse Proxy
Traefik
Other
No response
Environment file
No response
Docker-Compose file
No response
Relevant logs
No response