diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-04-09 10:10:13 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-04-09 10:10:13 +0000 |
commit | f88a3ebde4cbe75159d04b4fcd074ebf99c09794 (patch) | |
tree | 0c43a5d85ad5705a539a67218d2c29988830a0af /source3/rpc_client | |
parent | 42c18d52993cd7aaf3d8c0ef04e44404f72b3ce5 (diff) | |
download | samba-f88a3ebde4cbe75159d04b4fcd074ebf99c09794.tar.gz samba-f88a3ebde4cbe75159d04b4fcd074ebf99c09794.tar.bz2 samba-f88a3ebde4cbe75159d04b4fcd074ebf99c09794.zip |
Auth2, not also Auth3 sends us flags back, although all the callers
ignore it.
Volker
(This used to be commit 1e03e955450af7f05e564793e95258e45e08dabd)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index f83571af03..ae76e46c6d 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -85,7 +85,7 @@ encrypt of the server challenge originally received. JRA. NTSTATUS cli_net_auth2(struct cli_state *cli, uint16 sec_chan, - uint32 neg_flags, DOM_CHAL *srv_chal) + uint32 *neg_flags, DOM_CHAL *srv_chal) { prs_struct qbuf, rbuf; NET_Q_AUTH_2 q; @@ -104,7 +104,7 @@ NTSTATUS cli_net_auth2(struct cli_state *cli, /* store the parameters */ init_q_auth_2(&q, cli->srv_name_slash, cli->mach_acct, sec_chan, global_myname(), &cli->clnt_cred.challenge, - neg_flags); + *neg_flags); /* turn parameters into data stream */ @@ -141,6 +141,7 @@ password ?).\n", cli->desthost )); result = NT_STATUS_ACCESS_DENIED; goto done; } + *neg_flags = r.srv_flgs.neg_flags; } done: @@ -195,7 +196,6 @@ NTSTATUS cli_net_auth3(struct cli_state *cli, } result = r.status; - *neg_flags = r.srv_flgs.neg_flags; if (NT_STATUS_IS_OK(result)) { UTIME zerotime; @@ -217,6 +217,7 @@ password ?).\n", cli->desthost )); result = NT_STATUS_ACCESS_DENIED; goto done; } + *neg_flags = r.srv_flgs.neg_flags; } done: @@ -286,7 +287,7 @@ NTSTATUS cli_nt_setup_creds(struct cli_state *cli, */ switch (level) { case 2: - result = cli_net_auth2(cli, sec_chan, *neg_flags, &srv_chal); + result = cli_net_auth2(cli, sec_chan, neg_flags, &srv_chal); break; case 3: result = cli_net_auth3(cli, sec_chan, neg_flags, &srv_chal); |