From: Timo Sirainen Date: Tue, 6 Jan 2009 15:06:54 +0000 (-0500) Subject: userdb passwd: Removed the check for catching broken NSS implementations. X-Git-Tag: 1.2.beta1~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06390800923922d4a5549e985b597af33b2753ac;p=thirdparty%2Fdovecot%2Fcore.git 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 --- 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);