[dovecot-cvs] dovecot/src/auth passdb-checkpassword.c, 1.18,
1.18.2.1
tss-movial at dovecot.org
tss-movial at dovecot.org
Tue Jun 20 16:13:47 EEST 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv24480
Modified Files:
Tag: branch_1_0
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.18.2.1
diff -u -d -r1.18 -r1.18.2.1
--- passdb-checkpassword.c 20 Feb 2006 13:39:37 -0000 1.18
+++ passdb-checkpassword.c 20 Jun 2006 13:13:45 -0000 1.18.2.1
@@ -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