diff options
author | Günther Deschner <gd@samba.org> | 2008-06-05 18:58:27 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-06-09 10:26:47 +0200 |
commit | 917b72adea00309ed653c2c82261bd29f6d38dcf (patch) | |
tree | 8355b544396bfe81a4c3778656451f5c7acbad5c /source/libnet | |
parent | 3326b48dfd7720e7362e0207e7960627f5229d1d (diff) | |
download | samba-917b72adea00309ed653c2c82261bd29f6d38dcf.tar.gz |
libnetjoin: First store configuration and then verify the join.
Jerry, this fixes the issues while joining with "config backend = registry".
Guenther
(cherry picked from commit b3d47f099286778252c6df6bf2c1fee0c4e26560)
Diffstat (limited to 'source/libnet')
-rw-r--r-- | source/libnet/libnet_join.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/source/libnet/libnet_join.c b/source/libnet/libnet_join.c index a69cceaef89..88cdc2c3dae 100644 --- a/source/libnet/libnet_join.c +++ b/source/libnet/libnet_join.c @@ -1332,6 +1332,8 @@ static WERROR do_JoinConfig(struct libnet_JoinCtx *r) return werr; } + lp_load(get_dyn_CONFIGFILE(),true,false,false,true); + r->out.modified_config = true; r->out.result = werr; @@ -1358,6 +1360,8 @@ static WERROR libnet_unjoin_config(struct libnet_UnjoinCtx *r) return werr; } + lp_load(get_dyn_CONFIGFILE(),true,false,false,true); + r->out.modified_config = true; r->out.result = werr; @@ -1747,17 +1751,20 @@ WERROR libnet_Join(TALLOC_CTX *mem_ctx, if (!W_ERROR_IS_OK(werr)) { goto done; } + } + werr = libnet_join_post_processing(mem_ctx, r); + if (!W_ERROR_IS_OK(werr)) { + goto done; + } + + if (r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_TYPE) { werr = libnet_join_post_verify(mem_ctx, r); if (!W_ERROR_IS_OK(werr)) { goto done; } } - werr = libnet_join_post_processing(mem_ctx, r); - if (!W_ERROR_IS_OK(werr)) { - goto done; - } done: r->out.result = werr; |