diff options
author | Tim Potter <tpot@samba.org> | 2001-08-24 17:15:54 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-08-24 17:15:54 +0000 |
commit | 90b1f17585bf11af38e22c1c968af55bb2c6b195 (patch) | |
tree | e38444af7620bf6d5a5fcf00899d7a6ff6d8a238 | |
parent | 40342d69171dd72886c9a0e540d4cd2334fd2284 (diff) | |
download | samba-90b1f17585bf11af38e22c1c968af55bb2c6b195.tar.gz samba-90b1f17585bf11af38e22c1c968af55bb2c6b195.tar.bz2 samba-90b1f17585bf11af38e22c1c968af55bb2c6b195.zip |
Set secure channel type depending on server role.
(This used to be commit 7d5440a7ae4ef46103192000a19f2e69ecf02f21)
-rw-r--r-- | source3/rpc_client/cli_login.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_login.c b/source3/rpc_client/cli_login.c index 7e2090164c..92a70886d9 100644 --- a/source3/rpc_client/cli_login.c +++ b/source3/rpc_client/cli_login.c @@ -66,7 +66,8 @@ BOOL cli_nt_setup_creds(struct cli_state *cli, unsigned char mach_pwd[16]) * Receive an auth-2 challenge response and check it. */ - if (!cli_net_auth2(cli, SEC_CHAN_WKSTA, 0x000001ff, &srv_chal)) + if (!cli_net_auth2(cli, (lp_server_role() == ROLE_DOMAIN_MEMBER) ? + SEC_CHAN_WKSTA : SEC_CHAN_BDC, 0x000001ff, &srv_chal)) { DEBUG(0,("cli_nt_setup_creds: auth2 challenge failed\n")); return False; |