Bug #1941 ยป 0001-Adding-support-for-additional-chars-in-LDAP-username.patch
src/http_auth.c | ||
---|---|---|
728 | 728 |
char c = username->ptr[i]; |
729 | 729 | |
730 | 730 |
if (!isalpha(c) && |
731 |
!isdigit(c)) { |
|
731 |
!isdigit(c) && |
|
732 |
(c != ' ') && |
|
733 |
(c != '@') && |
|
734 |
(c != '-') && |
|
735 |
(c != '_') && |
|
736 |
(c != '.') ) { |
|
732 | 737 | |
733 | 738 |
log_error_write(srv, __FILE__, __LINE__, "sbd", |
734 |
"ldap: invalid character (a-zA-Z0-9 allowed) in username:", username, i); |
|
739 |
"ldap: invalid character (- _.@a-zA-Z0-9 allowed) in username:", username, i);
|
|
735 | 740 | |
736 | 741 |
return -1; |
737 | 742 |
} |