diff options
-rw-r--r-- | source3/utils/net_ads.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |