ports/96436: [patch] x11/xorg-clients: logging on xdm with
pam_krb does not create a ticket file
Boris Samorodov
bsam at ipt.ru
Wed May 10 10:20:22 UTC 2006
The following reply was made to PR ports/96436; it has been noted by GNATS.
From: Boris Samorodov <bsam at ipt.ru>
To: Dejan Lesjak <dejan.lesjak at ijs.si>
Cc: bug-followup at freebsd.org
Subject: Re: ports/96436: [patch] x11/xorg-clients: logging on xdm with pam_krb does not create a ticket file
Date: Wed, 10 May 2006 14:12:53 +0400
On Wed, 10 May 2006 10:16:11 +0200 Dejan Lesjak wrote:
> This would seem to be bug #4765 in X.org bugzilla:
> https://bugs.freedesktop.org/show_bug.cgi?id=4765
> Could you try if the attached patch from there taken from X.org CVS works for
> you?
I tested the first patch. It doesn't help.
The problem from X.org bugzilla is with not defining KRB5CCNAME. The
problem I wrote about is with not doing pam_setcred () -- the code in
not reached. It is located inside "#ifndef HAS_SETUSERCONTEXT", but I
have HAS_SETUSERCONTEXT defined. I added some debug info to session.c
file:
=====
--- session.c.orig Wed May 10 13:52:17 2006
+++ session.c Wed May 10 13:27:42 2006
@@ -599,6 +599,7 @@
#endif
#ifndef AIXV3
+ LogError ("bsam: HAS_SETUSERCONTEXT = %i\n", HAS_SETUSERCONTEXT);
#ifndef HAS_SETUSERCONTEXT
if (setgid(verify->gid) < 0) {
LogError ("setgid %d (user \"%s\") failed, errno=%d\n",
=====
And get a message while running xdm with debug:
=====
xdm error (pid 1160): bsam: HAS_SETUSERCONTEXT = 1
=====
Hence the code with pam_setcred () is never reached. That's why I've
had to place the code with this function call outside.
WBR
--
Boris B. Samorodov, Research Engineer
InPharmTech Co, http://www.ipt.ru
Telephone & Internet Service Provider
More information about the freebsd-x11
mailing list