ECLI Commands Failing With Logon Error

Document ID : KB000095328
Last Modified Date : 09/05/2018
Show Technical Document Details
Issue:
When attempting to run a command through the ECLI, the commands fail with an error that states "Failed to logon using given credentials".
The default credential for the user in the Credential tab is valid on the Application Server machine.
The password used to login to WCC is the same as is used to login the user to the Application Server machine.
Environment:
WAAE 11.3.6.x LINUX
Cause:
This can occur if the igateway process on the Application Server machine is not running as 'root'. When the ECLI passes the command to the Command Sponsor, which is launched by the igateway process, the Command Sponsor must validate the user that is passed with the command against the local O/S. WCC passes an encrypted password for the user. The Command Sponsor validates this encrypted password using the getpsnam() system call. This system call retrieves the user's encrypted password from /etc/shadow, which is only readable by 'root'. Therefore, if the igateway process is not running as 'root', this password check fails resulting in the logon error in the ECLI.
Resolution:
Ensure $CASHCOMP/iTechnology/igateway is owned by 'root' and the igateway process is running as 'root'.