summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-14 22:57:37 +0200
committerGünther Deschner <gd@samba.org>2008-04-14 22:57:37 +0200
commita31281a751d2ad2528ad99348a5c9c9ae10b99a4 (patch)
tree6cbcf2bdeb6243338990692ad59b84f441988daa /source3
parentc8d96d57f8a8775315dbf5c06c94b5dc0a2123fc (diff)
downloadsamba-a31281a751d2ad2528ad99348a5c9c9ae10b99a4.tar.gz
samba-a31281a751d2ad2528ad99348a5c9c9ae10b99a4.tar.bz2
samba-a31281a751d2ad2528ad99348a5c9c9ae10b99a4.zip
libnetjoin: delete the workgroup name when requested while unjoining.
Guenther (This used to be commit 1782e89f3341eca5ee1fa39881ee8efb3fac9a5b)
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_join.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 182945bdfc..90cb64c5d6 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -1288,6 +1288,10 @@ static WERROR do_unjoin_modify_vals_config(struct libnet_UnjoinCtx *r)
werr = smbconf_set_global_parameter(ctx, "security", "user");
W_ERROR_NOT_OK_GOTO_DONE(werr);
+
+ werr = smbconf_delete_global_parameter(ctx, "workgroup");
+ W_ERROR_NOT_OK_GOTO_DONE(werr);
+
smbconf_delete_global_parameter(ctx, "realm");
}