[dovecot-cvs] dovecot/src/auth auth-worker-client.c, 1.4,
1.5 passdb.c, 1.34, 1.35 passdb.h, 1.24, 1.25
cras at dovecot.org
cras at dovecot.org
Wed Mar 16 22:18:15 EET 2005
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv17649/src/auth
Modified Files:
auth-worker-client.c passdb.c passdb.h
Log Message:
Non-plaintext blocking passdb authentication wasn't working. Patch by Andrey
Panin.
Index: auth-worker-client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-worker-client.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- auth-worker-client.c 7 Mar 2005 20:21:52 -0000 1.4
+++ auth-worker-client.c 16 Mar 2005 20:18:13 -0000 1.5
@@ -153,9 +153,9 @@
if (result != PASSDB_RESULT_OK)
str_printfa(str, "FAIL\t%d", result);
else {
- str_append(str, "OK\t");
- str_append(str, credentials);
- str_append_c(str, '\t');
+ str_printfa(str, "OK\t{%s}%s\t",
+ passdb_credentials_to_str(request->credentials),
+ credentials);
if (request->extra_fields != NULL)
str_append_str(str, request->extra_fields);
}
Index: passdb.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- passdb.c 7 Mar 2005 18:55:13 -0000 1.34
+++ passdb.c 16 Mar 2005 20:18:13 -0000 1.35
@@ -49,7 +49,7 @@
NULL
};
-static const char *
+const char *
passdb_credentials_to_str(enum passdb_credentials credentials)
{
switch (credentials) {
Index: passdb.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- passdb.h 7 Mar 2005 18:55:13 -0000 1.24
+++ passdb.h 16 Mar 2005 20:18:13 -0000 1.25
@@ -67,6 +67,8 @@
lookup_credentials_callback_t *callback,
struct auth_request *auth_request);
+const char * passdb_credentials_to_str(enum passdb_credentials credentials);
+
void passdb_preinit(struct auth *auth, const char *driver, const char *args);
void passdb_init(struct auth_passdb *passdb);
void passdb_deinit(struct auth_passdb *passdb);
More information about the dovecot-cvs
mailing list