From: Günther Deschner Date: Thu, 18 Feb 2021 15:58:42 +0000 (+0100) Subject: s3-libnet_join: set netbios name as well when modification is requested X-Git-Tag: talloc-2.3.3~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33ed555e9bd1a8d8fca0f403eeef7576e80241ba;p=thirdparty%2Fsamba.git s3-libnet_join: set netbios name as well when modification is requested Guenther Signed-off-by: Guenther Deschner Reviewed-by: Alexander Bokovoy --- 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");