Mercurial > dovecot > core-2.2
changeset 8591:072a943c3de3 HEAD
userdb passwd: Removed the check for catching broken NSS implementations.
The nss_ldap problem is already fixed in both Dovecot and nss_ldap itself.
This also now allows NSS to change username on purpose.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 06 Jan 2009 10:06:54 -0500 |
parents | b9faf4db2a9f |
children | 8299d17219fa |
files | src/auth/userdb-passwd.c |
diffstat | 1 files changed, 0 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/userdb-passwd.c Tue Jan 06 09:25:38 2009 -0500 +++ b/src/auth/userdb-passwd.c Tue Jan 06 10:06:54 2009 -0500 @@ -33,14 +33,6 @@ return; } - if (strcasecmp(pw->pw_name, auth_request->user) != 0) { - /* try to catch broken NSS implementations (nss_ldap) */ - i_fatal("BROKEN NSS IMPLEMENTATION: " - "getpwnam() lookup returned different user than was " - "requested (%s != %s).", - pw->pw_name, auth_request->user); - } - auth_request_set_field(auth_request, "user", pw->pw_name, NULL); auth_request_init_userdb_reply(auth_request);