]> git.sur5r.net Git - openldap/commitdiff
don't bailout in case of insufficientAccess (ITS#5816)
authorPierangelo Masarati <ando@openldap.org>
Tue, 18 Nov 2008 01:29:34 +0000 (01:29 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 18 Nov 2008 01:29:34 +0000 (01:29 +0000)
servers/slapd/back-ldap/search.c

index bcc843f1ebb5f28524ddc2fa49a99be398fac1f9..08a56920615ed65b3fa5511f3558197ff26bccbb 100644 (file)
@@ -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 {