s3:winbind: Fix idmap_ad creating an invalid local krb5.conf v4-20-test
authorAndreas Schneider <asn@samba.org>
Tue, 28 May 2024 11:54:24 +0000 (13:54 +0200)
committerJule Anger <janger@samba.org>
Wed, 5 Jun 2024 15:01:54 +0000 (15:01 +0000)
commit65e781a30b247ab1056405322a8c9cbfb4bae03a
tree8c9457fc6871a450cf77d2527b4c500217971a4b
parentfb4c338f03034ef47231e1fb7ec1056ac5d3aa4f
s3:winbind: Fix idmap_ad creating an invalid local krb5.conf

In case of a trusted domain, we are providing the realm of the primary
trust but specify the KDC IP of the trusted domain. This leads to
Kerberos ticket requests to the trusted domain KDC which doesn't know
about the machine account. However we need a ticket from our primary
trust KDC.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(backported from commit 8989aa47b7493e6b7978c2efc4a40c781e9a2aee)

Autobuild-User(v4-20-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-20-test): Wed Jun  5 15:01:54 UTC 2024 on atb-devel-224
source3/winbindd/idmap_ad.c