From owner-freebsd-x11@FreeBSD.ORG Wed May 10 10:20:22 2006 Return-Path: X-Original-To: freebsd-x11@hub.freebsd.org Delivered-To: freebsd-x11@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B95DB16A403 for ; Wed, 10 May 2006 10:20:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C790B43D48 for ; Wed, 10 May 2006 10:20:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4AAKL27025689 for ; Wed, 10 May 2006 10:20:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4AAKL5F025688; Wed, 10 May 2006 10:20:21 GMT (envelope-from gnats) Date: Wed, 10 May 2006 10:20:21 GMT Message-Id: <200605101020.k4AAKL5F025688@freefall.freebsd.org> To: freebsd-x11@FreeBSD.org From: Boris Samorodov Cc: Subject: Re: ports/96436: [patch] x11/xorg-clients: logging on xdm with pam_krb does not create a ticket file X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Boris Samorodov List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2006 10:20:22 -0000 The following reply was made to PR ports/96436; it has been noted by GNATS. From: Boris Samorodov To: Dejan Lesjak 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