Authentik in Docker -LDAP Issues #5774
Replies: 3 comments 3 replies
-
Hi. I've been working on this and have managed to get ldaps working in my environments. Here are the steps that worked for me:
Make sure to replace the groups,domain etc to match your environment.
Once you have it working, you may want to configure the firewall correctly and modify your local ldap.conf to accept your root ca so you can remove the TLS_REQCERT never option. |
Beta Was this translation helpful? Give feedback.
-
how is authentik running? It comes with one internal Outpost. But with docker, you'll need to setup new Outposts yourself. So for LDAP i did this:
|
Beta Was this translation helpful? Give feedback.
-
should i be able to reuse to add an existing user to it, i seem to be getting "access denied" while i cannot connect to ldaps |
Beta Was this translation helpful? Give feedback.
-
Hi all, I sem to be having some issues getting my Authentik setup to work for LDAP. I reached out via Reddit and Discord a couple of weeks ago but didn't get my issues resolved.
I followed the official LDAP setup doc and this youtube video which goes through the doc step by step to get LDAP up and running and all my settings look the same as the official LDAP setup doc; however when I do the below command
then I get
-bash: 192.168.86.22: No such file or directory
which the video references and says might happen so the video supplies the below command as an alternativehowever that gives me
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
which is annoying.I figured out this might be caused by the Authenitk Server container not exposing ports
389
and636
so I have updated the compose to specify those ports.Someone on the Authentik Discord linked me to the Authentik Outpost Listener docs, which seem to suggest the LDAP outpost listens on ports
3389
and6636
(unless the docs have a spelling mistake) so I added theAUTHENTIK_LISTEN__LDAP
andAUTHENTIK_LISTEN__LDAPS
to my environment variables and pointed them to389
and636
but I wasn't sure if I needed to specify them in the Compose file or not (so I have). I can see in my portainer instance that all of the ports are exposed now.Then I tried connecting the LDAP outpost to the Local Docker connection and it appears to have made a
ak-outpost-ldap
container so maybe I need to expose the ports on that instead? This container keeps showing a status of unhealthy because it is trying to verify a TLS cert on the Authentik Server but I've disabled the certificate checks so I'm not sure why this is failing.ERR error=Get "https://192.168.86.22:9443/api/v3/outposts/instances/": tls: failed to verify certificate: x509: cannot validate certificate for 192.168.86.22 because it doesn't contain any IP SANs event=Failed to fetch outpost configuration, retrying in 3 seconds logger=authentik.outpost.ak-api-controller timestamp=2023-05-27T15:29:47Z
Things to note:
.env
file hereI'm hoping someone can help me fix these issues as Authentik seems like such a useful tool compared to running a separate Authelia, LDAP and OpenID server. Even if I have a critical issue with my setup and need to wipe it away to start fresh then I'm okay doing that because I haven't managed to make it work for my use case at all for over a month now so nothing relies on it.
Beta Was this translation helpful? Give feedback.
All reactions