I am in an enterprise environment and my user account is managed by
the mother ship through NIS. When I connect using this account,
nxclient authenticates and opens a black screen which disappears after
10 seconds or so. That's it.
However, creating a local user account "testguy" on the same machine
and connecting the same way works great. What gives?
There are no errors in the NX install logs. SSH works fine both ways.
The error in /var/messages is:
NXNODE-3.2.0-13[32593]: ERROR: Failed to set xpi value in command
xrdb: /bin/bash -c 'exec -a - /bin/bash -c '\''xrdb -merge'\'': output
was: xrdb: Connection refused\nxrdb: Can't open display
'127.0.0.1:0'\n, exit value: 1 Logger::log nxnode 3885
A new ~/.nx/T-C-<numbers> directory gets created for each login
attempt, but the authority file in that directory is 0 bytes.
I tried:
1. deleting ~/.nx to start fresh, on both machines, but to no avail.
2. Enabled debug logging on the server, but nothing useful that I can
see.
3. Removing gnome config files from the home directory
4. comparing the env for my user account and testguy
Anything else to try? I am stumped.
RHEL4
NXSERVER - Version 3.2.0-16 - LFE
NXNODE - Version 3.2.0-13 - LFEN
NXCLIENT - Version 3.2.0-14
Client connecting from OSX Leopard
Is your usr name in /usr/NX/etc/users.db ???
--
Mike McGinn
Registered Linux User 377849
"more kidneys than eyes!"
Code wrangling for over twenty years.
"Forsan et haec olim meminisse iuvabit."
Yes, it got magically added with the first connection attempt:
# nxserver --userlist
NX> 149 Listing NX users:
Username
--------------------------------
myusracct
testguy
NX> 999 Bye.
# nxserver --usercheck testguy
NX> 900 Verifying public key authentication for NX user: testguy.
NX> 900 Public key authentication succeeded.
NX> 999 Bye.
# nxserver --usercheck myusracct
NX> 900 Verifying public key authentication for NX user: myusracct.
NX> 900 Public key authentication succeeded.
NX> 999 Bye.
# nxserver --userauth myusracct
NX> 139 NX user DB is: off NX password DB is: off.
NX> 139 Authentication for user: myusracct is: system.
NX> 999 Bye.
# nxserver --userauth testguy
NX> 139 NX user DB is: off NX password DB is: off.
NX> 139 Authentication for user: testguy is: system.
NX> 999 Bye.
Aha! Got it.
DISPLAY=127.0.0.1 was set in my bashrc with a note about how doing
that makes x connections possible. Turns out it does the opposite.
Removing that export solved the problem, it had nothing to do with NIS
at all.
Thanks