[dovecot-cvs] dovecot/src/auth userinfo-pam.c,1.3,1.4

cras at procontrol.fi cras at procontrol.fi
Tue Oct 29 07:07:22 EET 2002


Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv12974/src/auth

Modified Files:
	userinfo-pam.c 
Log Message:
Call pam_setcred() if it exists.



Index: userinfo-pam.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/userinfo-pam.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- userinfo-pam.c	5 Oct 2002 21:13:22 -0000	1.3
+++ userinfo-pam.c	29 Oct 2002 05:07:20 -0000	1.4
@@ -167,6 +167,14 @@
 		return FALSE;
 	}
 
+#ifdef HAVE_PAM_SETCRED
+	if ((status = pam_setcred(pamh, PAM_ESTABLISH_CRED)) != PAM_SUCCESS) {
+		if (status == PAM_ABORT)
+			i_fatal("pam_setcred_mgmt() requested abort");
+		return FALSE;
+	}
+#endif
+
 	if ((status = pam_acct_mgmt(pamh, 0)) != PAM_SUCCESS) {
 		if (status == PAM_ABORT)
 			i_fatal("pam_acct_mgmt() requested abort");




More information about the dovecot-cvs mailing list