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
117 stars 10 forks source link

feat: add support for allowing individual users #43

Closed fcinqmars closed 1 year ago

fcinqmars commented 1 year ago

Hello,

I have a use case where I would like to authorize service accounts without necessarily adding them to security groups. I implemented a new feature in the plugin to support granting access to users via either DNs or usernames. It is very similar to the AllowedGroups feature except that no LDAP queries are required.

Added:

Minor changes:

[No breaking changes]

fcinqmars commented 1 year ago

I had to change the way I join the errors in the LdapCheckUserAuthorized function as the pipeline is on Go 1.17. errors.Join was added in 1.20.