diff options
author | Michael Adam <obnox@samba.org> | 2012-01-30 18:04:41 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-01-31 17:00:30 +0100 |
commit | 1768d3621a077eb8b0457cbcabc1f7e2a4545948 (patch) | |
tree | 60f7dc699d074cbe8dc2db4d301a99dfca4cea2a | |
parent | 8f9b43281d7ad425a4e6681503eb6e872d9040d7 (diff) | |
download | samba-1768d3621a077eb8b0457cbcabc1f7e2a4545948.tar.gz samba-1768d3621a077eb8b0457cbcabc1f7e2a4545948.tar.bz2 samba-1768d3621a077eb8b0457cbcabc1f7e2a4545948.zip |
s3:net ads join: improve comment for dns update block
-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); } |