mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:libads: Make sure we can lookup KDCs which are not configured
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13861 Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
b7f0c64514
commit
c016afc832
@ -677,11 +677,19 @@ bool create_local_private_krb5_conf_for_domain(const char *realm,
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* We are setting 'dns_lookup_kdc' to true, because we want to lookup
|
||||
* KDCs which are not configured via DNS SRV records, eg. if we do:
|
||||
*
|
||||
* net ads join -Uadmin@otherdomain
|
||||
*/
|
||||
file_contents =
|
||||
talloc_asprintf(fname,
|
||||
"[libdefaults]\n\tdefault_realm = %s\n"
|
||||
"[libdefaults]\n"
|
||||
"\tdefault_realm = %s\n"
|
||||
"%s"
|
||||
"\tdns_lookup_realm = false\n\n"
|
||||
"\tdns_lookup_realm = false\n"
|
||||
"\tdns_lookup_kdc = true\n\n"
|
||||
"[realms]\n\t%s = {\n"
|
||||
"%s\t}\n"
|
||||
"%s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user