Troubleshooting
Problem
Symptom
failed for user on inital setup of LDAP
Cause
This statement will cause the appliance to attempt to authenticate against itself. The authentication will fail as there is not an LDAP server running on the appliance.
Environment
Diagnosing The Problem
# egrep -v '^(#|$)' /etc/ldap.conf (on RedHat 5.x appliance)
or
# egrep -v '^(#|$)' /etc/pam_ldap.conf (on RedHat 6.x appliance)
If the statement shows up in the output it needs to be commented out.
If the statement does not show up in the output.. further checking must be done.
Resolving The Problem
On RedHat 5.x based appliances edit the /etc/ldap.conf file
You can use the command # cat /etc/redhat-release to check the version of RedHat.
Edit the file with vi editor..
# vi /etc/pam_ldap.conf
Find the un-commented uri statement.. it is usually the fourth statement from the bottom of the file.
Add a hash tag # in front of the statement. Save the file. Test the logins.
If the logins work at this point , the change needs to be made permanent. Run the following commands..
# cp /etc/pam_ldap.conf /nz/data/config/pam_ldap.conf
# chown nz:nz /etc/pam_ldap.conf /nz/data/config/pam_ldap.conf
The change is now permanent.
Please note, that if the default authentication is set to local, the steps will need to be done again.
Was this topic helpful?
Document Information
Modified date:
03 June 2022
UID
swg21987931