nss-pam-ldapd commit: r1208 - nss-pam-ldapd/nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1208 - nss-pam-ldapd/nslcd
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1208 - nss-pam-ldapd/nslcd
- Date: Thu, 23 Sep 2010 23:21:30 +0200 (CEST)
Author: arthur
Date: Thu Sep 23 23:21:28 2010
New Revision: 1208
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1208
Log:
add some more error cases which should trigger a disconnect
Modified:
nss-pam-ldapd/nslcd/myldap.c
Modified: nss-pam-ldapd/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd/nslcd/myldap.c Mon Sep 20 22:41:27 2010 (r1207)
+++ nss-pam-ldapd/nslcd/myldap.c Thu Sep 23 23:21:28 2010 (r1208)
@@ -1195,7 +1195,9 @@
rc=LDAP_PROTOCOL_ERROR;
}
/* close connection on some connection problems */
- if
((rc==LDAP_UNAVAILABLE)||(rc==LDAP_SERVER_DOWN)||(rc==LDAP_SUCCESS)||(rc==LDAP_TIMELIMIT_EXCEEDED))
+ if
((rc==LDAP_UNAVAILABLE)||(rc==LDAP_SERVER_DOWN)||(rc==LDAP_SUCCESS)||
+ (rc==LDAP_TIMELIMIT_EXCEEDED)|(rc==LDAP_OPERATIONS_ERROR)||
+ (rc==LDAP_PROTOCOL_ERROR))
{
do_close(search->session);
/* retry once if no data has been received yet */
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits
- nss-pam-ldapd commit: r1208 - nss-pam-ldapd/nslcd,
Commits of the nss-pam-ldapd project