dovecot-2.2: bsdauth: Use "auth-<service>" as the auth type.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Nov 23 23:49:50 EET 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/b40bda50541c
changeset: 15393:b40bda50541c
user: Timo Sirainen <tss at iki.fi>
date: Fri Nov 23 23:49:39 2012 +0200
description:
bsdauth: Use "auth-<service>" as the auth type.
diffstat:
src/auth/passdb-bsdauth.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r ea084c04e694 -r b40bda50541c src/auth/passdb-bsdauth.c
--- a/src/auth/passdb-bsdauth.c Fri Nov 16 17:39:25 2012 +0200
+++ b/src/auth/passdb-bsdauth.c Fri Nov 23 23:49:39 2012 +0200
@@ -18,6 +18,7 @@
verify_plain_callback_t *callback)
{
struct passwd pw;
+ const char *type;
int result;
auth_request_log_debug(request, "bsdauth", "lookup");
@@ -35,7 +36,8 @@
}
/* check if the password is valid */
- result = auth_userokay(request->user, NULL, NULL,
+ type = t_strdup_printf("auth-%s", request->service);
+ result = auth_userokay(request->user, NULL, t_strdup_noconst(type),
t_strdup_noconst(password));
/* clear the passwords from memory */
More information about the dovecot-cvs
mailing list