Searched refs:keytab (Results 1 - 25 of 38) sorted by relevance

12

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dktfns.c2 * lib/krb5/keytab/ktfns.c
28 * Dispatch methods for keytab code.
34 krb5_kt_get_type (krb5_context context, krb5_keytab keytab) argument
36 return keytab->ops->prefix;
40 krb5_kt_get_name(krb5_context context, krb5_keytab keytab, char *name, argument
43 return krb5_x((keytab)->ops->get_name,(context, keytab,name,namelen));
47 krb5_kt_close(krb5_context context, krb5_keytab keytab) argument
49 return krb5_x((keytab)->ops->close,(context, keytab));
53 krb5_kt_get_entry(krb5_context context, krb5_keytab keytab, krb5_const_principal principal, krb5_kvno vno, krb5_enctype enctype, krb5_keytab_entry *entry) argument
78 krb5_kt_start_seq_get(krb5_context context, krb5_keytab keytab, krb5_kt_cursor *cursor) argument
85 krb5_kt_next_entry(krb5_context context, krb5_keytab keytab, krb5_keytab_entry *entry, krb5_kt_cursor *cursor) argument
92 krb5_kt_end_seq_get(krb5_context context, krb5_keytab keytab, krb5_kt_cursor *cursor) argument
[all...]
H A Dkt_findrealm.c28 * Iterate through a keytab (keytab) looking for an entry which matches
35 krb5_error_code krb5_kt_find_realm(krb5_context context, krb5_keytab keytab, argument
44 ret = krb5_kt_start_seq_get(context, keytab, &cur);
49 while ((ret = krb5_kt_next_entry(context, keytab, &ent, &cur)) == 0) {
62 * A suitable entry was found in the keytab.
69 krb5_kt_end_seq_get(context, keytab, &cur);
80 ret2 = krb5_kt_end_seq_get(context, keytab, &cur);
H A Dktbase.c8 * lib/krb5/keytab/ktbase.c
33 * Registration functions for keytab.
119 * Resolve a key table name into a keytab object.
125 * particular keytab type.
210 krb5_keytab keytab; local
215 keytab = (krb5_keytab) arg;
216 shandle = (krb5_ser_handle) keytab->ops->serializer;
217 if ((keytab != NULL) && (keytab->ops) &&
227 krb5_keytab keytab; local
[all...]
H A Dkt_file.c6 * lib/krb5/keytab/kt_file.c
49 #define KRB5_KT_VNO_1 0x0501 /* krb v5, keytab version 1 (DCE compat) */
50 #define KRB5_KT_VNO 0x0502 /* krb v5, keytab version 2 (standard) */
61 int version; /* Version number of keytab */
185 * This is an implementation specific resolver. It returns a keytab id
186 * initialized with file keytab routines.
229 * "Close" a file-based keytab and invalidate the id. This means
237 * for this keytab. There are no system resources that need
253 * This is the get_entry routine for the file based keytab implementation.
254 * It opens the keytab fil
559 krb5_keytab keytab; local
603 krb5_keytab keytab; local
704 krb5_keytab keytab; local
[all...]
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/
H A Dk5srvutil.sh15 # list_princs keytab
16 # returns a list of principals in the keytab
19 klist -k $keytab | tail +4 | awk '{print $2}' | sort | uniq
72 kadmin -k -t $keytab -p $princ -q "ktadd -k $keytab $princ"
82 kadmin -k -t $keytab -p $princ -q "ktrem -k $keytab $princ old"
93 kadmin -p $princ -k -t $keytab -q "ktrem -k $keytab $princ all"
99 keytab
[all...]
H A Dkeytab.c10 * $Id: keytab.c,v 1.28 2004/05/31 12:39:16 epeisach Exp $
11 * $Source: /cvs/krbdev/krb5/src/kadmin/cli/keytab.c,v $
41 static char *rcsid = "$Header: /cvs/krbdev/krb5/src/kadmin/cli/keytab.c,v 1.28 2004/05/31 12:39:16 epeisach Exp $";
54 static int add_principal(void *lhandle, char *keytab_str, krb5_keytab keytab,
58 static int remove_principal(char *keytab_str, krb5_keytab keytab, char
68 "ktadd [-k[eytab] keytab] [-q] [-e keysaltlist] "
76 "ktremove [-k[eytab] keytab] [-q] principal "
81 krb5_keytab *keytab)
87 if (code = krb5_kt_default(my_context, keytab)) {
88 com_err(whoami, code, gettext("while opening default keytab"));
80 process_keytab(krb5_context my_context, char **keytab_str, krb5_keytab *keytab) argument
135 krb5_keytab keytab = 0; local
221 krb5_keytab keytab = 0; local
259 add_principal(void *lhandle, char *keytab_str, krb5_keytab keytab, krb5_boolean keepold, int n_ks_tuple, krb5_key_salt_tuple *ks_tuple, char *princ_str) argument
424 remove_principal(char *keytab_str, krb5_keytab keytab, char *princ_str, char *kvno_str) argument
[all...]
H A DMakefile13 COMMON_OBJS = kadmin.o kadmin_ct.o ss_wrapper.o getdate.o keytab.o
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Drd_req.c49 krb5_rd_req(krb5_context context, krb5_auth_context *auth_context, const krb5_data *inbuf, krb5_const_principal server, krb5_keytab keytab, krb5_flags *ap_req_options, krb5_ticket **ticket) argument
94 /* Get a keytab if necessary. */
95 if (keytab == NULL) {
98 keytab = new_keytab;
102 keytab, ap_req_options, ticket);
H A Dvfy_increds.c76 krb5_keytab keytab; local
86 keytab = NULL;
99 /* first, check if the server is in the keytab. If not, there's
102 keytab or key, and not by some other problem. */
105 keytab = keytab_arg;
108 ret = krb5_kt_default(context, &keytab);
115 if (keytab == NULL ||
116 (ret = krb5_kt_get_entry(context, keytab, server, 0, 0, &kte))) {
120 int nofail = 1; /* Solaris Kerberos: default return error if keytab problems */
201 if ((ret = krb5_rd_req(context, &authcon, &ap_req, server, keytab,
[all...]
H A Dgic_keytab.c52 krb5_keytab keytab = (krb5_keytab) gak_data; local
73 if ((ret = krb5_kt_get_entry(context, keytab, client,
101 krb5_keytab keytab; local
105 if ((ret = krb5_kt_default(context, &keytab)))
108 keytab = arg_keytab;
122 * in the keytab which matches the client can be used for the client's
127 ret = krb5_kt_find_realm(context, keytab, client, &realm);
138 gettext("Failed to find realm for %s in keytab"),
155 krb5_get_as_key_keytab, (void *) keytab,
176 krb5_get_as_key_keytab, (void *) keytab,
216 krb5_keytab keytab; local
[all...]
H A Drecvauth.c53 krb5_keytab keytab,
173 keytab, &ap_option, ticket);
256 krb5_recvauth(krb5_context context, krb5_auth_context *auth_context, krb5_pointer fd, char *appl_version, krb5_principal server, krb5_int32 flags, krb5_keytab keytab, krb5_ticket **ticket) argument
259 server, flags, keytab, ticket, 0);
269 krb5_keytab keytab,
275 server, flags, keytab, ticket, version);
46 recvauth_common(krb5_context context, krb5_auth_context * auth_context, krb5_pointer fd, char *appl_version, krb5_principal server, krb5_int32 flags, krb5_keytab keytab, krb5_ticket ** ticket, krb5_data *version) argument
263 krb5_recvauth_version(krb5_context context, krb5_auth_context *auth_context, krb5_pointer fd, krb5_principal server, krb5_int32 flags, krb5_keytab keytab, krb5_ticket **ticket, krb5_data *version) argument
H A Drd_req_dec.c73 krb5_rd_req_decrypt_tkt_part(krb5_context context, const krb5_ap_req *req, krb5_keytab keytab) argument
83 if ((retval = krb5_kt_get_entry(context, keytab, req->ticket->server,
98 /* Upon error, Free keytab entry first, then return */
148 krb5_keytab keytab, krb5_flags *ap_req_options,
191 if ((retval = krb5_rd_req_decrypt_tkt_part(context, req, keytab)))
504 krb5_keytab keytab, krb5_flags *ap_req_options,
509 req, server, keytab,
519 krb5_const_principal server, krb5_keytab keytab,
524 req, server, keytab,
146 krb5_rd_req_decoded_opt(krb5_context context, krb5_auth_context *auth_context, const krb5_ap_req *req, krb5_const_principal server, krb5_keytab keytab, krb5_flags *ap_req_options, krb5_ticket **ticket, int check_valid_flag) argument
502 krb5_rd_req_decoded(krb5_context context, krb5_auth_context *auth_context, const krb5_ap_req *req, krb5_const_principal server, krb5_keytab keytab, krb5_flags *ap_req_options, krb5_ticket **ticket) argument
516 krb5_rd_req_decoded_anyflag(krb5_context context, krb5_auth_context *auth_context, const krb5_ap_req *req, krb5_const_principal server, krb5_keytab keytab, krb5_flags *ap_req_options, krb5_ticket **ticket) argument
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dadd_cred.c234 if (cred->keytab) {
235 kttype = krb5_kt_get_type(context, cred->keytab);
250 code = krb5_kt_get_name(context, cred->keytab,
264 code = krb5_kt_resolve(context, ktboth, &new_cred->keytab);
276 new_cred->keytab = NULL;
284 if (new_cred->keytab)
285 krb5_kt_close(context, new_cred->keytab);
306 if (new_cred->keytab)
307 krb5_kt_close(context, new_cred->keytab);
326 if (new_cred->keytab)
[all...]
H A Dacquire_cred_with_pw.c106 * keytab, which we lack support for.
304 cred->keytab = NULL;
347 if (cred->keytab)
348 (void) krb5_kt_close(context, cred->keytab);
364 if (cred->keytab)
365 (void) krb5_kt_close(context, cred->keytab);
385 if (cred->keytab)
386 (void) krb5_kt_close(context, cred->keytab);
415 if (cred->keytab)
416 (void) krb5_kt_close(context, cred->keytab);
[all...]
H A Drel_cred.c78 if (cred->keytab)
79 code2 = krb5_kt_close(context, cred->keytab);
H A Dacquire_cred.c106 krb5_gss_register_acceptor_identity(const char *keytab) argument
116 if (keytab == NULL)
119 len = strlen(keytab);
123 strcpy(new, keytab);
138 /* get credentials corresponding to a key in the krb5 keytab.
142 If successful, set the keytab-specific fields in cred
159 cred->keytab = NULL;
161 /* open the default keytab */
195 "No principal in keytab ('%s') matches desired name %s"),
221 cred->keytab
[all...]
H A Dinit_sec_context.c1143 #include "../krb5/keytab/file/ktfile.h"
1229 * A 1.2.x keytab contains only the low 8 bits of the key
1261 * Yuck. The krb5-1.2.x keytab format only stores one byte
1312 * Given a princ of name/instance@LOCALREALM, search the keytab
1322 krb5_keytab keytab,
1333 if (!keytab)
1347 ret = ktfile_get_entry(context, keytab, client,
1396 krb5_keytab keytab = NULL; local
1414 if (code = krb5_kt_default(context, &keytab)) {
1422 code = get_instance_keytab(context, sname, keytab,
1319 get_instance_keytab( krb5_context context, const char *sname, krb5_keytab keytab, char **instance) argument
[all...]
/illumos-gate/usr/src/cmd/krb5/kadmin/server/
H A Dmisc.h68 krb5_keytab keytab,
/illumos-gate/usr/src/lib/libtecla/
H A DMakefile.com29 OBJECTS= getline.o keytab.o freelist.o strngmem.o hash.o history.o \
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rlogind.c116 krb5_keytab keytab,
192 krb5_keytab keytab = NULL; local
261 &keytab))) {
342 doit(fd, &from, krb_context, encr_flag, keytab);
376 krb5_keytab keytab)
424 keytab, /* NULL to use v5srvtab */
639 krb5_keytab keytab)
653 &auth_sys, &client, encr_flag, keytab);
883 krb5_keytab keytab, /* IN */
926 keytab, ticke
369 recvauth(int f, krb5_context krb_context, unsigned int *valid_checksum, krb5_ticket **ticket, int *auth_type, krb5_principal *client, int encr_flag, krb5_keytab keytab) argument
637 do_krb_login(int f, char *host_addr, char *hostname, krb5_context krb_context, int encr_flag, krb5_keytab keytab) argument
878 krb5_compat_recvauth(krb5_context context, krb5_auth_context *auth_context, krb5_pointer fdp, krb5_principal server, krb5_int32 flags, krb5_keytab keytab, krb5_ticket **ticket, krb5_int32 *auth_sys, krb5_data *version) argument
933 doit(int f, struct sockaddr_storage *fromp, krb5_context krb_context, int encr_flag, krb5_keytab keytab) argument
[all...]
/illumos-gate/usr/src/lib/krb5/kdb/
H A DMakefile.com32 keytab.o \
H A Dkeytab.c2 * kadmin/v5server/keytab.c
41 krb5_ktkdb_get_name(krb5_context context, krb5_keytab keytab, argument
89 * for this keytab. There are no system resources that need
106 * which will be used for the keytab, will necessarily have a
/illumos-gate/usr/src/cmd/krb5/slave/
H A Dkprop.c211 krb5_keytab keytab = NULL; local
324 retval = krb5_kt_resolve(context, srvtab, &keytab);
326 com_err(progname, retval, gettext("while resolving keytab"));
340 keytab, 0, svcname, &opt);
351 if (keytab)
352 (void) krb5_kt_close(context, keytab);
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dchgpwd.c47 char *realm, int s, krb5_keytab keytab,
180 ret = krb5_rd_req(context, &auth_context, &ap_req, changepw, keytab,
185 if (krb5_kt_get_name(context, keytab,
187 strncpy(kt_name, "default keytab", sizeof (kt_name));
193 "keytab entry \"kadmin/changepw\" "
200 "keytab file \"%s\" does not exist"),
596 * kadm5.keytab, by default.
600 "admin keytab %s"), error_message(ret));
46 process_chpw_request(krb5_context context, void *server_handle, char *realm, int s, krb5_keytab keytab, struct sockaddr_in *sin, krb5_data *req, krb5_data *rep) argument
/illumos-gate/usr/src/cmd/krb5/kinit/
H A Dkinit.c322 ULINE("\t", gettext("-k use keytab"), OPTTYPE_BOTH);
323 ULINE("\t", gettext("-t filename of keytab to use"), OPTTYPE_BOTH);
860 krb5_keytab keytab = 0; local
992 code = krb5_kt_resolve(k5->ctx, opts->keytab_name, &keytab);
994 com_err(progname, code, gettext("resolving keytab %s"),
1021 keytab,
1105 if (keytab)
1106 krb5_kt_close(k5->ctx, keytab);

Completed in 61 milliseconds

12