summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2009-09-01 13:43:52 +0000
committerArthur de Jong <arthur@arthurdejong.org>2009-09-01 13:43:52 +0000
commit4a45aed90d1da3967786de459fceaa114c7a71ad (patch)
tree2133195652600845d12fb86fda86470423250d8d
parentecc966edbf1cb244acdb8b60c3d2096cd423a566 (diff)
lower the default values for bind_timelimit and reconnect_maxsleeptime from 30 to 10 seconds
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@983 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--man/nslcd.conf.5.xml4
-rw-r--r--nslcd/cfg.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/man/nslcd.conf.5.xml b/man/nslcd.conf.5.xml
index 8619c43..950432a 100644
--- a/man/nslcd.conf.5.xml
+++ b/man/nslcd.conf.5.xml
@@ -423,7 +423,7 @@
<option>timelimit</option> and affects the setup of the connection only.
Note that not all <acronym>LDAP</acronym> client libraries have support
for setting the connection time out.
- The default <option>bind_timelimit</option> is 30 seconds.
+ The default <option>bind_timelimit</option> is 10 seconds.
</para>
</listitem>
</varlistentry>
@@ -470,7 +470,7 @@
Specified the time after the last successful operation from which the
<acronym>LDAP</acronym> server is considered permanently unavailable.
Retries will be done only once in this time period.
- The default value is 30 seconds.
+ The default value is 10 seconds.
</para>
</listitem>
</varlistentry>
diff --git a/nslcd/cfg.c b/nslcd/cfg.c
index bdf125b..f5b7e61 100644
--- a/nslcd/cfg.c
+++ b/nslcd/cfg.c
@@ -101,11 +101,11 @@ static void cfg_defaults(struct ldap_config *cfg)
cfg->ldc_scope=LDAP_SCOPE_SUBTREE;
cfg->ldc_deref=LDAP_DEREF_NEVER;
cfg->ldc_referrals=1;
- cfg->ldc_bind_timelimit=30;
+ cfg->ldc_bind_timelimit=10;
cfg->ldc_timelimit=LDAP_NO_LIMIT;
cfg->ldc_idle_timelimit=0;
cfg->ldc_reconnect_sleeptime=1;
- cfg->ldc_reconnect_maxsleeptime=30;
+ cfg->ldc_reconnect_maxsleeptime=10;
#ifdef LDAP_OPT_X_TLS
cfg->ldc_ssl_on=SSL_OFF;
#endif /* LDAP_OPT_X_TLS */