You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabling LDAP auth, if my LDAP UID is considered invalid by Mastodon (cf. #12020), I would like Mastodon to (at least try to) convert my UID to something valid.
For instance, if my LDAP UID is firstname.lastname, I would like Mastodon to replace invalid chars by an underscore and generate the username firstname_lastname.
This feature could be enabled or disabled with an environment variable:
LDAP_UID_CONVERSION_ENABLED=true
We could also add another environment variable to configure the list or regex of characters to replace and maybe the replacement character too:
LDAP_UID_CONVERSION_SEARCH=., -
LDAP_UID_CONVERSION_REPLACE=_
Motivation
This would help a few people:
LDAP admins would not need to create a new entry in users' LDAP info just to store a valid mastodon username
LDAP users could easily connect to Mastodon with their same username as any other services
The text was updated successfully, but these errors were encountered:
madmath03
changed the title
Convert LDAP username to valid format
[FEATURE] Convert LDAP username to valid format
Sep 30, 2019
madmath03
added a commit
to Monogramm/mastodon
that referenced
this issue
Nov 24, 2019
Pitch
When enabling LDAP auth, if my LDAP UID is considered invalid by Mastodon (cf. #12020), I would like Mastodon to (at least try to) convert my UID to something valid.
For instance, if my LDAP UID is
firstname.lastname
, I would like Mastodon to replace invalid chars by an underscore and generate the usernamefirstname_lastname
.This feature could be enabled or disabled with an environment variable:
LDAP_UID_CONVERSION_ENABLED=true
We could also add another environment variable to configure the list or regex of characters to replace and maybe the replacement character too:
LDAP_UID_CONVERSION_SEARCH=., -
LDAP_UID_CONVERSION_REPLACE=_
Motivation
This would help a few people:
The text was updated successfully, but these errors were encountered: