Bug#270826: /etc/gdm/PreSession/Default doesn't work with samba "winbind use default domain = Yes" option

Conor Oreilly Conor Oreilly <Coreilly@npr.org>, 270826@bugs.debian.org
Thu, 9 Sep 2004 10:25:22 -0400

Package: gdm

I'm unable to login with gdm.

Here's what I get in .xsession-errors

coreilly-lnx:~#  cat /home/NPR_USA/coreilly/.xsession-errors
/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/bin/X11/sessreg -a -w
/var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0"
get user id: No such file or directory

I'm using kerberos to authenticate and samba plus winbind to usernaes.  This
is all working against - and I do mean against - a windows 2003 Active

So the problem is that ../PreSession/Default wants the user to be username
but file ownership is done as DOMAIN+username because I'm using Samba.
Samba is setup to assume the domain per the "winbind use default domain =
Yes" option - without that kerberos won't work with authentication.

I should be able to fix it by hard coding DOMAIN_NAME into the script but
I'm sure there is some vastly more clever way to do this.  I suppose I could
also just ditch the idea of using kerberos but I find it very seductive so
that's out.

Any clues ideas or whatever would be appreciated but if you don't have the
time or inclination for this I totally understand.  Keep up the good work,
Debian rocks.

I am using Debian GNU/Linux testing, kernel 2.6.7-1-686 and libc6 Version:

yer friend,

Conor O'Reilly