diff options
author | Matthew Chapman <matty@samba.org> | 1999-04-08 05:36:39 +0000 |
---|---|---|
committer | Matthew Chapman <matty@samba.org> | 1999-04-08 05:36:39 +0000 |
commit | ca540c21f78b4bc8ca36ac3d5af2b8f67cf716c3 (patch) | |
tree | 937faf6caa1cb38a3af9de0986c2d94160df1e23 /source/smbd/process.c | |
parent | 7b830350eb54dc9d357c115e12ddf9a0633527ac (diff) | |
download | samba-ca540c21f78b4bc8ca36ac3d5af2b8f67cf716c3.tar.gz samba-ca540c21f78b4bc8ca36ac3d5af2b8f67cf716c3.tar.xz samba-ca540c21f78b4bc8ca36ac3d5af2b8f67cf716c3.zip |
Mainly BDC-related changes.
* Added SEC_CHAN_BDC
* Propagate sec_chan into the various functions which change trust account
passwords, so they can be used for domain control and inter-domain
trusts.
Diffstat (limited to 'source/smbd/process.c')
-rw-r--r-- | source/smbd/process.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c index 420598157f6..a4c1acba8fc 100644 --- a/source/smbd/process.c +++ b/source/smbd/process.c @@ -882,6 +882,7 @@ void smbd_process(void) unsigned char trust_passwd_hash[16]; time_t lct; pstring remote_machine_list; + int sec_chan = SEC_CHAN_WKSTA; /* * We're in domain level security, and the code that @@ -917,8 +918,11 @@ machine %s in domain %s.\n", global_myname, global_myworkgroup )); } pstrcpy(remote_machine_list, lp_passwordserver()); + if (lp_server_role() == ROLE_DOMAIN_BDC) + sec_chan = SEC_CHAN_BDC; - change_trust_account_password( global_myworkgroup, remote_machine_list); + change_trust_account_password(global_myworkgroup, remote_machine_list, + sec_chan); trust_password_unlock(); global_machine_password_needs_changing = False; } |