1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

libnet: fix join by creating keytab after changing the config.

Michael
(This used to be commit 96d1c780bf)
This commit is contained in:
Michael Adam 2008-08-29 17:43:12 +02:00
parent 1f0cd6a744
commit 2d25608a5d

View File

@ -1505,6 +1505,17 @@ static WERROR libnet_join_post_processing(TALLOC_CTX *mem_ctx,
if (r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_TYPE) {
saf_store(r->in.domain_name, r->in.dc_name);
#ifdef WITH_ADS
if (r->out.domain_is_ad) {
ADS_STATUS ads_status;
ads_status = libnet_join_post_processing_ads(mem_ctx, r);
if (!ADS_ERR_OK(ads_status)) {
return WERR_GENERAL_FAILURE;
}
}
#endif /* WITH_ADS */
}
libnet_join_add_dom_rids_to_builtins(r->out.domain_sid);
@ -1754,16 +1765,6 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
goto done;
}
#ifdef WITH_ADS
if (r->out.domain_is_ad) {
ads_status = libnet_join_post_processing_ads(mem_ctx, r);
if (!ADS_ERR_OK(ads_status)) {
werr = WERR_GENERAL_FAILURE;
goto done;
}
}
#endif /* WITH_ADS */
werr = WERR_OK;
done: