s4:util/net/drs: don't look at p->last_fault_code for debugging anymore
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Apr 2010 07:14:14 +0000 (09:14 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Apr 2010 07:34:03 +0000 (09:34 +0200)
metze

source4/utils/net/drs/net_drs.c
source4/utils/net/drs/net_drs_kcc.c
source4/utils/net/drs/net_drs_replicate.c
source4/utils/net/drs/net_drs_showrepl.c

index cd2f8dfcabbb2896d416e543517a736ef0964846..c174bf4f9850bfdceb9cc5585ade1f855840fdc8 100644 (file)
@@ -103,9 +103,6 @@ static bool net_drs_DsBind(struct net_drs_context *drs_ctx, struct net_drs_conne
        status = dcerpc_drsuapi_DsBind_r(conn->drs_handle, conn, &req);
        if (!NT_STATUS_IS_OK(status)) {
                const char *errstr = nt_errstr(status);
-               if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
-                       errstr = dcerpc_errstr(conn, conn->drs_pipe->last_fault_code);
-               }
                d_printf("dcerpc_drsuapi_DsBind failed - %s\n", errstr);
                return false;
        } else if (!W_ERROR_IS_OK(req.out.result)) {
index 1afb96f517fa26e68127a164c81c0551f3f46c36..eaf550e64d9b4f6e751066955af218d913de651f 100644 (file)
@@ -143,9 +143,6 @@ int net_drs_kcc_cmd(struct net_context *ctx, int argc, const char **argv)
        status = dcerpc_drsuapi_DsExecuteKCC_r(drs_conn->drs_handle, drs_ctx, &req);
        if (!NT_STATUS_IS_OK(status)) {
                const char *errstr = nt_errstr(status);
-               if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
-                       errstr = dcerpc_errstr(drs_ctx, drs_conn->drs_pipe->last_fault_code);
-               }
                d_printf("dcerpc_drsuapi_DsExecuteKCC failed - %s.\n", errstr);
                goto failed;
        } else if (!W_ERROR_IS_OK(req.out.result)) {
index 147eb45e842bd417194cb2a19c0c70dd27907bc4..cda82c022b98e5ab46c406ec1da9a1fae4d8ca0a 100644 (file)
@@ -173,9 +173,6 @@ static bool net_drs_replicate_sync_nc(struct net_drs_context *drs_ctx,
        status = dcerpc_drsuapi_DsReplicaSync_r(drs_conn->drs_handle, drs_ctx, &req);
        if (!NT_STATUS_IS_OK(status)) {
                const char *errstr = nt_errstr(status);
-               if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
-                       errstr = dcerpc_errstr(drs_ctx, drs_conn->drs_pipe->last_fault_code);
-               }
                d_printf("DsReplicaSync failed - %s.\n", errstr);
                return false;
        } else if (!W_ERROR_IS_OK(req.out.result)) {
index 33fb014b91f82f0692b3896d996dc7a5e378334f..b3e5ab91c08f49d74ae253ac130ae6f28b3d9d9c 100644 (file)
@@ -216,9 +216,6 @@ static bool net_drs_exec_DsReplicaGetInfo(struct net_drs_context *drs_ctx,
        status = dcerpc_drsuapi_DsReplicaGetInfo_r(drs_conn->drs_handle, drs_ctx, &r);
        if (!NT_STATUS_IS_OK(status)) {
                const char *errstr = nt_errstr(status);
-               if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
-                       errstr = dcerpc_errstr(drs_ctx, drs_conn->drs_pipe->last_fault_code);
-               }
                d_printf("DsReplicaGetInfo failed - %s.\n", errstr);
                return false;
        } else if (!W_ERROR_IS_OK(r.out.result)) {