[dovecot-cvs] dovecot/src/auth passdb-checkpassword.c,1.18,1.19
tss-movial at dovecot.org
tss-movial at dovecot.org
Tue Jun 20 16:13:49 EEST 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv21176
Modified Files:
passdb-checkpassword.c
Log Message:
Return value 1 from checkpassword can mean either password mismatch or unknown user. Treat it as password mismatch instead of as unknown user.
Index: passdb-checkpassword.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-checkpassword.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- passdb-checkpassword.c 20 Feb 2006 13:39:37 -0000 1.18
+++ passdb-checkpassword.c 20 Jun 2006 13:13:47 -0000 1.19
@@ -100,18 +100,18 @@
return;
switch (request->exit_status) {
+ case 1:
+ auth_request_log_info(request->request, "checkpassword",
+ "Password not accepted");
+ checkpassword_request_finish(request,
+ PASSDB_RESULT_PASSWORD_MISMATCH);
+ break;
case 0:
if (request->input_buf != NULL) {
checkpassword_request_finish(request, PASSDB_RESULT_OK);
break;
}
/* missing input - fall through */
- case 1:
- auth_request_log_info(request->request, "checkpassword",
- "Unknown user");
- checkpassword_request_finish(request,
- PASSDB_RESULT_USER_UNKNOWN);
- break;
case 2:
/* checkpassword is called with wrong
parameters? unlikely */
More information about the dovecot-cvs
mailing list