dovecot-1.2: userdb passwd: Removed the check for catching broke...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jan 6 17:07:30 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/072a943c3de3
changeset: 8591:072a943c3de3
user: Timo Sirainen <tss at iki.fi>
date: Tue Jan 06 10:06:54 2009 -0500
description:
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.
diffstat:
1 file changed, 8 deletions(-)
src/auth/userdb-passwd.c | 8 --------
diffs (18 lines):
diff -r b9faf4db2a9f -r 072a943c3de3 src/auth/userdb-passwd.c
--- 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
@@ -31,14 +31,6 @@ static void passwd_lookup(struct auth_re
auth_request_log_info(auth_request, "passwd", "unknown user");
callback(USERDB_RESULT_USER_UNKNOWN, 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);
More information about the dovecot-cvs
mailing list