summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-03-23 08:03:55 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-03-23 08:03:55 +0000
commit26588248cda26c6c8216a9b49008cb6d0e7f3bce (patch)
tree817b74f6aff84351ed2d712c896af6de727c0a5e /source3
parent1bb3c9cd85afbc6567e3199f9bfd661701a4edb7 (diff)
downloadsamba-26588248cda26c6c8216a9b49008cb6d0e7f3bce.tar.gz
samba-26588248cda26c6c8216a9b49008cb6d0e7f3bce.tar.bz2
samba-26588248cda26c6c8216a9b49008cb6d0e7f3bce.zip
Join as a server trust account if the server role is either PDC or BDC.
(This used to be commit 0784ab67addb3422a2d17363b4c3328d2e4b1008)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc_join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_join.c b/source3/utils/net_rpc_join.c
index a2c0614a50..c4558ea10b 100644
--- a/source3/utils/net_rpc_join.c
+++ b/source3/utils/net_rpc_join.c
@@ -136,7 +136,7 @@ int net_rpc_join_newstyle(int argc, const char **argv)
fstrcat(acct_name, "$");
strlower(acct_name);
- acb_info = (lp_server_role() == ROLE_DOMAIN_BDC) ? ACB_SVRTRUST : ACB_WSTRUST;
+ acb_info = ((lp_server_role() == ROLE_DOMAIN_BDC) || lp_server_role() == ROLE_DOMAIN_PDC) ? ACB_SVRTRUST : ACB_WSTRUST;
result = cli_samr_create_dom_user(cli, mem_ctx, &domain_pol,
acct_name, acb_info,