[dovecot-cvs] dovecot/src/auth auth-request.c,1.87,1.88

tss at dovecot.org tss at dovecot.org
Mon Feb 19 20:00:28 UTC 2007


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv15537

Modified Files:
	auth-request.c 
Log Message:
proxy and nologin was broken in last changes.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- auth-request.c	17 Feb 2007 11:21:36 -0000	1.87
+++ auth-request.c	19 Feb 2007 20:00:25 -0000	1.88
@@ -951,18 +951,20 @@
 		request->no_password = TRUE;
 	} else if (strcmp(name, "allow_nets") == 0) {
 		auth_request_validate_networks(request, value);
-	} else if (strcmp(name, "nologin") == 0) {
-		/* user can't actually login - don't keep this
-		   reply for master */
-		request->no_login = TRUE;
-		value = NULL;
-	} else if (strcmp(name, "proxy") == 0) {
-		/* we're proxying authentication for this user. send
-		   password back if using plaintext authentication. */
-		request->proxy = TRUE;
-		request->no_login = TRUE;
-		value = NULL;
 	} else {
+		if (strcmp(name, "nologin") == 0) {
+			/* user can't actually login - don't keep this
+			   reply for master */
+			request->no_login = TRUE;
+			value = NULL;
+		} else if (strcmp(name, "proxy") == 0) {
+			/* we're proxying authentication for this user. send
+			   password back if using plaintext authentication. */
+			request->proxy = TRUE;
+			request->no_login = TRUE;
+			value = NULL;
+		}
+
 		if (request->extra_fields == NULL)
 			request->extra_fields = auth_stream_reply_init(request);
 		auth_stream_reply_add(request->extra_fields, name, value);



More information about the dovecot-cvs mailing list