diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-04-09 10:09:32 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-04-09 10:09:32 +0000 |
commit | a6e09de2fb4e525dd2eeb4df44709cb6117fe8bc (patch) | |
tree | e362cddeb6752727be0e5d1158fca57f2570e058 /source3 | |
parent | d9440df5799a80357bcc51d1a8bf83f71b7f5cd9 (diff) | |
download | samba-a6e09de2fb4e525dd2eeb4df44709cb6117fe8bc.tar.gz samba-a6e09de2fb4e525dd2eeb4df44709cb6117fe8bc.tar.bz2 samba-a6e09de2fb4e525dd2eeb4df44709cb6117fe8bc.zip |
Auth2, not also Auth3 sends us flags back, although all the callers
ignore it.
Volker
(This used to be commit 6ac6b0f4c0df9e09644d8c1f1272c8645642e842)
Diffstat (limited to 'source3')
-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); |