mirror of
https://github.com/samba-team/samba.git
synced 2025-11-07 12:23:51 +03:00
r6526: Rename this RPC fault. Everybody else calls this ACCESS_DENIED, and
it certainly doesn't make sense as LOGON_FAILURE. Andrew Bartlett
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
7c8a0d86d4
commit
4bec3d3f37
@@ -99,7 +99,7 @@ interface dcerpc
|
|||||||
const int DCERPC_FAULT_INVALID_TAG = 0x1c000006;
|
const int DCERPC_FAULT_INVALID_TAG = 0x1c000006;
|
||||||
const int DCERPC_FAULT_CONTEXT_MISMATCH = 0x1c00001a;
|
const int DCERPC_FAULT_CONTEXT_MISMATCH = 0x1c00001a;
|
||||||
const int DCERPC_FAULT_OTHER = 0x00000001;
|
const int DCERPC_FAULT_OTHER = 0x00000001;
|
||||||
const int DCERPC_FAULT_LOGON_FAILURE = 0x00000005;
|
const int DCERPC_FAULT_ACCESS_DENIED = 0x00000005;
|
||||||
const int DCERPC_FAULT_CANT_PERFORM = 0x000006d8;
|
const int DCERPC_FAULT_CANT_PERFORM = 0x000006d8;
|
||||||
|
|
||||||
/* we return this fault when we haven't yet run the test
|
/* we return this fault when we haven't yet run the test
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ static const struct dcerpc_fault_table dcerpc_faults[] =
|
|||||||
{ "DCERPC_FAULT_INVALID_TAG", DCERPC_FAULT_INVALID_TAG },
|
{ "DCERPC_FAULT_INVALID_TAG", DCERPC_FAULT_INVALID_TAG },
|
||||||
{ "DCERPC_FAULT_CONTEXT_MISMATCH", DCERPC_FAULT_CONTEXT_MISMATCH },
|
{ "DCERPC_FAULT_CONTEXT_MISMATCH", DCERPC_FAULT_CONTEXT_MISMATCH },
|
||||||
{ "DCERPC_FAULT_OTHER", DCERPC_FAULT_OTHER },
|
{ "DCERPC_FAULT_OTHER", DCERPC_FAULT_OTHER },
|
||||||
{ "DCERPC_FAULT_LOGON_FAILURE", DCERPC_FAULT_LOGON_FAILURE },
|
{ "DCERPC_FAULT_ACCESS_DENIED", DCERPC_FAULT_ACCESS_DENIED },
|
||||||
|
|
||||||
{ NULL, 0}
|
{ NULL, 0}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -963,7 +963,7 @@ NTSTATUS dcesrv_input_process(struct dcesrv_connection *dce_conn)
|
|||||||
if (call->pkt.ptype == DCERPC_PKT_REQUEST &&
|
if (call->pkt.ptype == DCERPC_PKT_REQUEST &&
|
||||||
!dcesrv_auth_request(call, &blob)) {
|
!dcesrv_auth_request(call, &blob)) {
|
||||||
dce_partial_advance(dce_conn, blob.length);
|
dce_partial_advance(dce_conn, blob.length);
|
||||||
return dcesrv_fault(call, DCERPC_FAULT_LOGON_FAILURE);
|
return dcesrv_fault(call, DCERPC_FAULT_ACCESS_DENIED);
|
||||||
}
|
}
|
||||||
|
|
||||||
dce_partial_advance(dce_conn, blob.length);
|
dce_partial_advance(dce_conn, blob.length);
|
||||||
|
|||||||
Reference in New Issue
Block a user