summaryrefslogtreecommitdiff
path: root/source/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-22 05:34:43 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-22 05:34:43 +0000
commit09bc2dd51c8407536b68aaeaeba4546f93256ec2 (patch)
treebf89af66333a5aae5ed6b56303e3316656f79628 /source/utils
parent00dfaa7c2c9227a082ca17ed14aefc19d9087a57 (diff)
downloadsamba-09bc2dd51c8407536b68aaeaeba4546f93256ec2.tar.gz
Merge from 3.0 - fix domain joins not to always join as BDC.
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/net_ads.c7
-rw-r--r--source/utils/net_rpc_join.c3
2 files changed, 4 insertions, 6 deletions
diff --git a/source/utils/net_ads.c b/source/utils/net_ads.c
index 91f82a5dbe0..203d849786b 100644
--- a/source/utils/net_ads.c
+++ b/source/utils/net_ads.c
@@ -648,7 +648,7 @@ int net_ads_join(int argc, const char **argv)
void *res;
DOM_SID dom_sid;
char *ou_str;
- uint32 sec_channel_type;
+ uint32 sec_channel_type = SEC_CHAN_WKSTA;
uint32 account_type = UF_WORKSTATION_TRUST_ACCOUNT;
if (argc > 0) org_unit = argv[0];
@@ -658,11 +658,6 @@ int net_ads_join(int argc, const char **argv)
return -1;
}
- /* check what type of join
- TODO: make this variable like RPC
- */
- account_type = UF_WORKSTATION_TRUST_ACCOUNT;
-
tmp_password = generate_random_str(DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH);
password = strdup(tmp_password);
diff --git a/source/utils/net_rpc_join.c b/source/utils/net_rpc_join.c
index 35564b1e10c..e389cf8ef8d 100644
--- a/source/utils/net_rpc_join.c
+++ b/source/utils/net_rpc_join.c
@@ -143,11 +143,14 @@ int net_rpc_join_newstyle(int argc, const char **argv)
switch (sec_channel_type) {
case SEC_CHAN_WKSTA:
acb_info = ACB_WSTRUST;
+ break;
case SEC_CHAN_BDC:
acb_info = ACB_SVRTRUST;
+ break;
#if 0
case SEC_CHAN_DOMAIN:
acb_info = ACB_DOMTRUST;
+ break;
#endif
}