diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-04-30 08:17:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:22 -0500 |
commit | 6b6bb89c91d412ef7d8c355fdd005de228af62c2 (patch) | |
tree | a5d7c2e80859c1b7381d26f15c7d7ef4103d6f0b /source4 | |
parent | cf687fce843bf00edf54f8e89005fc79f77b5412 (diff) | |
download | samba-6b6bb89c91d412ef7d8c355fdd005de228af62c2.tar.gz samba-6b6bb89c91d412ef7d8c355fdd005de228af62c2.tar.bz2 samba-6b6bb89c91d412ef7d8c355fdd005de228af62c2.zip |
r6526: Rename this RPC fault. Everybody else calls this ACCESS_DENIED, and
it certainly doesn't make sense as LOGON_FAILURE.
Andrew Bartlett
(This used to be commit 4bec3d3f378ed8b988e00441c9bb5718b8548ba6)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/idl/dcerpc.idl | 2 | ||||
-rw-r--r-- | source4/librpc/rpc/dcerpc_error.c | 2 | ||||
-rw-r--r-- | source4/rpc_server/dcerpc_server.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source4/librpc/idl/dcerpc.idl b/source4/librpc/idl/dcerpc.idl index 3ffe14d453..584bec0b10 100644 --- a/source4/librpc/idl/dcerpc.idl +++ b/source4/librpc/idl/dcerpc.idl @@ -99,7 +99,7 @@ interface dcerpc const int DCERPC_FAULT_INVALID_TAG = 0x1c000006; const int DCERPC_FAULT_CONTEXT_MISMATCH = 0x1c00001a; 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; /* we return this fault when we haven't yet run the test diff --git a/source4/librpc/rpc/dcerpc_error.c b/source4/librpc/rpc/dcerpc_error.c index c9434060a1..d5a456c221 100644 --- a/source4/librpc/rpc/dcerpc_error.c +++ b/source4/librpc/rpc/dcerpc_error.c @@ -35,7 +35,7 @@ static const struct dcerpc_fault_table dcerpc_faults[] = { "DCERPC_FAULT_INVALID_TAG", DCERPC_FAULT_INVALID_TAG }, { "DCERPC_FAULT_CONTEXT_MISMATCH", DCERPC_FAULT_CONTEXT_MISMATCH }, { "DCERPC_FAULT_OTHER", DCERPC_FAULT_OTHER }, - { "DCERPC_FAULT_LOGON_FAILURE", DCERPC_FAULT_LOGON_FAILURE }, + { "DCERPC_FAULT_ACCESS_DENIED", DCERPC_FAULT_ACCESS_DENIED }, { NULL, 0} }; diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c index b050830883..cb1cdc9416 100644 --- a/source4/rpc_server/dcerpc_server.c +++ b/source4/rpc_server/dcerpc_server.c @@ -963,7 +963,7 @@ NTSTATUS dcesrv_input_process(struct dcesrv_connection *dce_conn) if (call->pkt.ptype == DCERPC_PKT_REQUEST && !dcesrv_auth_request(call, &blob)) { 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); |