}
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;
goto done;
}
- /* kinit with the machine password */
-
use_in_memory_ccache();
ret = asprintf(&ads_dns->auth.user_name, "%s$", lp_netbios_name());
nt_errstr(status));
}
- /* exit from this block using machine creds */
dns_done:
ads_destroy(&ads_dns);
}