Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!dkuug!dde!Aragorn!thj From: thj@dde.dk (Thomas Herlin Jensen) Newsgroups: comp.windows.x Subject: Problems with XDM and authorisation Keywords: XDM,MIT-MAGIC-COOKIE Message-ID: <1991Apr25.130901.6290@dde.dk> Date: 25 Apr 91 13:09:01 GMT Organization: Dansk Data Elektronik A/S Lines: 67 Hello everybody, I have some problems regarding authorisation and XDM. I use our own developped Supermax multiprocessor as a host and a NCD17c X-terminal, with X11R4 Server (version 2.3K). The XDM is taken from the X11R4 patchlevel 8 (original MIT distribution). The problem: We get a timeout at the first XOpenDisplay the XDM tries to connect. If something is wrong with the authorization you would presume that the server simply rejects the connection, but our XDM just times out. Xhosts is ofcourse set to my local host More details: Tracing the problem I have come to the point that the following scenario takes place. Display manager xdm Display NCD <----------- Query Willing -----------> <----------- Request Accept -----------> - mitAuth generate for proto display <----------- Manage - save auth data in generated Auth file 1) -**** XOpenDisplay -----------> timeout ??????? 2) -Set AUTHORITY 3) -Load resources with xrdb At this point I have looked at the MIT server sample implementation. When an XOpenDisplay request arrives the first thing checked is the authentification, by looking into the auth file. For the sampleserver this is quite straight forward, as it is assumed to be local and started from the XDM at point 1), e.g. Xsun -auth /usr/lib/X11/xdm/AuthXXXX . But how does this comply to a remote X-Server ??????????? The first thing you think of is the missing XAUTHORITY environmental variable, that is needed, but according to the code the XAUTHORITY is set at point 2) after the XOpenDisplay. Also the resources for xdm are loaded later, at point 3). Does anybody have a guess what could be wrong ? Any hints are highly appreciated ? ------------------------------------------------------------------------------ Thomas Herlin Jensen Tel: int +45 42 84 50 11 (UTC + 1) Dansk Data Elektronik A/S Fax: int +45 42 84 52 20 Herlev Hovedgade 199 Telex: 35258 dde dk DK-2730 Herlev, Denmark E-mail: thj@dde.dk -- Thomas Herlin Jensen Tel: int +45 42 84 50 11 (UTC + 1) Dansk Data Elektronik A/S Fax: int +45 42 84 52 20 Herlev Hovedgade 199 Telex: 35258 dde dk DK-2730 Herlev, Denmark E-mail: thj@dde.dk