cldap benchmarks hacks ...
authorStefan Metzmacher <metze@samba.org>
Sat, 28 Mar 2009 22:31:36 +0000 (23:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 15 May 2009 13:27:18 +0000 (15:27 +0200)
source4/cldap_server/netlogon.c
source4/cldap_server/rootdse.c
source4/torture/ldap/cldapbench.c

index 33c0adc3b18b6d34a2f8abfe968d91124282cefb..49ddce59efff99d2be959ea114c7dbf806ff0597 100644 (file)
@@ -421,6 +421,10 @@ void cldapd_netlogon_request(struct cldap_socket *cldap,
        struct netlogon_samlogon_response netlogon;
        NTSTATUS status = NT_STATUS_INVALID_PARAMETER;
 
+       DEBUG(2,("cldap netlogon query failed domain=%s host=%s version=%d - %s\n",
+                domain, host, version, nt_errstr(status)));
+       cldap_empty_reply(cldap, message_id, src);
+return;
        if (tree->operation != LDB_OP_AND) goto failed;
 
        /* extract the query elements */
index 7e867deff29f2d244c6d82558d55dc4eb8310b16..b09c51c494d813bf3bb21b33679df9bad1460ce0 100644 (file)
@@ -164,7 +164,7 @@ void cldapd_rootdse_request(struct cldap_socket *cldap,
        reply.response          = NULL;
        reply.result            = &result;
 
-       cldapd_rootdse_fill(cldapd, tmp_ctx, search, &reply.response, reply.result);
+//     cldapd_rootdse_fill(cldapd, tmp_ctx, search, &reply.response, reply.result);
 
        status = cldap_reply_send(cldap, &reply);
        if (!NT_STATUS_IS_OK(status)) {
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;