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

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

KRB5_GET_KRBHST(3)

Contents


NAME    [Toc]    [Back]

     krb5_get_krbhst krb5_get_krb_admin_hst krb5_get_krb_changepw_hst
     krb5_get_krb524hst krb5_free_krbhst -- lookup Kerberos KDC hosts

LIBRARY    [Toc]    [Back]

     Kerberos 5 Library (libkrb5, -lkrb5)

SYNOPSIS    [Toc]    [Back]

     #include <krb5.h>

     krb5_error_code
     krb5_get_krbhst(krb5_context context, const krb5_realm *realm,
         char ***hostlist);

     krb5_error_code
     krb5_get_krb_admin_hst(krb5_context context, const krb5_realm *realm,
         char ***hostlist);

     krb5_error_code
     krb5_get_krb_changepw_hst(krb5_context context, const krb5_realm *realm,
         char ***hostlist);

     krb5_error_code
     krb5_get_krb524hst(krb5_context context, const krb5_realm *realm,
         char ***hostlist);

     krb5_error_code
     krb5_free_krbhst(krb5_context context, char **hostlist);

DESCRIPTION    [Toc]    [Back]

     These functions implement the old API to get a list of Kerberos hosts,
     and are thus similar to the krb5_krbhst_init() functions. However, since
     these functions returns all hosts in one go, they potentially have to do
     more lookups than necessary. These functions remain for compatibility
     reasons.

     After a call to one of these functions, hostlist is a NULL terminated
     list of strings, pointing to the requested Kerberos hosts. These should
     be freed with krb5_free_krbhst() when done with.

EXAMPLE    [Toc]    [Back]

     The following code will print the KDCs of the realm ``MY.REALM''.

           char **hosts, **p;
           krb5_get_krbhst(context, "MY.REALM", &hosts);
           for(p = hosts; *p; p++)
               printf("%s\n", *p);
           krb5_free_krbhst(context, hosts);

SEE ALSO    [Toc]    [Back]

      
      
     krb5_krbhst_init(3)

HEIMDAL                          June 17, 2001                         HEIMDAL
[ Back ]
 Similar pages
Name OS Title
yp_host IRIX update NIS "hosts" database
rhost IRIX set the attributes of remote hosts and networks.
lmhosts.5 IRIX The Samba NetBIOS hosts file
hosts.equiv IRIX trusted hosts by system and by user
hosts IRIX trusted hosts by system and by user
jdbreg Tru64 Registers hosts in the DHCP dynamic databases.
sharePrinters IRIX share local printers with remote hosts.
renamehost IRIX rename the existing hostname in NIS hosts database
hosts.lpd FreeBSD trusted hosts that may use local print services
rdist Tru64 Maintains identical copies of files on multiple hosts
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service