diff options
author | Andreas Schneider <asn@samba.org> | 2022-03-15 13:10:06 +0100 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-03-17 09:14:56 +0000 |
commit | 9272ec1a2452ecea60b894f649c18d870cf9e2aa (patch) | |
tree | dedc8a9e80f607d6e7a8a4c4cf5b0bea02bae357 | |
parent | abe01ca6b215e51dea8328869731d88956bfb2dc (diff) | |
download | samba-9272ec1a2452ecea60b894f649c18d870cf9e2aa.tar.gz |
s3:libads: Fix creating local krb5.conf
We create an KDC ip string entry directly at the beginning, use it if we
don't have any additional DCs.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15016
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Mar 16 14:26:36 UTC 2022 on sn-devel-184
(cherry picked from commit 68d181ee676e17a5cdcfc12c5cc7eef242fdfa6c)
-rw-r--r-- | source3/libads/kerberos.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 20dceeefb22..3fd86e87064 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -522,6 +522,11 @@ static char *get_kdc_ip_string(char *mem_ctx, DBG_DEBUG("%zu additional KDCs to test\n", num_dcs); if (num_dcs == 0) { + /* + * We do not have additional KDCs, but we have the one passed + * in via `pss`. So just use that one and leave. + */ + result = talloc_move(mem_ctx, &kdc_str); goto out; } |