diff options
author | Nicolas Williams <nico@cryptonector.com> | 2021-05-13 00:43:26 -0500 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2024-05-13 12:47:47 -0400 |
commit | d035119c3b2b402f3ad49a4c7b6264826ea923bb (patch) | |
tree | d11952914a3be3f3971062bc0faf0949b1fe229f /src/lib/krb5/os/os-proto.h | |
parent | 6b74b6c18feab1f3d72d00ae412a93c6bfa4a00a (diff) | |
download | krb5-d035119c3b2b402f3ad49a4c7b6264826ea923bb.zip krb5-d035119c3b2b402f3ad49a4c7b6264826ea923bb.tar.gz krb5-d035119c3b2b402f3ad49a4c7b6264826ea923bb.tar.bz2 |
Support site-local KDC discovery via DNS
Add the sitename realm variable. If set, service location via DNS
will be attempted using the site name as specified in [MS-ADTS]
6.3.2.3, falling back to regular discovery on failure.
[ghudson@mit.edu: made this strictly a realm variable; moved
k5_get_sitename() to locate_kdc.c and made it take a krb5_data input;
fixed a memory leak; corrected documentation changes; fleshed out
commit message]
ticket: 9124 (new)
Diffstat (limited to 'src/lib/krb5/os/os-proto.h')
-rw-r--r-- | src/lib/krb5/os/os-proto.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/krb5/os/os-proto.h b/src/lib/krb5/os/os-proto.h index ad686a9..a21558d 100644 --- a/src/lib/krb5/os/os-proto.h +++ b/src/lib/krb5/os/os-proto.h @@ -176,13 +176,15 @@ struct srv_dns_entry { krb5_error_code krb5int_make_srv_query_realm(krb5_context context, const krb5_data *realm, const char *service, const char *protocol, + const char *sitename, struct srv_dns_entry **answers); void krb5int_free_srv_dns_data(struct srv_dns_entry *); krb5_error_code k5_make_uri_query(krb5_context context, const krb5_data *realm, - const char *service, struct srv_dns_entry **answers); + const char *service, const char *sitename, + struct srv_dns_entry **answers); krb5_error_code k5_try_realm_txt_rr(krb5_context context, const char *prefix, const char *name, char **realm); |