]> git.ipfire.org Git - thirdparty/samba.git/commit
s3-libnet: avoid using lp_dns_hostname() in join code
authorGünther Deschner <gd@samba.org>
Tue, 14 Jan 2025 18:16:31 +0000 (19:16 +0100)
committerJule Anger <janger@samba.org>
Wed, 12 Feb 2025 10:37:56 +0000 (10:37 +0000)
commit512514bbae46f668e075b52af4f87bfcc148042b
treeb559fe4653cb6a4c304ec87443f4f24940035957
parent6e4c35f800764bd633d50724c57aedb72ba99f33
s3-libnet: avoid using lp_dns_hostname() in join code

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15777

This codepath is also used for provisiong non-local machines into AD
during offlinejoin operations. When creating accounts for non-local
machines we certainly need to be able to use arbitrary hostname other
than lp_netbios_name() (which is used internally by lp_dns_hostname()).
This partly reverts 0e96092c1895ecb41d4064111566b4ada71fe457.

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jan 30 07:35:05 UTC 2025 on atb-devel-224

(cherry picked from commit 062dc07e9b9c8e260548d0bca4d02819bdc60326)

Autobuild-User(v4-21-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-21-test): Wed Feb 12 10:37:56 UTC 2025 on atb-devel-224
source3/libnet/libnet_join.c