diff options
Diffstat (limited to 'source4/utils/net')
-rw-r--r-- | source4/utils/net/drs/net_drs.c | 3 | ||||
-rw-r--r-- | source4/utils/net/drs/net_drs_kcc.c | 3 | ||||
-rw-r--r-- | source4/utils/net/drs/net_drs_replicate.c | 3 | ||||
-rw-r--r-- | source4/utils/net/drs/net_drs_showrepl.c | 3 |
4 files changed, 0 insertions, 12 deletions
diff --git a/source4/utils/net/drs/net_drs.c b/source4/utils/net/drs/net_drs.c index cd2f8dfcab..c174bf4f98 100644 --- a/source4/utils/net/drs/net_drs.c +++ b/source4/utils/net/drs/net_drs.c @@ -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)) { diff --git a/source4/utils/net/drs/net_drs_kcc.c b/source4/utils/net/drs/net_drs_kcc.c index 1afb96f517..eaf550e64d 100644 --- a/source4/utils/net/drs/net_drs_kcc.c +++ b/source4/utils/net/drs/net_drs_kcc.c @@ -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)) { diff --git a/source4/utils/net/drs/net_drs_replicate.c b/source4/utils/net/drs/net_drs_replicate.c index 147eb45e84..cda82c022b 100644 --- a/source4/utils/net/drs/net_drs_replicate.c +++ b/source4/utils/net/drs/net_drs_replicate.c @@ -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)) { diff --git a/source4/utils/net/drs/net_drs_showrepl.c b/source4/utils/net/drs/net_drs_showrepl.c index 33fb014b91..b3e5ab91c0 100644 --- a/source4/utils/net/drs/net_drs_showrepl.c +++ b/source4/utils/net/drs/net_drs_showrepl.c @@ -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)) { |