xref: /freebsd/crypto/krb5/doc/html/_sources/appdev/refs/api/krb5_get_init_creds_keytab.rst.txt (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1krb5_get_init_creds_keytab -  Get initial credentials using a key table.
2=========================================================================
3
4..
5
6.. c:function:: krb5_error_code krb5_get_init_creds_keytab(krb5_context context, krb5_creds * creds, krb5_principal client, krb5_keytab arg_keytab, krb5_deltat start_time, const char * in_tkt_service, krb5_get_init_creds_opt * k5_gic_options)
7
8..
9
10
11:param:
12
13	          **[in]** **context** - Library context
14
15	          **[out]** **creds** - New credentials
16
17	          **[in]** **client** - Client principal
18
19	          **[in]** **arg_keytab** - Key table handle
20
21	          **[in]** **start_time** - Time when ticket becomes valid (0 for now)
22
23	          **[in]** **in_tkt_service** - Service name of initial credentials (or NULL)
24
25	          **[in]** **k5_gic_options** - Initial credential options
26
27
28..
29
30
31:retval:
32         -   0   Success
33
34
35:return:
36         -  Kerberos error codes
37
38..
39
40
41
42
43
44
45
46This function requests KDC for an initial credentials for *client* using a client key stored in *arg_keytab* . If *in_tkt_service* is specified, it is parsed as a principal name (with the realm ignored) and used as the service principal for the request; otherwise the ticket-granting service is used.
47
48
49
50
51
52
53
54
55
56
57..
58
59
60
61
62
63