You want it to give up trying ldap when it can't reach the ldap server.
But, this did not work for me with the problem that I was seeing. I ended up adding a host line of
host 127.0.0.1 123.123.123.123
in /etc/ldap.conf. Fortunately, we have multiple ldap servers running and the master will stay at feisty until I see that this problem has been resolved. If this is your only ldap server and you are running gutsy I don't see how to work around this problem.
I think that you meant to add the following to /etc/nsswitch.conf
passwd: files ldap [UNAVAIL=return]
group: files ldap [UNAVAIL=return]
shadow: files ldap [UNAVAIL=return]
You want it to give up trying ldap when it can't reach the ldap server.
But, this did not work for me with the problem that I was seeing. I ended up adding a host line of
host 127.0.0.1 123.123.123.123
in /etc/ldap.conf. Fortunately, we have multiple ldap servers running and the master will stay at feisty until I see that this problem has been resolved. If this is your only ldap server and you are running gutsy I don't see how to work around this problem.
Bill