]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
userdb passwd: Removed the check for catching broken NSS implementations.
authorTimo Sirainen <tss@iki.fi>
Tue, 6 Jan 2009 15:06:54 +0000 (10:06 -0500)
committerTimo Sirainen <tss@iki.fi>
Tue, 6 Jan 2009 15:06:54 +0000 (10:06 -0500)
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

index e801daf94d979de11ec9c8f8c001ea0eafba2c02..893b305881ec67879295b5d90f838e7fed833e30 100644 (file)
@@ -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);