diff options
author | Andreas Schneider <asn@samba.org> | 2022-03-15 13:10:06 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2022-03-17 10:35:11 +0000 |
commit | 9d91942913e0481cfb4af80eeb5a316f6c9d2c3f (patch) | |
tree | 40881e6f5e5f0c6c6b265965999e1185832cd4f9 | |
parent | 736df42fdf9b4f7977eb6857ff3ab91a5df62b65 (diff) | |
download | samba-9d91942913e0481cfb4af80eeb5a316f6c9d2c3f.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)
Autobuild-User(v4-15-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-15-test): Thu Mar 17 10:35:11 UTC 2022 on sn-devel-184
-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; } |