DOYENSYS Knowledge Portal




We Welcome you to visit our DOYENSYS KNOWLEDGE PORTAL : Doyensys Knowledge Portal




Monday, November 6, 2017

ERROR: Invalid username and/or password LOG: Local Authentication failed...Attempt PAM authentication...PAM failed with error: Authentication failure

Issue:

Got the following error while setting preferred credentials for the host target

ERROR: Invalid username and/or password LOG: Local Authentication failed...Attempt PAM authentication...PAM failed with error: Authentication failure

Cause:
For LADP kind of authentication PAM setup should be done.

Solution:

Make sure that PAM libraries are installed 

rpm -ql pam-1.1.1-4.el6 | grep libpam.so

you should see the output like below.

/lib64/libpam.so.0        
/lib64/libpam.so.0.82.2   

If not installed, install the pam-1.1.1-4.el6 rpm and verify again.

And then  as root user, do the below.

cd /usr/lib64
ln -s /lib64/libpam.so.0.82.2 libpam.so

cd /etc/pam.d
cp sshd emagent

go to $AGENT_HOME/bin

backup commonenv and add the following line

if [ "$LD_LIBRARY_PATH" = "" ] ; then
LD_LIBRARY_PATH=/lib64
else
LD_LIBRARY_PATH=:$LD_LIBRARY_PATH
fi

Restart Agent
./emctl stop agent
./emctl start agent

No comments: