But we can send arcfour and strong key on the wire and don't need to
remove them from the proposed flags.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit
3da40f1c6818550eb08a6d7d680c213c3f1d0649)
* require AES.
*/
if (lpcfg_weak_crypto(lp_ctx) == SAMBA_WEAK_CRYPTO_DISALLOWED) {
- required_flags &= ~NETLOGON_NEG_ARCFOUR;
required_flags |= NETLOGON_NEG_SUPPORTS_AES;
- proposed_flags &= ~NETLOGON_NEG_ARCFOUR;
- proposed_flags |= NETLOGON_NEG_SUPPORTS_AES;
}
proposed_flags |= required_flags;
+ if (required_flags & NETLOGON_NEG_SUPPORTS_AES) {
+ required_flags &= ~NETLOGON_NEG_ARCFOUR;
+ required_flags &= ~NETLOGON_NEG_STRONG_KEYS;
+ }
+
if (seal_secure_channel) {
auth_level = DCERPC_AUTH_LEVEL_PRIVACY;
} else {