To check you made the change as described is simple... run the command below...
| Code: |
[root@danda ~]# grep -A 1 bind_policy /etc/openldap/templates/nss_ldap.conf.template && grep -A 1 bind_policy /etc/ldap.conf
#bind_policy soft
nss_reconnect_tries 3
#bind_policy soft
nss_reconnect_tries 3
[root@danda ~]#
|
As I mentioned, there are more directives than the one I choose. Search the web. Something like this might be worth trying...
nss_reconnect_tries 5 # no. of times to double the sleep time
nss_reconnect_sleeptime 4 # initial sleep value
nss_reconnect_maxsleeptime 64 # max sleep value to cap at
nss_reconnect_maxconntries 2 # how many tries before sleeping