[dovecot-cvs] dovecot/src/auth passdb-pam.c,1.37.2.6,1.37.2.7

tss at dovecot.org tss at dovecot.org
Sun Dec 3 16:59:44 UTC 2006


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv7074

Modified Files:
      Tag: branch_1_0
	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.37.2.6
retrieving revision 1.37.2.7
diff -u -d -r1.37.2.6 -r1.37.2.7
--- passdb-pam.c	11 Aug 2006 15:03:44 -0000	1.37.2.6
+++ passdb-pam.c	3 Dec 2006 16:59:42 -0000	1.37.2.7
@@ -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",
@@ -474,6 +476,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