Bug 88285 - '-nolisten tcp' passed to -querying X servers
Summary: '-nolisten tcp' passed to -querying X servers
Status: RESOLVED FIXED
Alias: None
Product: kdm
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-28 10:11 UTC by Thomas Bettler
Modified: 2008-05-19 17:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bettler 2004-08-28 10:11:11 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Gentoo Packages
Compiler:          gcc-3.3.4 
OS:                Linux

Hi

I'm running several boxes on Gentoo. I just didn't get xdmcp working, thou I proceeded all the steps I can think of.

I am trying to get kdm's remote login to work using xdmcp.  I have set 
[Xdmcp] 
enable=true 
on /usr/kde/3.3/share/config/kdm/kdmrc.  
In /usr/kde/3.3/share/config/kdm/Xaccess, I have
*                                       #any host can get a login window
*               CHOOSER BROADCAST       #any indirect host can get a chooser

I've tried to connect 3 ways using xdmcp.

(1) Using kdm remote login:
When I ask for a remote login in kdm, I get a nice chooser window with a
list of computers.  But when I try to select one, X restarts TWICE and
brings me back to my local kdm login.  I also get this error in
/var/log/kdm.log

Fatal server error:
XDMCP fatal error: Session declined No valid address

Why doesn't it work the ordinary way???

(2) direct query from command line:
If I run 
X -query foo
I get a remote kdm login windows on another computer (foo).  I can login and
everything works perfectly.

(3) indirect query from command line -> remote computer
If I run
X -indirect foo
I get a chooser which I think is being provided by computer foo.  When I
select a computer from the list, X restarts ONCE, and then I get a nice
login window on whichever computer I want.  I can login and everything
works perfectly.

(4) indirect query from command line -> local computer
If I run
X -indirect localhost
I also get a chooser. Selecting foo although simply gets me no connection neither errors. Just starring at the awful grey background from the X server that dosn't do even less than nothing.

So it seems that there is something wrong with the way that kdm is
envoked, and that whatever is causing the problem is local.

I don't know where to start looking for the error.
Comment 1 Oswald Buddenhagen 2004-08-28 11:36:41 UTC
hmm, somehow my comment to the gentoo bug report seems to have got lost ...
(1) is prolly caused by -nolisten tcp in Xservers, as the command is reused for remote login Xservers as well. dunno how to fix it best.
no idea about (4), though. try the usual things, like running kdm (both the chooser and the target machine) with -debug 1 and examine the syslogs, tcpdump on udp port 177 and tcp port 6000, etc. to see how far it gets.

Comment 2 Thomas Bettler 2004-09-06 14:47:22 UTC
Sorry that I didn't have the time to debug so far. Maybe later on I'll go on with this, but I have no experience so far, I'm quite a newbie.

Anyway there are some iteresting news.

Another box running FreeBSD has no problem accessing the my Gentoo box to get a graphical login. Vice versa there occour the problems described above.

So I'll have to look for the error on the client side.
Comment 3 Faber 2004-11-29 05:15:56 UTC
I've solved using this configuration in kdm Xservers file (both on the client and on the server):

:0 local@tty1 /usr/X11R6/bin/X
:1 local@tty2 reserve /usr/X11R6/bin/X :1 vt8
:2 local@tty3 reserve /usr/X11R6/bin/X :2 vt9
:3 local@tty4 reserve /usr/X11R6/bin/X :3 vt10
:4 local@tty5 reserve /usr/X11R6/bin/X :4 vt11
:5 local@tty6 reserve /usr/X11R6/bin/X :5 vt12

I'm now able to run multiple sessions on the server, and remote login both from command line and from kdm
Comment 4 Faber 2004-11-29 05:22:53 UTC
I was unable to post the same reply on http://bugs.gentoo.org/show_bug.cgi?id=62013 , could someone else try?

Thank you
Comment 5 Oswald Buddenhagen 2005-02-01 23:49:42 UTC
fixed for kde 3.4 by getting rid of the Xservers file.
use "ServerCmd=/usr/X11R6/bin/X" and "ServerArgsLocal=-nolisten tcp".