diff options
author | Günther Deschner <gd@samba.org> | 2021-02-18 16:58:42 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2021-07-14 16:49:30 +0000 |
commit | 33ed555e9bd1a8d8fca0f403eeef7576e80241ba (patch) | |
tree | 1aa3a7837d85325a39bae06fe51121404189af32 /source3/libnet | |
parent | 8f3b994485797a98d1c8f3681eeb25b851c82119 (diff) | |
download | samba-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.c | 7 |
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"); |