diff options
author | Jean-François Micouleau <jfm@samba.org> | 2002-08-30 10:46:59 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2002-08-30 10:46:59 +0000 |
commit | cfb5e91178eb8befdb00780a819f9c5cd3eee8e4 (patch) | |
tree | daeebecc2a0024117f2c05ad68c961a4ad5e0eba /source3/auth | |
parent | 1f02551bb19bab89083bfa1819a701a892d241df (diff) | |
download | samba-cfb5e91178eb8befdb00780a819f9c5cd3eee8e4.tar.gz samba-cfb5e91178eb8befdb00780a819f9c5cd3eee8e4.tar.bz2 samba-cfb5e91178eb8befdb00780a819f9c5cd3eee8e4.zip |
added cli_net_auth_3 client code.
changed cli_nt_setup_creds() to call cli_net_auth_2 or cli_net_auth_3 based on a switch.
pass also the negociation flags all the way.
all the places calling cli_nt_setup_creds() are still using cli_net_aut2(), it's just for future use and for rpcclient.
in the future we will be able to call auth_2 or auth_3 as we want.
J.F.
(This used to be commit 4d38caca40f98d0584fefb9d66424a3db5b5789e)
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_domain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c index d48cec5b29..f7a268de1f 100644 --- a/source3/auth/auth_domain.c +++ b/source3/auth/auth_domain.c @@ -131,6 +131,7 @@ static NTSTATUS connect_to_domain_password_server(struct cli_state **cli, struct in_addr dest_ip; fstring remote_machine; NTSTATUS result; + uint32 neg_flags = 0x000001ff; if (lp_security() == SEC_ADS) { result = ads_resolve_dc(remote_machine, &dest_ip); @@ -206,7 +207,7 @@ machine %s. Error was : %s.\n", remote_machine, cli_errstr(*cli))); return NT_STATUS_NO_MEMORY; } - result = cli_nt_setup_creds(*cli, sec_chan, trust_passwd); + result = cli_nt_setup_creds(*cli, sec_chan, trust_passwd, &neg_flags, 2); if (!NT_STATUS_IS_OK(result)) { DEBUG(0,("connect_to_domain_password_server: unable to setup the PDC credentials to machine \ |