[dovecot-cvs] dovecot/src/auth passdb-pam.c,1.43,1.44
tss at dovecot.org
tss at dovecot.org
Sun Dec 3 16:59:47 UTC 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv7062
Modified Files:
passdb-pam.c
Log Message:
Set default_pass_scheme so that cache_key works instead of just
assert-crashing.
Index: passdb-pam.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-pam.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- passdb-pam.c 8 Nov 2006 20:22:08 -0000 1.43
+++ passdb-pam.c 3 Dec 2006 16:59:44 -0000 1.44
@@ -219,6 +219,8 @@
}
}
+ /* FIXME: this doesn't actually work since we're in the child
+ process.. */
status = pam_get_item(pamh, PAM_USER, (linux_const void **)&item);
if (status != PAM_SUCCESS) {
*error = t_strdup_printf("pam_get_item() failed: %s",
@@ -475,6 +477,9 @@
const char *args __attr_unused__)
{
lib_signals_set_handler(SIGCHLD, TRUE, sigchld_handler, NULL);
+ /* we're caching the password by using directly the plaintext password
+ given by the auth mechanism */
+ _module->default_pass_scheme = "PLAIN";
}
static void pam_deinit(struct passdb_module *_module __attr_unused__)
More information about the dovecot-cvs
mailing list