Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2006 10:20:21 GMT
From:      Boris Samorodov <bsam@ipt.ru>
To:        freebsd-x11@FreeBSD.org
Subject:   Re: ports/96436: [patch] x11/xorg-clients: logging on xdm with pam_krb does not create a ticket file
Message-ID:  <200605101020.k4AAKL5F025688@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/96436; it has been noted by GNATS.

From: Boris Samorodov <bsam@ipt.ru>
To: Dejan Lesjak <dejan.lesjak@ijs.si>
Cc: bug-followup@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605101020.k4AAKL5F025688>