Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP5:GA
realmd
0004-service-use-dnshostname-with-net-ads-join....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-service-use-dnshostname-with-net-ads-join.patch of Package realmd
From b9f664fab458b5b8e1d9a76c74fc47e13de1ede0 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero <scabrero@suse.de> Date: Thu, 12 Sep 2024 13:47:56 +0200 Subject: [PATCH] service: use 'dnshostname' with net ads join In bso#14116 samba changed to join with netbios name and realm instead of FQDN, and provided additional-dns-hostnames as alternative to register other SPNs. Realmd was adapted to use "additional-dns-hostnames" with commit d4fd58bdd4f42f94abccb7d95eb83604567dccef. Then samba added "dnshostname" to net ads join in bso#14396. This commit makes use of this option when the discovered FQDN does not match netbios name + dns domain. Signed-off-by: Samuel Cabrero <scabrero@suse.de> --- service/realm-samba-enroll.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/service/realm-samba-enroll.c b/service/realm-samba-enroll.c index 66bed99..fc42944 100644 --- a/service/realm-samba-enroll.c +++ b/service/realm-samba-enroll.c @@ -407,6 +407,10 @@ begin_join (GTask *task, upn ? upn : ""); } + if (join->disco->dns_fqdn) { + join->join_args[at++] = g_strdup_printf ("dnshostname=%s", join->disco->dns_fqdn); + } + g_assert (at < G_N_ELEMENTS (join->join_args)); if (error != NULL) { @@ -419,7 +423,8 @@ begin_join (GTask *task, "-U", join->user_name, "ads", "join", join->disco->domain_name, join->join_args[0], join->join_args[1], join->join_args[2], join->join_args[3], - join->join_args[4], NULL); + join->join_args[4], join->join_args[5], + NULL); /* Do join with a ccache */ } else { @@ -428,7 +433,8 @@ begin_join (GTask *task, "-k", "ads", "join", join->disco->domain_name, join->join_args[0], join->join_args[1], join->join_args[2], join->join_args[3], - join->join_args[4], NULL); + join->join_args[4], join->join_args[5], + NULL); } } -- 2.46.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor