[dovecot-cvs] dovecot/src/auth userinfo-passwd-file.c,1.22,1.23

cras at procontrol.fi cras at procontrol.fi
Sun Jan 5 15:13:09 EET 2003


Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv5880

Modified Files:
	userinfo-passwd-file.c 
Log Message:
Don't try looking for plaintext user from all realms. It didn't seem to work
before and it's probably not a good idea.



Index: userinfo-passwd-file.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/userinfo-passwd-file.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- userinfo-passwd-file.c	5 Jan 2003 13:09:51 -0000	1.22
+++ userinfo-passwd-file.c	5 Jan 2003 13:13:07 -0000	1.23
@@ -108,7 +108,6 @@
 				    struct auth_cookie_reply_data *reply)
 {
 	struct passwd_user *pu;
-	const char *const *tmp;
 	unsigned char digest[16];
 	const char *str;
 
@@ -116,15 +115,6 @@
 
 	/* find it from all realms */
 	pu = hash_lookup(passwd_file->users, user);
-	if (pu == NULL) {
-		t_push();
-		for (tmp = auth_realms; *tmp != NULL; tmp++) {
-                        str = t_strconcat(user, ":", *tmp, NULL);
-			pu = hash_lookup(passwd_file->users, str);
-		}
-		t_pop();
-	}
-
 	if (pu == NULL)
 		return FALSE;
 




More information about the dovecot-cvs mailing list