s4:rpc_server/netlogon: simplify logic of dcesrv_netr_creds_server_step_check()
commitcd380d8adad8cea7df8ee2cfb33dab86ba3900b6
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Nov 2018 12:05:25 +0000 (8 13:05 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:35 +0000 (12 03:13 +0100)
tree1d0238b19dbf2bc176d0017b59c24de7d889fbaf
parentfc596ef1c733c75e56a4790b70641f7ca8fb9828
s4:rpc_server/netlogon: simplify logic of dcesrv_netr_creds_server_step_check()

It's enough to check the auth_type for DCERPC_AUTH_TYPE_SCHANNEL,
there's no need to also check the auth_level for integrity or privacy.

The gensec layer already required at least DCERPC_AUTH_LEVEL_INTEGRITY,
see schannel_update_internal().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/rpc_server/netlogon/dcerpc_netlogon.c