There is 2 problems with your fix. I'll tried to explain it properly now :
- when we add the option LDM_DIRECTX to TRUE (ltsp propose this option for some reasons) ldm don't add "-ac" option to X. That bad for security but that is not a default option. That why we have :
if (ldminfo.directx)
argv[i++] = "-ac";
If I add LDM_DIRECTX to TRUE, the option "-ac" is add to X. When I remove this option, there is no more "-ac" option (which is greate).
- if I don't use LDM_DIRECTX, LDM will create a .Xauthority file with a generate cookie (with the fonction create_xauth();). The problem is that X client generate a cookie, ldm generate an other cookie for the X server. X client cookie and X server cookie will be different and I've this kind of error message :
Xlib: connection to "????????????????:11.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
So if I add LDM_DIRECTX to TRUE, I can't login on it because there is no "-ac" option for X. If I remove LDM_DIRECTX option I can't login on it because I have a different cookie on client and server side.
I'm using gutsy.
There is 2 problems with your fix. I'll tried to explain it properly now :
- when we add the option LDM_DIRECTX to TRUE (ltsp propose this option for some reasons) ldm don't add "-ac" option to X. That bad for security but that is not a default option. That why we have :
if (ldminfo.directx)
argv[i++] = "-ac";
If I add LDM_DIRECTX to TRUE, the option "-ac" is add to X. When I remove this option, there is no more "-ac" option (which is greate).
- if I don't use LDM_DIRECTX, LDM will create a .Xauthority file with a generate cookie (with the fonction create_xauth();). The problem is that X client generate a cookie, ldm generate an other cookie for the X server. X client cookie and X server cookie will be different and I've this kind of error message :
Xlib: connection to "?????? ??????? ???:11. 0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
So if I add LDM_DIRECTX to TRUE, I can't login on it because there is no "-ac" option for X. If I remove LDM_DIRECTX option I can't login on it because I have a different cookie on client and server side.