hello list
I have been trying to use CDE from a remote Xserver via xdmcp protocol
I run dtlogin on computer "alpha" and run " Xnest :2 -query
alpha" on computer "beta"
I get the the login panel on Xnest > (fine .. so far )
but when i try to log in , i get a black screen for a few seconds and
... back to the login panel ) .
after a lot of debugging via strace and so on , i deternined that the
/MIT/-MAGIC-/COOKIE/-1 of the remote Xserver does not get added/written
in the user's .Xauthority .
this happens in cde/programs/dtlogin/auth.c arround line 1255 :
1242 * Write MIT-MAGIC-COOKIE-1 authorization first, so that
1243 * R4 clients which only knew that, and used the first
1244 * matching entry will continue to function
1245 */
1246 magicCookie = -1;
1247 for (i = 0; i < d->authNum; i++)
1248 {
1249 if (auths[i]->name_length == 18 &&
1250 !strncmp (auths[i]->name, "MIT-MAGIC-COOKIE-1", 18))
1251 {
1252 magicCookie = i;
1253 if (d->displayType.location == Local)
1254 writeLocalAuth (new, auths[i], d->name);
1255 #ifdef XDMCP
1256 else
1257 writeRemoteAuth (new, auths[i], d->peer,
d->peerlen, d- >name);
1258 #endif
the problem is that XDMCP is not defined so writeRemoteAuth (..) never
gets executed .
i am not familar with Imakefile , but i looked into it anyway , so i
added
#define HasXdmAuth YES
at the end of cde/config/cf/linux.cf
and did a make World ( this did not fix the problem )
still XDMCP was not defined
so i modified cde/programs/dtlogin/dm.h with "#define XDMCP" on the
first line
and compiled by "hand" doing a "make" in cde/programs/dtlogin
this fixed dtlogin , and it now works fine .
I am well aware that this is a quite "dirty" fix , but not being
familiar with the Imakefile
system , i am not sure how to fix this cleanly .
If someone familiar with Imakefile build system wants to have a look at
it ........
And many thanks to all the people that brought CDE back to life !!
B.G
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel