[CentOS] Can only login as root

Craig White craig.white at ttiltd.com
Thu May 3 15:00:16 UTC 2012


On May 3, 2012, at 5:47 AM, Timothy Murphy wrote:

> I have a strange problem on a CentOS-5.8 machine.
> I can only login as root.
> If I try to login with one of the user's names,
> it hangs for a long time.
> I thought it hung forever, but I just found that
> I do login after "su tim" after 5 minutes.
> 
> It seems that the problem lies in repeated messages in /var/log/messages
> ---------------------------
> May  3 12:14:13 helen su: nss_ldap: failed to bind to LDAP server 
> ldap://www.gayleard.com/: Can't contact LDAP server
> May  3 12:14:13 helen su: nss_ldap: reconnecting to LDAP server 
>  (sleeping 64 seconds)...
> ---------------------------
> 
> The openldap server is not running, and I don't see why
> this authentication is being sought.
> There is nothing in /etc/pam.d/su or /etc/pam.d/login
> or /etc/ssh/sshd_config to suggest that ldap needs to be invoked,
> unless it is a part of system-auth .
----
it would seem that you configured ldap as a potential authentication source in 'authconfig'

Tait probably gave you the best possible fix - remove the ldap entries in /etc/nsswitch.conf (or /etc/sssd/sssd.conf if present).

Craig


More information about the CentOS mailing list