torture/samba3rpc: Use NETLOGON_NEG_AUTH2_ADS_FLAGS
authorAndrew Bartlett <abartlet@samba.org>
Wed, 14 Dec 2016 02:09:15 +0000 (15:09 +1300)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Dec 2016 10:55:18 +0000 (11:55 +0100)
This allows this test to pass after "allow nt4 crypto" is removed from
the default environment.

We now only set it in ad_dc

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/rpc/samba3rpc.c

index 9da6b54e6ffcf5e21c4c210a5d6cc7af82931173..1bcbdf3ae889f40a0583a400aa42ca6b9661def4 100644 (file)
@@ -1070,7 +1070,7 @@ static bool auth2(struct torture_context *tctx,
                goto done;
        }
 
-       negotiate_flags = NETLOGON_NEG_AUTH2_FLAGS;
+       negotiate_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS;
        E_md4hash(cli_credentials_get_password(wks_cred), mach_pw.hash);
 
        a.in.server_name = talloc_asprintf(