1
# Reduce tries to minimize boot delays
2
--- libnss-ldap-255.orig/ldap-nss.h
3
+++ libnss-ldap-255/ldap-nss.h
5
* unacceptable, in which case you may wish to adjust
8
-#define LDAP_NSS_TRIES 5 /* number of sleeping reconnect attempts */
9
-#define LDAP_NSS_SLEEPTIME 4 /* seconds to sleep; doubled until max */
10
-#define LDAP_NSS_MAXSLEEPTIME 64 /* maximum seconds to sleep */
11
+#define LDAP_NSS_TRIES 1 /* number of sleeping reconnect attempts */
12
+#define LDAP_NSS_SLEEPTIME 1 /* seconds to sleep; doubled until max */
13
+#define LDAP_NSS_MAXSLEEPTIME 8 /* maximum seconds to sleep */
14
#define LDAP_NSS_MAXCONNTRIES 2 /* reconnect attempts before sleeping */
16
#if defined(HAVE_NSSWITCH_H) || defined(HAVE_IRS_H)