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 | e77a64f505fc43628e487e832033d0cd8ec4de8e (patch) | |
tree | 4ed20ffcdcc8f31b222f3c673a96513adf0750f9 /source3/rpcclient | |
parent | 04600634b3e761d7c56f699fd4ba80b4cd2926a1 (diff) | |
download | samba-e77a64f505fc43628e487e832033d0cd8ec4de8e.tar.gz samba-e77a64f505fc43628e487e832033d0cd8ec4de8e.tar.bz2 samba-e77a64f505fc43628e487e832033d0cd8ec4de8e.zip |
s3:rpcclient: 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/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_netlogon.c | 3 | ||||
-rw-r--r-- | source3/rpcclient/rpcclient.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c index 01d6da45dd..d92434b23c 100644 --- a/source3/rpcclient/cmd_netlogon.c +++ b/source3/rpcclient/cmd_netlogon.c @@ -1120,7 +1120,8 @@ static NTSTATUS cmd_netlogon_database_redo(struct rpc_pipe_client *cli, NTSTATUS status = NT_STATUS_UNSUCCESSFUL; NTSTATUS result; const char *server_name = cli->desthost; - uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS; + uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS | + NETLOGON_NEG_SUPPORTS_AES; struct netr_Authenticator clnt_creds, srv_cred; struct netr_DELTA_ENUM_ARRAY *delta_enum_array = NULL; unsigned char trust_passwd_hash[16]; diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 9bf296ecc5..cb7b70f74e 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -758,7 +758,8 @@ static NTSTATUS do_cmd(struct cli_state *cli, if (ndr_syntax_id_equal(&cmd_entry->table->syntax_id, &ndr_table_netlogon.syntax_id)) { - uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS; + uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS | + NETLOGON_NEG_SUPPORTS_AES; enum netr_SchannelType sec_channel_type; uchar trust_password[16]; const char *machine_account; |