1 .\" Copyright (c) 1997 Kungliga Tekniska Högskolan
2 .\" $Id: krb5_sname_to_principal.3,v 1.5 2002/08/28 15:30:56 joda Exp $
7 .Nm krb5_sname_to_principal ,
8 .Nm krb5_sock_to_principal
9 .Nd create a service principal
11 Kerberos 5 Library (libkrb5, -lkrb5)
15 .Fn krb5_sname_to_principal "krb5_context context" "const char *hostname" "const char *sname" "int32_t type" "krb5_principal *principal"
17 .Fn krb5_sock_to_principal "krb5_context context" "int socket" "const char *sname" "int32_t type" "krb5_principal *principal"
19 These functions create a
21 principal that can, for instance, be used to lookup a key in a keytab. For both these function the
23 parameter will be used for the first component of the created principal. If
29 .Fn krb5_sname_to_principal
32 for the second component. If type
34 this name will be looked up with
39 the local hostname will be used.
41 .Fn krb5_sock_to_principal
46 which should be a bound
50 .Xr krb5_425_conv_principal 3 ,
51 .Xr krb5_build_principal 3 ,
52 .Xr krb5_free_principal 3 ,
53 .Xr krb5_parse_name 3 ,
54 .Xr krb5_unparse_name 3