]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libads: Also add a realm entry for the domain name
authorAndreas Schneider <asn@samba.org>
Thu, 3 Sep 2020 11:49:33 +0000 (13:49 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 7 Sep 2020 09:25:33 +0000 (09:25 +0000)
This is required if we try to authenticate as Administrator@DOMAIN so it
can find the KDC. This fixes 'net ads join' for ad_member_fips if we
require Kerberos auth.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Sep  7 09:25:33 UTC 2020 on sn-devel-184

source3/libads/kerberos.c

index 6eb57d85f4e964a157642ca2313202d96d6f2110..1db285cd29a1d7682c390b011ddeb8502a4ebe80 100644 (file)
@@ -745,11 +745,15 @@ bool create_local_private_krb5_conf_for_domain(const char *realm,
                            "\tdns_lookup_kdc = true\n\n"
                            "[realms]\n\t%s = {\n"
                            "%s\t}\n"
+                           "\t%s = {\n"
+                           "%s\t}\n"
                            "%s\n",
                            realm_upper,
                            enctypes,
                            realm_upper,
                            kdc_ip_string,
+                           domain,
+                           kdc_ip_string,
                            include_system_krb5);
 
        if (!file_contents) {