}
}
-#if 0
#if HAVE_PAM_SETCRED
+ fprintf(stderr, "pam_setcred...\n");
if (retval == PAM_SUCCESS)
{
retval=pam_setcred(*pamh, PAM_ESTABLISH_CRED);
if (retval != PAM_SUCCESS)
{
- DPRINTF("pam_setcred failed, result %d", retval);
+ fprintf(stderr, "pam_setcred failed, result %d\n", retval);
}
+ fprintf(stderr, "pam_setcred done\n");
}
#endif
-#endif
+
if (retval == PAM_SUCCESS)
{
-- Stefan Hornburg (Racke) <racke@linuxia.de> Mon, 02 Mar 2009 16:09:05 +0100
+courier-authlib (0.61.0-1+lenny1hcoop1) lenny; urgency=low
+
+ * Merge from Debian. Remaining changes:
+ + authpam.c:
+ - Revert the disabling of pam_setcred so that IMAP works on AFS.
+ + courier_auth_config.h:
+ - Set the userdb path to be /etc/courier/userdb.
+ + preauthuserdbcommon.c:
+ - Get AFS tokens.
+
+ -- Michael Olson (HCoop) <mwolson@hcoop.net> Thu, 09 Apr 2009 23:43:21 -0400
+
courier-authlib (0.61.0-1+lenny1) testing-security; urgency=high
* Non-maintainer upload by the security team
-- Steffen Joeris <white@debian.org> Mon, 09 Jun 2008 15:29:23 +0000
+courier-authlib (0.60.2-0hcoop7) unstable; urgency=low
+
+ * Revert last change. Now the AFS token code is before the callback.
+
+ -- Michael Olson (HCoop) <mwolson@hcoop.net> Thu, 07 Feb 2008 22:37:30 -0500
+
+courier-authlib (0.60.2-0hcoop6) unstable; urgency=low
+
+ * Move acquiting of AFS vmail tokens to just after callback.
+
+ -- Michael Olson (HCoop) <mwolson@hcoop.net> Sat, 02 Feb 2008 20:29:01 -0500
+
+courier-authlib (0.60.2-0hcoop5) unstable; urgency=low
+
+ * Move acquiring of AFS vmail tokens to preauthuserdbcommon.c.
+
+ -- Michael Olson (HCoop) <mwolson@hcoop.net> Fri, 01 Feb 2008 21:55:37 -0500
+
+courier-authlib (0.60.2-0hcoop4) unstable; urgency=low
+
+ * authuserdb: Try using a separate get-token script.
+
+ -- Michael Olson (HCoop) <mwolson@hcoop.net> Wed, 30 Jan 2008 13:17:14 -0500
+
+courier-authlib (0.60.2-0hcoop3) unstable; urgency=low
+
+ * Fix bug in previous patch.
+
+ -- Michael Olson (HCoop) <mwolson@hcoop.net> Sun, 27 Jan 2008 16:19:18 -0500
+
+courier-authlib (0.60.2-0hcoop2) unstable; urgency=low
+
+ * Get token after authenticating a vmail user.
+
+ -- Michael Olson (HCoop) <mwolson@hcoop.net> Sat, 26 Jan 2008 15:28:19 -0500
+
+courier-authlib (0.60.2-0hcoop1) unstable; urgency=low
+
+ * New upstream release. Remaining changes:
+ - Revert the disabling of pam_setcred so that IMAP works as expected.
+ - Set the userdb path to be /etc/courier/userdb.
+
+ -- Michael Olson (HCoop) <mwolson@hcoop.net> Fri, 25 Jan 2008 19:24:41 -0500
+
courier-authlib (0.60.1-2) unstable; urgency=low
* added LSB dependency info to init scripts (Closes: #460221, thanks to
-- Stefan Hornburg (Racke) <racke@linuxia.de> Mon, 7 Apr 2008 13:21:37 +0200
+courier-authlib (0.60.1-1hcoop1) unstable; urgency=low
+
+ * Sync from Debian. Remaining changes:
+ - Revert the disabling of pam_setcred so that IMAP works as expected.
+ - Set the userdb path to be /etc/courier/userdb.
+
+ -- Michael Olson (HCoop) <mwolson@hcoop.net> Fri, 25 Jan 2008 18:28:11 -0500
+
courier-authlib (0.60.1-1) unstable; urgency=low
* new upstream release
-- Stefan Hornburg (Racke) <racke@linuxia.de> Thu, 21 Jun 2007 20:26:38 +0200
+courier-authlib (0.59.3-1hcoop1) unstable; urgency=low
+
+ [Adam Megacz]
+ * Revert the disabling of pam_setcred so that IMAP works as expected.
+ * Set the userdb path to be /etc/courier/userdb.
+ * userdb: Allow "+", ":", and "_" in usernames.
+
+ -- Michael Olson (HCoop) <mwolson@hcoop.net> Fri, 25 Jan 2008 17:46:10 -0500
+
courier-authlib (0.59.3-1) unstable; urgency=low
* new upstream release
static const char rcsid[]="$Id: preauthuserdbcommon.c,v 1.21 2006/10/28 19:22:52 mrsam Exp $";
+#define TOKEN_CMD "/etc/courier/get-token "
+
int auth_userdb_pre_common(const char *userid, const char *service,
int needpass,
int (*callback)(struct authinfo *, void *),
auth.maildir=udb->udb_mailbox;
auth.quota=udb->udb_quota;
+ /* Get tokens for AFS */
+ { char uidstr[32] = "<null>";
+ char *token_cmd;
+ if (auth.sysuserid)
+ {
+ snprintf(uidstr, sizeof(uidstr), "%ld", (long)*auth.sysuserid);
+ if ((token_cmd=malloc(sizeof(TOKEN_CMD)+strlen(uidstr))))
+ {
+ strcat(strcpy(token_cmd, TOKEN_CMD),uidstr);
+ system(token_cmd);
+ free(token_cmd);
+ }
+ }
+ }
+
courier_authdebug_authinfo("DEBUG: authuserdb: ", &auth, 0, passwords);
rc= (*callback)(&auth, arg);
if (passwords) free(passwords);