1 .\" Copyright (c) 2003 Kungliga Tekniska Högskolan
2 .\" (Royal Institute of Technology, Stockholm, Sweden).
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. Neither the name of the Institute nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 .Nm krb5_get_in_cred ,
40 .Nm krb5_get_in_tkt_with_password ,
41 .Nm krb5_get_in_tkt_with_keytab ,
42 .Nm krb5_get_in_tkt_with_skey ,
43 .Nm krb5_free_kdc_rep ,
44 .Nm krb5_password_key_proc
45 .Nd deprecated initial authentication functions
47 Kerberos 5 Library (libkrb5, -lkrb5)
53 .Fa "krb5_context context"
54 .Fa "krb5_flags options"
55 .Fa "const krb5_addresses *addrs"
56 .Fa "const krb5_enctype *etypes"
57 .Fa "const krb5_preauthtype *ptypes"
58 .Fa "krb5_key_proc key_proc"
59 .Fa "krb5_const_pointer keyseed"
60 .Fa "krb5_decrypt_proc decrypt_proc"
61 .Fa "krb5_const_pointer decryptarg"
62 .Fa "krb5_creds *creds"
63 .Fa "krb5_ccache ccache"
64 .Fa "krb5_kdc_rep *ret_as_reply"
68 .Fa "krb5_context context"
69 .Fa "krb5_flags options"
70 .Fa "const krb5_addresses *addrs"
71 .Fa "const krb5_enctype *etypes"
72 .Fa "const krb5_preauthtype *ptypes"
73 .Fa "const krb5_preauthdata *preauth"
74 .Fa "krb5_key_proc key_proc"
75 .Fa "krb5_const_pointer keyseed"
76 .Fa "krb5_decrypt_proc decrypt_proc"
77 .Fa "krb5_const_pointer decryptarg"
78 .Fa "krb5_creds *creds"
79 .Fa "krb5_kdc_rep *ret_as_reply"
82 .Fo krb5_get_in_tkt_with_password
83 .Fa "krb5_context context"
84 .Fa "krb5_flags options"
85 .Fa "krb5_addresses *addrs"
86 .Fa "const krb5_enctype *etypes"
87 .Fa "const krb5_preauthtype *pre_auth_types"
88 .Fa "const char *password"
89 .Fa "krb5_ccache ccache"
90 .Fa "krb5_creds *creds"
91 .Fa "krb5_kdc_rep *ret_as_reply"
94 .Fo krb5_get_in_tkt_with_keytab
95 .Fa "krb5_context context"
96 .Fa "krb5_flags options"
97 .Fa "krb5_addresses *addrs"
98 .Fa "const krb5_enctype *etypes"
99 .Fa "const krb5_preauthtype *pre_auth_types"
100 .Fa "krb5_keytab keytab"
101 .Fa "krb5_ccache ccache"
102 .Fa "krb5_creds *creds"
103 .Fa "krb5_kdc_rep *ret_as_reply"
106 .Fo krb5_get_in_tkt_with_skey
107 .Fa "krb5_context context"
108 .Fa "krb5_flags options"
109 .Fa "krb5_addresses *addrs"
110 .Fa "const krb5_enctype *etypes"
111 .Fa "const krb5_preauthtype *pre_auth_types"
112 .Fa "const krb5_keyblock *key"
113 .Fa "krb5_ccache ccache"
114 .Fa "krb5_creds *creds"
115 .Fa "krb5_kdc_rep *ret_as_reply"
118 .Fo krb5_free_kdc_rep
119 .Fa "krb5_context context"
120 .Fa "krb5_kdc_rep *rep"
123 .Fo krb5_password_key_proc
124 .Fa "krb5_context context"
125 .Fa "krb5_enctype type"
127 .Fa "krb5_const_pointer keyseed"
128 .Fa "krb5_keyblock **key"
132 All the functions in this manual page are deprecated in the MIT
133 implementation, and will soon be deprecated in Heimdal too, don't use them.
136 Getting initial credential ticket for a principal.
138 is the function all other krb5_get_in function uses to fetch tickets.
139 The other krb5_get_in function are more specialized and therefor
140 somewhat easier to use.
142 If your need is only to verify a user and password, consider using
143 .Xr krb5_verify_user 3
144 instead, it have a much simpler interface.
149 fetches initial credential, queries after key using the
152 The differences between the two function is that
154 stores the credential in a
158 stores the credential in a
161 .Nm krb5_get_in_tkt_with_password ,
162 .Nm krb5_get_in_tkt_with_keytab ,
164 .Nm krb5_get_in_tkt_with_skey
165 does the same work as
167 but are more specialized.
169 .Nm krb5_get_in_tkt_with_password
170 uses the clients password to authenticate.
171 If the password argument is
173 the user user queried with the default password query function.
175 .Nm krb5_get_in_tkt_with_keytab
176 searches the given keytab for a service entry for the client principal.
179 the default keytab is used.
181 .Nm krb5_get_in_tkt_with_skey
182 uses a key to get the initial credential.
184 There are some common arguments to the krb5_get_in functions, these are:
194 terminated array of encryption types that the client approves.
197 a list of the addresses that the initial ticket.
200 the list will be generated by the library.
205 terminated array of pre-authentication types.
210 the function will try without pre-authentication and return those
211 pre-authentication that the KDC returned.
216 be filled in with the response of the KDC and should be free with
217 .Fn krb5_free_kdc_rep .
220 is a pointer to a function that should return a key salted appropriately.
223 will use the default password query function.
228 will use the default decryption function.
231 will be passed to the decryption function
235 creds should be filled in with the template for a credential that
237 The client and server elements of the creds structure must be filled in.
238 Upon return of the function it will be contain the content of the
240 .Fa ( krb5_get_in_cred ) ,
241 or it will be freed with
242 .Xr krb5_free_creds 3
243 (all the other krb5_get_in functions).
246 will store the credential in the credential cache
248 The credential cache will not be initialized, thats up the the caller.
250 .Nm krb5_password_key_proc
251 is a library function that is suitable using as the
256 .Nm krb5_get_in_tkt .
258 should be a pointer to a
262 .Nm krb5_password_key_proc
263 will query the user for the pass on the console if the password isn't
264 given as the argument
267 .Fn krb5_free_kdc_rep
272 .Xr krb5_verify_user 3 ,