cldap benchmarks hacks ...
[metze/samba/wip.git] / source4 / torture / ldap / cldapbench.c
index a422732b039100dc62975f6badd4b3b29eb10abb..a46fee03d904da48db8cea140b9204cee7af6f8f 100644 (file)
@@ -44,7 +44,11 @@ static void request_netlogon_handler(struct tevent_req *req)
        talloc_free(req);
        if (NT_STATUS_IS_OK(status)) {
                state->pass_count++;
+       } else if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
+               state->pass_count++;
        } else {
+               printf("error: %s\n", nt_errstr(status));
+               exit(1);
                state->fail_count++;
        }
        talloc_free(tmp_ctx);
@@ -120,7 +124,11 @@ static void request_rootdse_handler(struct tevent_req *req)
        talloc_free(req);
        if (NT_STATUS_IS_OK(status)) {
                state->pass_count++;
+       } else if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
+               state->pass_count++;
        } else {
+               printf("error: %s\n", nt_errstr(status));
+               exit(1);
                state->fail_count++;
        }
        talloc_free(tmp_ctx);
@@ -207,7 +215,7 @@ bool torture_bench_cldap(struct torture_context *torture)
                return false;
        }
 
-       ret &= bench_cldap_netlogon(torture, address);
+//     ret &= bench_cldap_netlogon(torture, address);
        ret &= bench_cldap_rootdse(torture, address);
 
        return ret;