]> git.sur5r.net Git - openldap/commitdiff
don't try to lookup the rootdn; handle errors separately
authorPierangelo Masarati <ando@openldap.org>
Sat, 25 Jun 2005 15:05:02 +0000 (15:05 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 25 Jun 2005 15:05:02 +0000 (15:05 +0000)
servers/slapd/overlays/retcode.c

index 105be67bce810d21746bf0338ef1bfc6d6714ed0..5c2320ee59c3cfe611a73f48c369897da16e4867 100644 (file)
@@ -183,9 +183,10 @@ retcode_cb_response( Operation *op, SlapReply *rs )
 
        if ( rs->sr_err == LDAP_SUCCESS ) {
                rdc->rdc_flags = SLAP_CB_CONTINUE;
+               return 0;
        }
 
-       return 0;
+       return SLAP_CB_CONTINUE;
 }
 
 static int
@@ -252,8 +253,13 @@ retcode_op_func( Operation *op, SlapReply *rs )
                        case LDAP_REQ_ADD:
                                return retcode_op_add( op, rs );
 
-                       case LDAP_REQ_MODIFY:
                        case LDAP_REQ_BIND:
+                               if ( be_isroot_pw( op ) ) {
+                                       return SLAP_CB_CONTINUE;
+                               }
+                               /* fallthru */
+
+                       case LDAP_REQ_MODIFY:
                        case LDAP_REQ_DELETE:
                        case LDAP_REQ_MODRDN:
                        case LDAP_REQ_COMPARE: