diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-06-15 09:41:52 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-08-10 09:18:53 +0200 |
commit | 04600634b3e761d7c56f699fd4ba80b4cd2926a1 (patch) | |
tree | 21c9f97b976a8e12c0dd244ea20af6f760ece123 /source3 | |
parent | beba32619a91977543f882432fd08acc9de78fd3 (diff) | |
download | samba-04600634b3e761d7c56f699fd4ba80b4cd2926a1.tar.gz samba-04600634b3e761d7c56f699fd4ba80b4cd2926a1.tar.bz2 samba-04600634b3e761d7c56f699fd4ba80b4cd2926a1.zip |
s3:rpc_client: try to use NETLOGON_NEG_SUPPORTS_AES
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 3 | ||||
-rw-r--r-- | source3/rpc_client/cli_pipe_schannel.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index 3d6a3e1a0a..5e8a2fca41 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -610,7 +610,8 @@ NTSTATUS rpccli_netlogon_set_trust_password(struct rpc_pipe_client *cli, struct dcerpc_binding_handle *b = cli->binding_handle; if (!cli->dc) { - uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS; + uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS | + NETLOGON_NEG_SUPPORTS_AES; result = rpccli_netlogon_setup_creds(cli, cli->desthost, /* server name */ lp_workgroup(), /* domain */ diff --git a/source3/rpc_client/cli_pipe_schannel.c b/source3/rpc_client/cli_pipe_schannel.c index bc672efe95..de745c0c66 100644 --- a/source3/rpc_client/cli_pipe_schannel.c +++ b/source3/rpc_client/cli_pipe_schannel.c @@ -136,7 +136,8 @@ NTSTATUS cli_rpc_pipe_open_ntlmssp_auth_schannel(struct cli_state *cli, const char *password, struct rpc_pipe_client **presult) { - uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS; + uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS | + NETLOGON_NEG_SUPPORTS_AES; struct rpc_pipe_client *netlogon_pipe = NULL; struct rpc_pipe_client *result = NULL; NTSTATUS status; @@ -175,7 +176,8 @@ NTSTATUS cli_rpc_pipe_open_schannel(struct cli_state *cli, const char *domain, struct rpc_pipe_client **presult) { - uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS; + uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS | + NETLOGON_NEG_SUPPORTS_AES; struct rpc_pipe_client *netlogon_pipe = NULL; struct rpc_pipe_client *result = NULL; NTSTATUS status; |