summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2021-02-18 16:58:42 +0100
committerGünther Deschner <gd@samba.org>2021-07-14 16:49:30 +0000
commit33ed555e9bd1a8d8fca0f403eeef7576e80241ba (patch)
tree1aa3a7837d85325a39bae06fe51121404189af32 /source3/libnet
parent8f3b994485797a98d1c8f3681eeb25b851c82119 (diff)
downloadsamba-33ed555e9bd1a8d8fca0f403eeef7576e80241ba.tar.gz
s3-libnet_join: set netbios name as well when modification is requested
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 743a30b42ae..8a42a4a6076 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -2057,6 +2057,13 @@ static WERROR do_join_modify_vals_config(struct libnet_JoinCtx *r)
goto done;
}
+ err = smbconf_set_global_parameter(ctx, "netbios name",
+ r->in.machine_name);
+ if (!SBC_ERROR_IS_OK(err)) {
+ werr = WERR_SERVICE_DOES_NOT_EXIST;
+ goto done;
+ }
+
if (!(r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_TYPE)) {
err = smbconf_set_global_parameter(ctx, "security", "user");