summaryrefslogtreecommitdiff
path: root/source4/rpc_server/netlogon
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-02-01 10:27:35 +0100
committerStefan Metzmacher <metze@samba.org>2011-02-02 11:58:26 +0100
commit578e87dbf223c2ad529ef5de07630ed5c25a3ad6 (patch)
treec57357fb11fd75501ca0ed78a13959c33eb03a66 /source4/rpc_server/netlogon
parent97727e106878fef1a260ab6310992fff36ea5294 (diff)
downloadsamba-578e87dbf223c2ad529ef5de07630ed5c25a3ad6.tar.gz
samba-578e87dbf223c2ad529ef5de07630ed5c25a3ad6.tar.bz2
samba-578e87dbf223c2ad529ef5de07630ed5c25a3ad6.zip
s4:rpc_server/netlogon: set *r->out.authoritative = 1 even on INVALID_PARAMETER/INFO_CLASS
metze
Diffstat (limited to 'source4/rpc_server/netlogon')
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index 6961bf79fc..d8a0f98d55 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -551,6 +551,8 @@ static NTSTATUS dcesrv_netr_LogonSamLogon_base(struct dcesrv_call_state *dce_cal
struct netr_SamInfo3 *sam3;
struct netr_SamInfo6 *sam6;
+ *r->out.authoritative = 1;
+
user_info = talloc_zero(mem_ctx, struct auth_usersupplied_info);
NT_STATUS_HAVE_NO_MEMORY(user_info);
@@ -674,6 +676,7 @@ static NTSTATUS dcesrv_netr_LogonSamLogon_base(struct dcesrv_call_state *dce_cal
}
nt_status = auth_check_password(auth_context, mem_ctx, user_info, &server_info);
+ /* TODO: set *r->out.authoritative = 0 on specific errors */
NT_STATUS_NOT_OK_RETURN(nt_status);
switch (r->in.validation_level) {
@@ -756,8 +759,6 @@ static NTSTATUS dcesrv_netr_LogonSamLogon_base(struct dcesrv_call_state *dce_cal
}
}
- *r->out.authoritative = 1;
-
/* TODO: Describe and deal with these flags */
*r->out.flags = 0;