*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> krb5_get_host_realm (3)              
Title
Content
Arch
Section
 

Contents


KRB5_SET_DEFAULT_RE... FreeBSD Library Functions Manual KRB5_SET_DEFAULT_RE...

NAME    [Toc]    [Back]

     krb5_free_host_realm krb5_get_default_realm krb5_get_default_realms
     krb5_get_host_realm krb5_set_default_realm -- default and host realm read
     and manipulation routines

LIBRARY    [Toc]    [Back]

     Kerberos 5 Library (libkrb5, -lkrb5)

SYNOPSIS    [Toc]    [Back]

     #include <krb5.h>

     krb5_error_code
     krb5_free_host_realm(krb5_context context, krb5_realm *realmlist);

     krb5_error_code
     krb5_get_default_realm(krb5_context context, krb5_realm *realm);

     krb5_error_code
     krb5_get_default_realms(krb5_context context, krb5_realm **realm);

     krb5_error_code
     krb5_get_host_realm(krb5_context context, const char *host,
         krb5_realm **realms);

     krb5_error_code
     krb5_set_default_realm(krb5_context context, const char *realm);

DESCRIPTION    [Toc]    [Back]

     krb5_free_host_realm() frees all memory allocated by realmlist.

     krb5_get_default_realm() returns the first default realm for this host.
     The realm returned should be free with free().

     krb5_get_default_realms() returns a NULL terminated list of default
     realms for this context.  Realms returned by krb5_get_default_realms()
     should be free with krb5_free_host_realm().

     krb5_get_host_realm() returns a NULL terminated list of realms for host
     by looking up the information in the [domain_realm] in krb5.conf 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,
     krb5_get_host_realm() 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,
     krb5_get_host_realm() assumes it can use the domain part of the host to
     form a realm.

     krb5_set_default_realm() sets the default realm for the context.  If NULL
     is used as a realm, the [libdefaults]default_realm stanza in krb5.conf is
     used.  If there is no such stanza in the configuration file, the
     krb5_get_host_realm() function is used to form a default realm.

SEE ALSO    [Toc]    [Back]

      
      
     krb5.conf(5), free(3)

HEIMDAL                          Mar 16, 2003                          HEIMDAL
[ Back ]
 Similar pages
Name OS Title
krb.conf Tru64 Contains configuration information that describes the default realm of the host, the administration ...
krb.realms Tru64 Contains configuration information that associates host names with realm names
readsource IRIX sets the source for pixels that various routines read
rcp Tru64 Copies files on the same host, between a local host and a remote host, and between two remote hosts
stio Tru64 routines that provide a binary read/write interface to the symbol table
stio IRIX routines that provide a binary read/write interface to the MIPS symbol table
curs_color IRIX curses color manipulation routines
start_color FreeBSD curses color manipulation routines
pair_content FreeBSD curses color manipulation routines
inet IRIX Internet address manipulation routines
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service