Hello, I must be missing something because I can't get xdm to work happily with pam_winbind. The 6.1 system is joined to a Windows domain and aware of domain users. I log on to the machine using my domain account via SSH and all is well. I've enabled xdm and restarted init. Connections from any host are permitted. I have also modified the pam.d/xdm file to use the winbind pam module for authentication. I get a login screen and my username and password are correctly checked against Active Directory. I have setup a ~/.xsession file which should log me in and start a Gnome environment. What actually happens is that the connection seems to drop and reconnect and I end up back at an xdm prompt. In the system messages log I have the following: xdm: pam_sm_close_session(): no utmp record for DESKTOP:0 * DESKTOP is the hostname of my desktop system from which I am connecting. I tried commenting out the session line in pam.d/xdm which this message comes from, it removes the error but doesn't change the behaviour so I assume it is not directly related. I couldn't find anything in the Handbook to help me on my way. If anyone could tell me the missing link I would appreciate it greatly. Thanks, Dominic Marks
Dominic Marks wrote:> Hello, > > I must be missing something because I can't get xdm to work happily > with pam_winbind. The 6.1 system is joined to a Windows domain and > aware of domain users. I log on to the machine using my domain account > via SSH and all is well. > > I've enabled xdm and restarted init. Connections from any host are > permitted. I have also modified the pam.d/xdm file to use the winbind > pam module for authentication. > > I get a login screen and my username and password are correctly > checked against Active Directory. I have setup a ~/.xsession file > which should log me in and start a Gnome environment. > > What actually happens is that the connection seems to drop and > reconnect and I end up back at an xdm prompt. In the system messages > log I have the following: > > xdm: pam_sm_close_session(): no utmp record for DESKTOP:0 > > * DESKTOP is the hostname of my desktop system from which I am > connecting. > > I tried commenting out the session line in pam.d/xdm which this > message comes from, it removes the error but doesn't change the > behaviour so I assume it is not directly related. > > I couldn't find anything in the Handbook to help me on my way. > If anyone could tell me the missing link I would appreciate it > greatly.Well, it works with gdm. I still don't know why xdm didn't work though. Dominic> Thanks, > Dominic Marks > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" >
Dominic Marks wrote:>> xdm: pam_sm_close_session(): no utmp record for DESKTOP:0 >> >>does winbind implement pam_{open|close}_session? If so, does adding a "session" line as well as the "auth" line to /etc/pam.d/xdm help? -- Michael Butler, CISSP Security Architect Protected Networks http://www.protected-networks.net
On Tue, 16 May 2006 14:22:30 +0100 (BST) Dominic Marks wrote:> I must be missing something because I can't get xdm to work happily > with pam_winbind. The 6.1 system is joined to a Windows domain and > aware of domain users. I log on to the machine using my domain account > via SSH and all is well.> I've enabled xdm and restarted init. Connections from any host are > permitted. I have also modified the pam.d/xdm file to use the winbind > pam module for authentication.> I get a login screen and my username and password are correctly > checked against Active Directory. I have setup a ~/.xsession file > which should log me in and start a Gnome environment.> What actually happens is that the connection seems to drop and > reconnect and I end up back at an xdm prompt. In the system messages > log I have the following:> xdm: pam_sm_close_session(): no utmp record for DESKTOP:0> * DESKTOP is the hostname of my desktop system from which I am > connecting.> I tried commenting out the session line in pam.d/xdm which this > message comes from, it removes the error but doesn't change the > behaviour so I assume it is not directly related.> I couldn't find anything in the Handbook to help me on my way. > If anyone could tell me the missing link I would appreciate it greatly.Can't say for sure if it may help you, but I also had problems with xdm, pam and auth. The result was: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/96436 Hope that it might help you. WBR -- Boris B. Samorodov, Research Engineer InPharmTech Co, http://www.ipt.ru Telephone & Internet Service Provider