The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

krb5_free_krbhst (3)
  • >> krb5_free_krbhst (3) ( FreeBSD man: Библиотечные вызовы )

  • BSD mandoc
    HEIMDAL  

    NAME

    krb5_get_krbhst
    
    krb5_get_krb_admin_hst
    
    krb5_get_krb_changepw_hst
    
    krb5_get_krb524hst
    
    krb5_free_krbhst
    
     - lookup Kerberos KDC hosts
    
     
    

    LIBRARY

    Kerberos 5 Library (libkrb5, -lkrb5)
     
    

    SYNOPSIS

       #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

    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, Fa 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

    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

    krb5_krbhst_init3


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    EXAMPLE
    SEE ALSO


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру