From 2f32c29e4ae7d3d8ccac78354569fc3d5e6baf6f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 18 Nov 2008 01:29:34 +0000 Subject: [PATCH] don't bailout in case of insufficientAccess (ITS#5816) --- servers/slapd/back-ldap/search.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index bcc843f1eb..08a5692061 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -360,7 +360,12 @@ retry: entry_clean( &ent ); } ldap_msgfree( res ); - if ( rc != LDAP_SUCCESS ) { + switch ( rc ) { + case LDAP_SUCCESS: + case LDAP_INSUFFICIENT_ACCESS: + break; + + default: if ( rc == LDAP_UNAVAILABLE ) { rc = rs->sr_err = LDAP_OTHER; } else { -- 2.39.5