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/nsswitch | |
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/nsswitch')
-rw-r--r-- | source/nsswitch/winbindd_cm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c index 2dec9f05586..ddab850cf08 100644 --- a/source/nsswitch/winbindd_cm.c +++ b/source/nsswitch/winbindd_cm.c @@ -870,8 +870,7 @@ NTSTATUS cm_get_netlogon_cli(char *domain, unsigned char *trust_passwd, return result; } - result = cli_nt_setup_creds(conn->cli, (lp_server_role() == ROLE_DOMAIN_MEMBER) ? - SEC_CHAN_WKSTA : SEC_CHAN_BDC, trust_passwd); + result = cli_nt_setup_creds(conn->cli, get_sec_chan(), trust_passwd); if (!NT_STATUS_IS_OK(result)) { DEBUG(0, ("error connecting to domain password server: %s\n", @@ -884,8 +883,8 @@ NTSTATUS cm_get_netlogon_cli(char *domain, unsigned char *trust_passwd, } /* Try again */ - result = cli_nt_setup_creds(conn->cli, (lp_server_role() == ROLE_DOMAIN_MEMBER) ? - SEC_CHAN_WKSTA : SEC_CHAN_BDC, trust_passwd); + result = cli_nt_setup_creds( + conn->cli, get_sec_chan(),trust_passwd); } if (!NT_STATUS_IS_OK(result)) { |