From 1768d3621a077eb8b0457cbcabc1f7e2a4545948 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 30 Jan 2012 18:04:41 +0100 Subject: s3:net ads join: improve comment for dns update block --- source3/utils/net_ads.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index 15f2b54ee9..9aa1f8b9db 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -1463,7 +1463,10 @@ int net_ads_join(struct net_context *c, int argc, const char **argv) } if (r->out.domain_is_ad) { - /* We enter this block with user creds */ + /* + * We enter this block with user creds. + * kinit with the machine password to do dns update. + */ ADS_STRUCT *ads_dns = NULL; int ret; NTSTATUS status; @@ -1475,8 +1478,6 @@ int net_ads_join(struct net_context *c, int argc, const char **argv) goto done; } - /* kinit with the machine password */ - use_in_memory_ccache(); ret = asprintf(&ads_dns->auth.user_name, "%s$", lp_netbios_name()); @@ -1514,7 +1515,6 @@ int net_ads_join(struct net_context *c, int argc, const char **argv) nt_errstr(status)); } - /* exit from this block using machine creds */ dns_done: ads_destroy(&ads_dns); } -- cgit