-
-
Notifications
You must be signed in to change notification settings - Fork 272
Open
Description
Feature-Request
Hi.
First of all: Thank you for this super helpful tool.
Here an idea for a new feature regarding LDAP authentication:
Introduction
Authentication works perfectly by using the cn from the DN, e.g.:
cn=My Username,ou=users,dc=example,dc=com
with the related config part:
"username_pattern": "cn=$username,ou=users,dc=example,dc=com",
So: My Username
can be used to login.
Feature Request
In my case, the existing directory tree can not be changed (easily), but it would
be nice if users can use their "uid" to login, instead of their full name.
A possible way would be:
- create a config parameter to use the uid (or another attribute, which can be used to search for the dn)
- use the bind-dn to search for the uid with the given base-dn
- if it occurs only once: use the determined dn to login
- try to (simple-)bind with that dn and the given user password
Thanks in advance.
Greetings,
HomerJay