diff options
author | Volker Lendecke <vl@samba.org> | 2017-08-21 11:54:29 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-09-16 08:36:18 +0200 |
commit | 6344570a307eb70979ebb43feb3faf0fb2cbf4c8 (patch) | |
tree | 926fb8569bc803ffdbf474c3ddb43c0ca1d18484 /libcli | |
parent | 7f09c0865ea35eb8d5f90264a27ee523e5df0e38 (diff) | |
download | samba-6344570a307eb70979ebb43feb3faf0fb2cbf4c8.tar.gz |
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>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/netlogon_creds_cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c index d6e20889b3a..a124a1c03da 100644 --- a/libcli/auth/netlogon_creds_cli.c +++ b/libcli/auth/netlogon_creds_cli.c @@ -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) { |