summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-12-16 21:22:50 +0100
committerGünther Deschner <gd@samba.org>2009-12-23 10:57:22 +0100
commit475d296065d57f9b38b109203b40ed0b47a2ac7e (patch)
tree3dda927011667aed01ff1f406bb8fa6fdf217dbb /source3
parent3b40ec83705f7ea61f4d4b88438493b6c197f222 (diff)
downloadsamba-475d296065d57f9b38b109203b40ed0b47a2ac7e.tar.gz
s3-net: use generated krb5.conf in 'net ads testjoin'
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_ads.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index f133eec0fc1..8e644bb6b2c 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -1007,6 +1007,8 @@ static NTSTATUS net_ads_join_ok(struct net_context *c)
{
ADS_STRUCT *ads = NULL;
ADS_STATUS status;
+ fstring dc_name;
+ struct sockaddr_storage dcip;
if (!secrets_init()) {
DEBUG(1,("Failed to initialise secrets database\n"));
@@ -1015,6 +1017,8 @@ static NTSTATUS net_ads_join_ok(struct net_context *c)
net_use_krb_machine_account(c);
+ get_dc_name(lp_workgroup(), lp_realm(), dc_name, &dcip);
+
status = ads_startup(c, true, &ads);
if (!ADS_ERR_OK(status)) {
return ads_ntstatus(status);