diff options
Diffstat (limited to 'lib/krb5/krb5_set_default_realm.cat3')
| -rw-r--r-- | lib/krb5/krb5_set_default_realm.cat3 | 77 |
1 files changed, 38 insertions, 39 deletions
diff --git a/lib/krb5/krb5_set_default_realm.cat3 b/lib/krb5/krb5_set_default_realm.cat3 index ff645cc106f0..2bf0a5b825b8 100644 --- a/lib/krb5/krb5_set_default_realm.cat3 +++ b/lib/krb5/krb5_set_default_realm.cat3 @@ -1,70 +1,69 @@ - KRB5_SET_DEFAULT_REAL... BSD Library Functions Manual KRB5_SET_DEFAULT_REAL... -NNAAMMEE - kkrrbb55__ccooppyy__hhoosstt__rreeaallmm, kkrrbb55__ffrreeee__hhoosstt__rreeaallmm, kkrrbb55__ggeett__ddeeffaauulltt__rreeaallmm, - kkrrbb55__ggeett__ddeeffaauulltt__rreeaallmmss, kkrrbb55__ggeett__hhoosstt__rreeaallmm, kkrrbb55__sseett__ddeeffaauulltt__rreeaallmm -- +[1mNAME[0m + [1mkrb5_copy_host_realm[22m, [1mkrb5_free_host_realm[22m, [1mkrb5_get_default_realm[22m, + [1mkrb5_get_default_realms[22m, [1mkrb5_get_host_realm[22m, [1mkrb5_set_default_realm [22m-- default and host realm read and manipulation routines -LLIIBBRRAARRYY +[1mLIBRARY[0m Kerberos 5 Library (libkrb5, -lkrb5) -SSYYNNOOPPSSIISS - ##iinncclluuddee <<kkrrbb55..hh>> +[1mSYNOPSIS[0m + [1m#include <krb5.h>[0m - _k_r_b_5___e_r_r_o_r___c_o_d_e - kkrrbb55__ccooppyy__hhoosstt__rreeaallmm(_k_r_b_5___c_o_n_t_e_x_t _c_o_n_t_e_x_t, _c_o_n_s_t _k_r_b_5___r_e_a_l_m _*_f_r_o_m, - _k_r_b_5___r_e_a_l_m _*_*_t_o); + [4mkrb5_error_code[0m + [1mkrb5_copy_host_realm[22m([4mkrb5_context[24m [4mcontext[24m, [4mconst[24m [4mkrb5_realm[24m [4m*from[24m, + [4mkrb5_realm[24m [4m**to[24m); - _k_r_b_5___e_r_r_o_r___c_o_d_e - kkrrbb55__ffrreeee__hhoosstt__rreeaallmm(_k_r_b_5___c_o_n_t_e_x_t _c_o_n_t_e_x_t, _k_r_b_5___r_e_a_l_m _*_r_e_a_l_m_l_i_s_t); + [4mkrb5_error_code[0m + [1mkrb5_free_host_realm[22m([4mkrb5_context[24m [4mcontext[24m, [4mkrb5_realm[24m [4m*realmlist[24m); - _k_r_b_5___e_r_r_o_r___c_o_d_e - kkrrbb55__ggeett__ddeeffaauulltt__rreeaallmm(_k_r_b_5___c_o_n_t_e_x_t _c_o_n_t_e_x_t, _k_r_b_5___r_e_a_l_m _*_r_e_a_l_m); + [4mkrb5_error_code[0m + [1mkrb5_get_default_realm[22m([4mkrb5_context[24m [4mcontext[24m, [4mkrb5_realm[24m [4m*realm[24m); - _k_r_b_5___e_r_r_o_r___c_o_d_e - kkrrbb55__ggeett__ddeeffaauulltt__rreeaallmmss(_k_r_b_5___c_o_n_t_e_x_t _c_o_n_t_e_x_t, _k_r_b_5___r_e_a_l_m _*_*_r_e_a_l_m); + [4mkrb5_error_code[0m + [1mkrb5_get_default_realms[22m([4mkrb5_context[24m [4mcontext[24m, [4mkrb5_realm[24m [4m**realm[24m); - _k_r_b_5___e_r_r_o_r___c_o_d_e - kkrrbb55__ggeett__hhoosstt__rreeaallmm(_k_r_b_5___c_o_n_t_e_x_t _c_o_n_t_e_x_t, _c_o_n_s_t _c_h_a_r _*_h_o_s_t, - _k_r_b_5___r_e_a_l_m _*_*_r_e_a_l_m_s); + [4mkrb5_error_code[0m + [1mkrb5_get_host_realm[22m([4mkrb5_context[24m [4mcontext[24m, [4mconst[24m [4mchar[24m [4m*host[24m, + [4mkrb5_realm[24m [4m**realms[24m); - _k_r_b_5___e_r_r_o_r___c_o_d_e - kkrrbb55__sseett__ddeeffaauulltt__rreeaallmm(_k_r_b_5___c_o_n_t_e_x_t _c_o_n_t_e_x_t, _c_o_n_s_t _c_h_a_r _*_r_e_a_l_m); + [4mkrb5_error_code[0m + [1mkrb5_set_default_realm[22m([4mkrb5_context[24m [4mcontext[24m, [4mconst[24m [4mchar[24m [4m*realm[24m); -DDEESSCCRRIIPPTTIIOONN - kkrrbb55__ccooppyy__hhoosstt__rreeaallmm() copies the list of realms from _f_r_o_m to _t_o. _t_o - should be freed by the caller using _k_r_b_5___f_r_e_e___h_o_s_t___r_e_a_l_m. +[1mDESCRIPTION[0m + [1mkrb5_copy_host_realm[22m() copies the list of realms from [4mfrom[24m to [4mto[24m. [4mto[0m + should be freed by the caller using [4mkrb5_free_host_realm[24m. - kkrrbb55__ffrreeee__hhoosstt__rreeaallmm() frees all memory allocated by _r_e_a_l_m_l_i_s_t. + [1mkrb5_free_host_realm[22m() frees all memory allocated by [4mrealmlist[24m. - kkrrbb55__ggeett__ddeeffaauulltt__rreeaallmm() returns the first default realm for this host. - The realm returned should be freed with kkrrbb55__xxffrreeee(). + [1mkrb5_get_default_realm[22m() returns the first default realm for this host. + The realm returned should be freed with [1mkrb5_xfree[22m(). - kkrrbb55__ggeett__ddeeffaauulltt__rreeaallmmss() returns a NULL terminated list of default - realms for this context. Realms returned by kkrrbb55__ggeett__ddeeffaauulltt__rreeaallmmss() - should be freed with kkrrbb55__ffrreeee__hhoosstt__rreeaallmm(). + [1mkrb5_get_default_realms[22m() returns a NULL terminated list of default + realms for this context. Realms returned by [1mkrb5_get_default_realms[22m() + should be freed with [1mkrb5_free_host_realm[22m(). - kkrrbb55__ggeett__hhoosstt__rreeaallmm() returns a NULL terminated list of realms for _h_o_s_t - by looking up the information in the [domain_realm] in _k_r_b_5_._c_o_n_f or in + [1mkrb5_get_host_realm[22m() returns a NULL terminated list of realms for [4mhost[0m + by looking up the information in the [domain_realm] in [4mkrb5.conf[24m or in DNS. If the mapping in [domain_realm] results in the string dns_locate, DNS is used to lookup the realm. When using DNS to a resolve the domain for the host a.b.c, - kkrrbb55__ggeett__hhoosstt__rreeaallmm() looks for a TXT resource record named + [1mkrb5_get_host_realm[22m() looks for a TXT resource record named _kerberos.a.b.c, and if not found, it strips off the first component and tries a again (_kerberos.b.c) until it reaches the root. If there is no configuration or DNS information found, - kkrrbb55__ggeett__hhoosstt__rreeaallmm() assumes it can use the domain part of the _h_o_s_t to - form a realm. Caller must free _r_e_a_l_m_l_i_s_t with kkrrbb55__ffrreeee__hhoosstt__rreeaallmm(). + [1mkrb5_get_host_realm[22m() assumes it can use the domain part of the [4mhost[24m to + form a realm. Caller must free [4mrealmlist[24m with [1mkrb5_free_host_realm[22m(). - kkrrbb55__sseett__ddeeffaauulltt__rreeaallmm() sets the default realm for the _c_o_n_t_e_x_t. If NULL - is used as a _r_e_a_l_m, the [libdefaults]default_realm stanza in _k_r_b_5_._c_o_n_f is + [1mkrb5_set_default_realm[22m() sets the default realm for the [4mcontext[24m. If NULL + is used as a [4mrealm[24m, the [libdefaults]default_realm stanza in [4mkrb5.conf[24m is used. If there is no such stanza in the configuration file, the - kkrrbb55__ggeett__hhoosstt__rreeaallmm() function is used to form a default realm. + [1mkrb5_get_host_realm[22m() function is used to form a default realm. -SSEEEE AALLSSOO +[1mSEE ALSO[0m free(3), krb5.conf(5) HEIMDAL April 24, 2005 HEIMDAL |
