wiltonsr / ldapAuth

An open source Traefik Middleware that enables authentication via LDAP in a similar way to Traefik Enterprise
https://plugins.traefik.io/plugins/628c9eb7ffc0cd18356a979c/ldap-auth
Apache License 2.0
111 stars 10 forks source link

User DN format question #14

Closed ArthurMitchell42 closed 1 year ago

ArthurMitchell42 commented 1 year ago

I'm just starting with this great plugin but have a question. The DN format when querying is uid=USERNAME,dn=example,dn=com but my LDAP server requires uid=USERNAME,cn=user,dn=example,dn=com is there a way to manipulate the query sting to support the server please?

wiltonsr commented 1 year ago

Hello @ArthurMitchell42,

Just configure baseDN=cn=user,dc=example,dc=com.

You can check more details on the examples page.

Let me know if you have any problems with the configs.

ArthurMitchell42 commented 1 year ago

Thank you Wilton, I have it all working splendidly now from the services.yml file, including allowed groups.

wiltonsr commented 1 year ago

Glad to know.