From: Pierangelo Masarati Date: Tue, 18 Nov 2008 01:29:34 +0000 (+0000) Subject: don't bailout in case of insufficientAccess (ITS#5816) X-Git-Tag: ACLCHECK_0~1079 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f32c29e4ae7d3d8ccac78354569fc3d5e6baf6f;p=openldap don't bailout in case of insufficientAccess (ITS#5816) --- 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 {