From: Michael Adam Date: Mon, 30 Jan 2012 17:04:41 +0000 (+0100) Subject: s3:net ads join: improve comment for dns update block X-Git-Tag: tevent-0.9.15~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1768d3621a077eb8b0457cbcabc1f7e2a4545948;p=thirdparty%2Fsamba.git s3:net ads join: improve comment for dns update block --- diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index 15f2b54ee99..9aa1f8b9dbc 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); }