git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f3b994
)
s3-libnet_join: set netbios name as well when modification is requested
author
Günther Deschner
<gd@samba.org>
Thu, 18 Feb 2021 15:58:42 +0000
(16:58 +0100)
committer
Günther Deschner
<gd@samba.org>
Wed, 14 Jul 2021 16:49:30 +0000
(16:49 +0000)
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/libnet/libnet_join.c
patch
|
blob
|
history
diff --git
a/source3/libnet/libnet_join.c
b/source3/libnet/libnet_join.c
index 743a30b42aefc859dffecdda8d923a2bc7816b17..8a42a4a6076becdb46430262a823ba4e725f5f93 100644
(file)
--- 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");