diff options
author | Tim Potter <tpot@samba.org> | 2002-08-23 13:38:00 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-08-23 13:38:00 +0000 |
commit | b8dba26978c281259e02b9d6ebacaa7cba4f7787 (patch) | |
tree | 56d9af1ec2c075d76b29bce0ad8bdca7f207904f /source/libsmb/trust_passwd.c | |
parent | e13016bb42dbba675d6e7ee7e163543aad2e62c2 (diff) | |
download | samba-b8dba26978c281259e02b9d6ebacaa7cba4f7787.tar.gz samba-b8dba26978c281259e02b9d6ebacaa7cba4f7787.tar.xz samba-b8dba26978c281259e02b9d6ebacaa7cba4f7787.zip |
Moved calculation of secure channel type into a new function.
Diffstat (limited to 'source/libsmb/trust_passwd.c')
-rw-r--r-- | source/libsmb/trust_passwd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/libsmb/trust_passwd.c b/source/libsmb/trust_passwd.c index fe6b673e39e..d500cb3ab78 100644 --- a/source/libsmb/trust_passwd.c +++ b/source/libsmb/trust_passwd.c @@ -35,8 +35,7 @@ static NTSTATUS just_change_the_password(struct cli_state *cli, TALLOC_CTX *mem_ unsigned char new_trust_passwd_hash[16]) { NTSTATUS result; - result = cli_nt_setup_creds(cli, (lp_server_role() == ROLE_DOMAIN_MEMBER) ? - SEC_CHAN_WKSTA : SEC_CHAN_BDC, orig_trust_passwd_hash); + result = cli_nt_setup_creds(cli, get_sec_chan(), orig_trust_passwd_hash); if (!NT_STATUS_IS_OK(result)) { DEBUG(1,("just_change_the_password: unable to setup creds (%s)!\n", |