dovecot-1.1: userdb passwd: Removed the check for catching broke...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jan 6 17:07:07 EET 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/5858d901b2af
changeset: 8068:5858d901b2af
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 c89688a4e15f -r 5858d901b2af src/auth/userdb-passwd.c
--- a/src/auth/userdb-passwd.c Tue Jan 06 09:34:45 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