Geekazoid

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Authentication Failed? #1778
    Geekazoid
    Participant

    Good morning,

    many thanks for the feedback. Unfortuantely I’m limited to SLES10SP2 in my environment but I’m very much looking forward to a fix in the next release of the nx software.

    in reply to: Authentication Failed? #1653
    Geekazoid
    Participant

    I’ve done an strace incl. childs could see that the pam modules seem to be properly loaded. Username and password are correct and also correctly transmitted from client to server. Please find the strace as txt attached. Maybe it helps.

    in reply to: Authentication Failed? #1652
    Geekazoid
    Participant

    Thanks for the answer. “su” is working fine, I could switch from root to user, from user to user etc. with su – <username>. Here’s the default /etc/pam.d/su config used on the SLES10SP2 server:

    #%PAM-1.0

    auth     sufficient     pam_rootok.so

    auth     include        common-auth

    account  include        common-account

    password include        common-password

    session  include        common-session

    session  optional       pam_xauth.so

    in reply to: Authentication Failed? #1631
    Geekazoid
    Participant

    I checked the error “nxexecPAMCheckCredentials: Authentication failed with error 28.” on the nxerror.log which I think is the hint for the problem (at least mine). The /var/log/messages shows:

    Jan  9 08:49:25 server nxexec: PAM unable to dlopen(/lib/security/pam_unix2.so)

    Jan  9 08:49:25 server nxexec: PAM [error: /lib/security/pam_unix2.so: undefined symbol: pam_syslog]

    Jan  9 08:49:25 server nxexec: PAM adding faulty module: /lib/security/pam_unix2.so

    NX added a PAM configuration in /etc/pam.d/nxsshd which look fine for me. From what I understood about PAM it should be able to use local /etc/passwd,/etc/shadow, NIS and LDAP.

    in reply to: Authentication Failed? #1623
    Geekazoid
    Participant

    Hello,

    I’m also having troubles with the authentication when using NX 4.

    Setup – NX client Ubuntu 12.04 nomachine_4.0.369_1_i386 / NX server SLES10SP2 nomachine_4.0.369_1_i686. I’m using the standard setup after installation without any modifications:

    — Client logs:

    connection

    HELLO NXSERVER – Version 4.0.369 – NoMachine

    NX> 105 Hello NXCLIENT – Version 4.0.369

    NX> 134 Accepted protocol: 4.0.369

    NX> 105 Set shell_mode: shell

    NX> 105 Set auth_mode: password

    NX> 105 Login

    NX> 250 Properties: username required for mcs-master port: 22 service login: cgsadmin

    NX> 250 Properties: password required for mcs-master port: 22 service login:

    session

    Info: Starting NoMachine version 4.0.369.

    Info: Loading settings from ‘.nx/config/nxplayer.cfg’.

    28893 28893 14:54:25 551.723 Main: Creating the client session.

    28893 28893 14:54:25 551.799 ClientSession: Initializing session at 0x9151a68.

    28893 28893 14:54:25 551.845 ClientSession: Change state to ‘Initializing’.

    28893 28893 14:54:25 551.943 ClientSession: Created new view at 0x9152578 with label ‘MainWindowView’ and value ‘0x8271150’.

    28893 28893 14:54:25 611.678 ClientSession: Created new view at 0x9153e68 with label ‘MenuPanelView’ and value ‘0x8271150’.

    28893 28893 14:54:25 965.884 ClientSession: Created new view at 0x9371ae0 with label ‘SessionWizardView’ and value ‘0x8271150’.

    28893 28893 14:54:26 078.223 ClientSession: Change state to ‘Initialized’.

    28893 28893 14:54:26 078.460 ClientSession: Initialized session at 0x9151a68.

    28893 28893 14:54:26 078.486 Main: Entering the GUI event loop.

    28893 28893 14:54:26 862.282 ClientSession: Going to handle running children.

    28893 28893 14:54:28 326.439 ClientSession: Going to handle running children.

    28893 28893 14:54:29 736.994 ClientSession: Going to handle running children.

    28893 28893 14:54:30 358.753 ClientSession: Starting session at 0x9151a68.

    28893 28893 14:54:30 358.783 ClientSession: Change state to ‘Starting’.

    28893 28893 14:54:30 359.277 ClientSession: Going to start session ‘/home/user/Documents/NoMachine/Connection to 192.168.169.191.nxs’.

    28893 28893 14:54:30 368.457 Connection: Disabling interactive session.

    28893 28893 14:54:30 368.510 ClientSession: Created local ’10’ and remote ’11’ descriptors for the connection signaling.

    28893 28893 14:54:30 368.573 Connection: Initializing connection at 0x9443c38.

    28893 28893 14:54:30 368.635 Connection: Initialized connection at 0x9443c38.

    28893 28893 14:54:30 368.650 Connection: Starting connection at 0x9443c38.

    28893 28893 14:54:30 368.662 ClientDaemonConnector: Starting a new connection to host ‘192.168.169.191’ on port ‘4000’.

    28893 28893 14:54:30 368.777 Connection: Started connection at 0x9443c38.

    Info: Connection to 192.168.169.191 port 4000 started at 14:54:30 370.491.

    28893 28893 14:54:30 373.453 ClientSession: Change state to ‘Started’.

    28893 28893 14:54:30 373.470 ClientSession: Started session at 0x9151a68.

    28893 28893 14:54:30 389.104 ClientSession: Created new view at 0x9398a38 with label ‘ProgressView’ and value ‘0x8271150’.

    28893 28929 14:54:31 465.775 ClientSession: A valid certificate for this server was found.

    28893 28893 14:54:31 501.973 ClientSession: Created new view at 0x9428608 with label ‘AuthenticationView’ and value ‘0x8271150’.

    28893 28893 14:54:33 653.696 ClientSession: Destroying view at 0x9428608.

    Info: Connection to 192.168.169.191 port 4000 closed at 14:54:33 669.872.

    28893 28893 14:54:33 675.503 Connection: Connection at 0x9443c38 failed.

    28893 28893 14:54:33 675.515 ClientSession: Runnable at 0x9443c38 caused the session at 0x9151a68 to fail.

    28893 28893 14:54:33 675.531 ClientSession: Failing reason is ‘Authentication failed for user cgsadmin’.

    28893 28893 14:54:33 675.547 ClientSession: Ignoring failure and restarting the connection.

    28893 28893 14:54:33 675.561 Connection: Finishing connection at 0x9443c38.

    28893 28893 14:54:33 675.570 Connection: Stopping connection at 0x9443c38.

    28893 28893 14:54:33 675.591 ClientDaemonConnector: Stopping the current connection.

    28893 28893 14:54:33 675.814 Connection: Disabling interactive session.

    28893 28893 14:54:33 675.835 Connection: Stopped connection at 0x9443c38.

    28893 28893 14:54:33 675.844 ClientDaemonConnector: Stopping the current connection.

    28893 28893 14:54:33 675.866 Connection: Finished connection at 0x9443c38.

    28893 28893 14:54:33 675.876 Connection: Initializing connection at 0x9443c38.

    28893 28893 14:54:33 675.924 Connection: Initialized connection at 0x9443c38.

    28893 28893 14:54:33 675.940 Connection: Starting connection at 0x9443c38.

    28893 28893 14:54:33 675.951 ClientDaemonConnector: Starting a new connection to host ‘xx.xx.xx.xx’ on port ‘4000’.

    28893 28893 14:54:33 676.046 Connection: Started connection at 0x9443c38.

    28893 28893 14:54:33 676.058 Connection: Stop reading because of parser request.

    Info: Connection to xx.xx.xx.xx port 4000 started at 14:54:33 676.798.

    28893 28944 14:54:34 725.979 ClientSession: A valid certificate for this server was found.

     

    — server logs:

    nxerror.log

    Info: Handler started with pid 10105 on Wed Jan  8 13:54:31 2014.

    Info: Handling connection from 10.61.15.135 port 47099 on Wed Jan  8 13:54:31 2014.

    nxexecPAMCheckCredentials: Authentication failed with error 28.

    Info: Connection from 10.61.15.135 port 47099 closed on Wed Jan  8 13:54:33 2014.

    nxserver.log

    13:51:48:223.287 NXSERVER-4.0.369[9789] Starting NoMachine server and services.

    13:51:59:768.183 NXSERVER-4.0.369[9909] ERROR: Error while trying to authenticate user:cgsadmin. NXNssUserManager::auth returned 1

    13:51:59:768.463 NXSERVER-4.0.369[9909] ERROR: wrong ‘nxexec authentication’ for user ‘cgsadmin’ from ‘xx.xx.xx.xx’.

    13:53:49:334.153 NXNODE-4.0.369[9856] ERROR: NXUpdate: Unable to copy [/usr/NX/var/log/nxnode/C-mcs-master-1001-93F1D893442677AEFEE52CB4C763E3D0/authority] to [/var/NX/nx/.nx/temp/autho

    rity]

    13:54:17:013.699 NXSERVER-4.0.369[9940] ERROR: Error while trying to authenticate user:cgsadmin. NXNssUserManager::auth returned 1

    13:54:17:013.937 NXSERVER-4.0.369[9940] ERROR: wrong ‘nxexec authentication’ for user ‘cgsadmin’ from ‘xx.xx.xx.xx’.

    13:54:33:666.545 NXSERVER-4.0.369[10105] ERROR: Error while trying to authenticate user:cgsadmin. NXNssUserManager::auth returned 1

    13:54:33:666.811 NXSERVER-4.0.369[10105] ERROR: wrong ‘nxexec authentication’ for user ‘cgsadmin’ from ‘xx.xx.xx.xx’.

     

Viewing 5 posts - 1 through 5 (of 5 total)