mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
netlogon_creds_cli: Simplify netlogon_creds_cli_context_global
(require_sign_or_seal == false) looks odd :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
7f09c0865e
commit
6344570a30
@ -381,11 +381,11 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
|
||||
proposed_flags |= NETLOGON_NEG_NEUTRALIZE_NT4_EMULATION;
|
||||
}
|
||||
|
||||
if (require_sign_or_seal == false) {
|
||||
proposed_flags &= ~NETLOGON_NEG_AUTHENTICATED_RPC;
|
||||
} else {
|
||||
if (require_sign_or_seal) {
|
||||
required_flags |= NETLOGON_NEG_ARCFOUR;
|
||||
required_flags |= NETLOGON_NEG_AUTHENTICATED_RPC;
|
||||
} else {
|
||||
proposed_flags &= ~NETLOGON_NEG_AUTHENTICATED_RPC;
|
||||
}
|
||||
|
||||
if (reject_md5_servers) {
|
||||
|
Loading…
Reference in New Issue
Block a user