[FreeNX-kNX] USer can not log in Over NX
Mario Becroft
mb at gem.win.co.nz
Tue Oct 7 13:19:12 UTC 2008
Daniel Spannbauer <ds at marco.de> writes:
> su is working, I log in the same way. As root, a su karin works also. I
> can't do the su cause I don't know the password.
>
> The authentication is done via ldap, a "getent passwd karin" gives the
> correct result.
Probably not relevant, but on my system, when our LDAP server was
running extremely slow for some reason, the nxserver would occasionally
give up and timeout while waiting for the su command to work, so I
tweaked the timeout in /usr/NX/bin/nxserver. Here is the patch for that:
--8<---------------cut here---------------start------------->8---
--- nxserver.dist 2008-09-24 03:20:08.000000000 +1200
+++ nxserver 2008-09-24 03:38:02.000000000 +1200
@@ -591,7 +591,7 @@
NXNODE_SLAVE_STARTED=""
# FIXME: Make timeout configurable
- while read -t 10 line <&$NX_COMMFD
+ while read -t 30 line <&$NX_COMMFD
do
log 6 "$line"
case "$line" in
--8<---------------cut here---------------end--------------->8---
It is hard to tell whether the su is failing, or whether the su worked
and then the next thing it tried to do failed. I am not sure how
nxserver relates to nxnode precisely, but the problem could be in
invoking nxnode.
I would put some debug messages in the nxnode_login() function in
nxserver to show what is happening. Alternatively, try it with a
different authentication method (e.g. ssh).
Or maybe someone who actually knows how FreeNX works will give you a
proper answer :-)
--
Mario Becroft <mb at gem.win.co.nz>
More information about the FreeNX-kNX
mailing list