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

  man pages->NetBSD man pages -> krb5_sname_to_principal (3)              
Title
Content
Arch
Section
 

KRB5_PRINCIPAL(3)

Contents


NAME    [Toc]    [Back]

     krb5_sname_to_principal, krb5_sock_to_principal - create a service principal

LIBRARY    [Toc]    [Back]

     Kerberos 5 Library (libkrb5, -lkrb5)

SYNOPSIS    [Toc]    [Back]

     #include <krb5/krb5.h>

     krb5_error_code
     krb5_sname_to_principal(krb5_context context, const char *hostname,
             const char *sname, int32_t type, krb5_principal *principal);

     krb5_error_code
     krb5_sock_to_principal(krb5_context context, int socket,
             const char *sname, int32_t type, krb5_principal *principal);

DESCRIPTION    [Toc]    [Back]

     These functions create a ``service'' principal that can, for instance, be
     used to lookup a key in a keytab. For both these function the sname
     parameter will be used for the first component of the created principal.
     If sname is NULL, ``host'' will be used instead.
     krb5_sname_to_principal() will use the passed hostname for the second
     component. If type KRB5_NT_SRV_HST this name will be looked up with
     gethostbyname().  If hostname is NULL, the local hostname will be used.

     krb5_sock_to_principal() will use the ``sockname'' of the passed socket,
     which should be a bound AF_INET socket.

SEE ALSO    [Toc]    [Back]

      
      
     krb5_425_conv_principal(3), krb5_build_principal(3),
     krb5_free_principal(3), krb5_parse_name(3), krb5_unparse_name(3)

BSD                             August 8, 1997                             BSD
[ Back ]
 Similar pages
Name OS Title
dcecp_principal HP-UX A dcecp object that manages a principal in the DCE Security Service
ypmake HP-UX create or rebuild Network Information Service databases
krb5_principal_get_realm FreeBSD decompose a principal
krb5_principal_get_comp_string FreeBSD decompose a principal
rpccp_add_entry HP-UX Adds a name service entry to the name service database
rpccp_remove_entry HP-UX Removes a name service entry from the name service database
krb5_build_principal_ext OpenBSD principal creation functions
krb5_parse_name FreeBSD string to principal conversion
krb5_kuserok FreeBSD verifies if a principal can log in as a user
krb5_parse_name OpenBSD string to principal conversion
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service