From 06390800923922d4a5549e985b597af33b2753ac Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 6 Jan 2009 10:06:54 -0500 Subject: [PATCH] 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. --HG-- branch : HEAD --- src/auth/userdb-passwd.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/auth/userdb-passwd.c b/src/auth/userdb-passwd.c index e801daf94d..893b305881 100644 --- a/src/auth/userdb-passwd.c +++ b/src/auth/userdb-passwd.c @@ -33,14 +33,6 @@ static void passwd_lookup(struct auth_request *auth_request, 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); -- 2.47.3