diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-03-02 08:25:44 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-03-02 08:25:44 +0000 |
commit | 81b2d66c970c0df94823ad96f50b992fff0c8b94 (patch) | |
tree | 303fd700ef82f4915ed2fd6c55f3330f7f905d81 /source3/libsmb/trust_passwd.c | |
parent | 53d0c9c79f614fc8aecd7d417ae7b92d0a06f893 (diff) | |
download | samba-81b2d66c970c0df94823ad96f50b992fff0c8b94.tar.gz samba-81b2d66c970c0df94823ad96f50b992fff0c8b94.tar.bz2 samba-81b2d66c970c0df94823ad96f50b992fff0c8b94.zip |
Allow Samba to trust NT4 Domains.
This commit builds on the auth subsystem to give Samba support for trusting NT4
domains. It is off by default, but is enabled by adding 'trustdomain' to the
'auth methods' smb.conf paramater.
Tested against NT4 only - there are still some issues with the join code for
Win2k servers (spnego stuff).
The main work TODO involves enumerating the trusted domains (including the RPC
calls to match), and getting winbind to run on the PDC correctly.
Similarly, work remains on getting NT4 to trust Samba domains.
Andrew Bartlett
(This used to be commit ac8c24a9a888a3f916e8b40238b936e6ad743ef7)
Diffstat (limited to 'source3/libsmb/trust_passwd.c')
-rw-r--r-- | source3/libsmb/trust_passwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/trust_passwd.c b/source3/libsmb/trust_passwd.c index 069be7f15e..1f52ab3611 100644 --- a/source3/libsmb/trust_passwd.c +++ b/source3/libsmb/trust_passwd.c @@ -35,7 +35,8 @@ static NTSTATUS just_change_the_password(struct cli_state *cli, TALLOC_CTX *mem_ unsigned char new_trust_passwd_hash[16]) { NTSTATUS result; - result = new_cli_nt_setup_creds(cli, orig_trust_passwd_hash); + result = new_cli_nt_setup_creds(cli, (lp_server_role() == ROLE_DOMAIN_MEMBER) ? + SEC_CHAN_WKSTA : SEC_CHAN_BDC, orig_trust_passwd_hash); if (!NT_STATUS_IS_OK(result)) { DEBUG(0,("just_change_the_password: unable to setup creds (%s)!\n", |