Patch: Solved: Re: [OpenAFS-devel] PAM / openssh 3.7.1p2

Dean Anderson dean@av8.com
Mon, 6 Oct 2003 19:28:53 -0400 (EDT)


Never mind. Somehow, it was getting the PAG of a previous login.  This is
probably a more serious bug (one shouldn't be able to get PAG's by UID
association, right?), but not directly related to the openssh/pam_afs bug.

So, anyone have any ideas on why the pam_afs module doesn't work with
openssh?

		--Dean

On Mon, 6 Oct 2003, Dean Anderson wrote:

>
> The following patch fixes openssh-3.7.1p2 to work with the pam_afs.so
> module:
>
> If anyone wants the rpm spec file for redhat 7.3, let me know.
>
> 		--Dean
>
> [root@dakota SOURCES]# more openssh-3.7.1p2-av8.patch
> diff -r -u openssh-3.7.1p2.orig/session.c openssh-3.7.1p2/session.c
> --- openssh-3.7.1p2.orig/session.c	Tue Sep 23 04:59:08 2003
> +++ openssh-3.7.1p2/session.c	Mon Oct  6 01:25:05 2003
> @@ -1275,8 +1275,8 @@
>  		 * Reestablish them here.
>  		 */
>  		if (options.use_pam) {
> -			do_pam_session();
>  			do_pam_setcred(0);
> +			do_pam_session();
>  		}
>  # endif /* USE_PAM */
>  # if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) ||
> defined(WITH_IRIX_ARRAY)
>
>
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
>