Project

General

Profile

Actions

Feature #2072

closed

Allow E-Mail Adresses in LDAP-Usernames

Added by mdornseif about 15 years ago. Updated about 15 years ago.

Status:
Duplicate
Priority:
Normal
Category:
mod_auth
Target version:
-
ASK QUESTIONS IN Forums:

Description

We use E-Mail adresses as login name across our infrastruncture. Forks nicely except Lighttpd is very strict regarding allowes characters. This Patch enables the use of @ and .:

--- lighttpd-1.4.20.orig/src/http_auth.c    2008-09-17 14:25:42.000000000 +0000
+++ lighttpd-1.4.20/src/http_auth.c    2009-09-28 14:54:45.000000000 +0000
@@ -725,10 +725,12 @@
             char c = username->ptr[i];

             if (!isalpha(c) &&
-                !isdigit(c)) {
+                !isdigit(c) &&
+                !(c == '@') &&
+                !(c == '.')) {

                 log_error_write(srv, __FILE__, __LINE__, "sbd",
-                    "ldap: invalid character (a-zA-Z0-9 allowed) in username:", username, i);
+                    "ldap: invalid character ([a-zA-Z0-9@.] allowed) in username:", username, i);

                 return -1;
             }

Related issues 1 (0 open1 closed)

Is duplicate of Bug #1941: [PATCH] Adding support for additional characters in LDAP user namesFixed2009-03-18Actions
Actions #1

Updated by stbuehler about 15 years ago

  • Status changed from Patch Pending to Duplicate
  • Target version deleted (1.4.x)
Actions

Also available in: Atom