Home
last modified time | relevance | path

Searched refs:princ (Results 1 – 25 of 79) sorted by relevance

1234

/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dclient_principal.c66 if(princ == NULL) in kadm5_create_principal()
128 if(princ == NULL) in kadm5_create_principal_3()
254 arg.princ = princ; in kadm5_get_principal()
345 arg.princ = princ; in kadm5_chpass_principal()
369 arg.princ = princ; in kadm5_chpass_principal_3()
395 arg.princ = princ; in kadm5_setv4key_principal()
419 arg.princ = princ; in kadm5_setkey_principal()
446 arg.princ = princ; in kadm5_setkey_principal_3()
495 arg.princ = princ; in kadm5_randkey_principal_old()
498 if(princ == NULL) in kadm5_randkey_principal_old()
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/
H A Dk5srvutil.sh69 for princ in $princs; do
71 if interactive_prompt "$ACTION" $princ; then
72 kadmin -k -t $keytab -p $princ -q "ktadd -k $keytab $princ"
79 for princ in $princs; do
81 if interactive_prompt "$ACTION" $princ; then
82 kadmin -k -t $keytab -p $princ -q "ktrem -k $keytab $princ old"
90 for princ in $princs; do
92 if interactive_prompt "$ACTION" $princ; then
93 kadmin -p $princ -k -t $keytab -q "ktrem -k $keytab $princ all"
H A Dkadmin.c208 krb5_principal princ; local
394 &princ))) {
654 krb5_principal princ; local
719 krb5_principal princ; local
920 princ->n_tl_data = 0; in kadmin_free_tl_data()
921 princ->tl_data = NULL; in kadmin_free_tl_data()
1222 memset(&princ, 0, sizeof(princ));
1420 memset(&princ, 0, sizeof(princ));
1447 &princ, &mask,
1500 krb5_principal princ; local
[all …]
H A Dkeytab.c265 krb5_principal princ; in add_principal() local
274 princ = NULL; in add_principal()
278 code = krb5_parse_name(context, princ_str, &princ); in add_principal()
328 code = kadm5_randkey_principal_3(lhandle, princ, in add_principal()
375 code = kadm5_get_principal(lhandle, princ, &princ_rec, in add_principal()
384 new_entry.principal = princ; in add_principal()
415 if (princ) in add_principal()
416 krb5_free_principal(context, princ); in add_principal()
427 krb5_principal princ; in remove_principal() local
434 code = krb5_parse_name(context, princ_str, &princ); in remove_principal()
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/kpasswd/
H A Dkpasswd.c109 krb5_principal princ = 0; local
184 if (! princ) {
199 krb5_free_principal(context, princ);
206 krb5_free_principal(context, princ);
238 krb5_free_principal(context, princ);
263 krb5_free_principal(context, princ);
284 krb5_free_principal(context, princ);
299 krb5_free_principal(context, princ);
308 krb5_free_principal(context, princ);
323 krb5_free_principal(context, princ);
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dacquire_cred.c154 krb5_principal princ; local
366 *output_princ = princ;
543 cred->princ = NULL;
578 if (cred->princ)
596 cred->princ?(gss_name_t)cred->princ:desired_name,
597 &(cred->princ), cred))
601 if (cred->princ)
619 &(cred->princ)))) {
647 if (cred->princ)
678 if (cred->princ)
[all …]
H A Dadd_cred.c177 cred->princ)) {
223 if (cred->princ)
224 code = krb5_copy_principal(context, cred->princ, &new_cred->princ);
237 if (new_cred->princ)
254 if(new_cred->princ)
266 if (new_cred->princ)
267 krb5_free_principal(context, new_cred->princ);
286 if (new_cred->princ)
308 if (new_cred->princ)
328 if (new_cred->princ)
[all …]
H A Dacquire_cred_with_pw.c300 cred->princ = NULL;
327 if (cred->princ)
328 krb5_free_principal(context, cred->princ);
344 cred->princ ? cred->princ : (krb5_principal)
349 if (cred->princ)
359 if (!cred->princ)
361 desired_name, &(cred->princ)))) {
387 if (cred->princ)
417 if (cred->princ)
436 if (cred->princ)
[all …]
H A Dimport_name.c60 krb5_principal princ; local
103 &princ);
123 if ((code = krb5_copy_principal(context, input, &princ))) {
208 code = krb5_parse_name(context, (char *) stringrep, &princ);
249 if (! kg_save_name((gss_name_t) princ)) {
250 krb5_free_principal(context, princ);
260 *output_name = (gss_name_t) princ;
/illumos-gate/usr/src/lib/pam_modules/krb5/
H A Dutils.c107 krb5_principal princ; in get_kmd_kuser() local
111 KRB5_NT_SRV_HST, &princ)) { in get_kmd_kuser()
114 if (krb5_unparse_name(kcontext, princ, &princname)) { in get_kmd_kuser()
115 krb5_free_principal(kcontext, princ); in get_kmd_kuser()
120 krb5_free_principal(kcontext, princ); in get_kmd_kuser()
125 krb5_free_principal(kcontext, princ); in get_kmd_kuser()
129 krb5_free_principal(kcontext, princ); in get_kmd_kuser()
151 krb5_principal princ = NULL; in key_in_keytab() local
179 if ((code = krb5_parse_name(kcontext, kuser, &princ)) != 0) { in key_in_keytab()
230 if (princ && kcontext) in key_in_keytab()
[all …]
H A Dkrb5_password.c328 krb5_principal princ = 0; in krb5_verifypw() local
355 krb5_free_principal(context, princ); in krb5_verifypw()
360 krb5_princ_realm(context, princ)->data, in krb5_verifypw()
372 krb5_free_principal(context, princ); in krb5_verifypw()
385 krb5_free_principal(context, princ); in krb5_verifypw()
389 krb5_free_principal(context, princ); in krb5_verifypw()
428 krb5_principal princ = 0; in krb5_changepw() local
453 krb5_free_principal(context, princ); in krb5_changepw()
458 krb5_princ_realm(context, princ)->data); in krb5_changepw()
481 krb5_free_principal(context, princ); in krb5_changepw()
[all …]
H A Dkrb5_acct_mgmt.c62 krb5_principal princ = 0; in fetch_princ_entry() local
78 code = krb5_parse_name(context, kprinc, &princ); in fetch_princ_entry()
84 krb5_free_principal(context, princ); in fetch_princ_entry()
92 krb5_princ_realm(context, princ)->data, in fetch_princ_entry()
104 krb5_free_principal(context, princ); in fetch_princ_entry()
117 krb5_free_principal(context, princ); in fetch_princ_entry()
129 krb5_free_principal(context, princ); in fetch_princ_entry()
133 code = kadm5_get_principal(server_handle, princ, prent, in fetch_princ_entry()
138 krb5_free_principal(context, princ); in fetch_princ_entry()
144 krb5_free_principal(context, princ); in fetch_princ_entry()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dbld_princ.c38 krb5_build_principal_va(krb5_context context, krb5_principal princ, unsigned int rlen, const char *… in krb5_build_principal_va() argument
52 krb5_princ_set_realm_length(context, princ, rlen); in krb5_build_principal_va()
58 krb5_princ_set_realm_data(context, princ, tmpdata); in krb5_build_principal_va()
89 princ->data = data; in krb5_build_principal_va()
90 princ->length = i; in krb5_build_principal_va()
91 princ->type = KRB5_NT_UNKNOWN; in krb5_build_principal_va()
92 princ->magic = KV5M_PRINCIPAL; in krb5_build_principal_va()
97 krb5_build_principal(krb5_context context, krb5_principal * princ, in krb5_build_principal() argument
112 *princ = pr_ret; in krb5_build_principal()
H A Dconv_princ.c157 krb5_524_conv_principal(krb5_context context, krb5_const_principal princ, in krb5_524_conv_principal() argument
167 switch (krb5_princ_size(context, princ)) { in krb5_524_conv_principal()
170 compo = krb5_princ_component(context, princ, 0); in krb5_524_conv_principal()
183 compo = krb5_princ_component(context, princ, 1); in krb5_524_conv_principal()
197 compo = krb5_princ_component(context, princ, 1); in krb5_524_conv_principal()
208 compo = krb5_princ_component(context, princ, 0); in krb5_524_conv_principal()
219 compo = krb5_princ_realm(context, princ); in krb5_524_conv_principal()
260 krb5_principal *princ) in krb5_425_conv_principal() argument
356 retval = krb5_build_principal(context, princ, strlen(realm), realm, name, in krb5_425_conv_principal()
H A Dgic_keytab.c134 char *princ = NULL; in krb5_get_init_creds_keytab() local
135 krb5_unparse_name(context, client, &princ); in krb5_get_init_creds_keytab()
139 princ ? princ : "<unknown>"); in krb5_get_init_creds_keytab()
140 if (princ) in krb5_get_init_creds_keytab()
141 krb5_free_unparsed_name(context, princ); in krb5_get_init_creds_keytab()
/illumos-gate/usr/src/lib/krb5/kdb/
H A Dkdb_convert.c75 if ((current->princ->type == new->princ->type) && in find_changed_attrs()
76 (current->princ->length == new->princ->length)) { in find_changed_attrs()
80 new->princ->realm.data, in find_changed_attrs()
245 krb5_principal princ; in conv_princ_2db() local
249 if (princ == NULL) { in conv_princ_2db()
252 princ->length = 0; in conv_princ_2db()
253 princ->data = NULL; in conv_princ_2db()
258 princ->realm.data = NULL; in conv_princ_2db()
265 if (princ->data == NULL) in conv_princ_2db()
278 return princ; in conv_princ_2db()
[all …]
H A Dkeytab.c221 is_xrealm_tgt(krb5_context context, krb5_const_principal princ) in is_xrealm_tgt() argument
224 if (krb5_princ_size(context, princ) != 2) in is_xrealm_tgt()
226 dat = krb5_princ_component(context, princ, 0); in is_xrealm_tgt()
229 dat = krb5_princ_component(context, princ, 1); in is_xrealm_tgt()
230 if (dat->length != princ->realm.length) in is_xrealm_tgt()
232 if (strncmp(dat->data, princ->realm.data, dat->length) == 0) in is_xrealm_tgt()
/illumos-gate/usr/src/cmd/krb5/kadmin/server/
H A Dmisc.c122 schpw_util_wrapper(void *server_handle, krb5_principal princ, in schpw_util_wrapper() argument
129 ret = kadm5_check_min_life(server_handle, princ, msg_ret, msg_len); in schpw_util_wrapper()
133 return kadm5_chpass_principal_util(server_handle, princ, in schpw_util_wrapper()
139 randkey_principal_wrapper(void *server_handle, krb5_principal princ, in randkey_principal_wrapper() argument
145 ret = kadm5_check_min_life(server_handle, princ, NULL, 0); in randkey_principal_wrapper()
149 return kadm5_randkey_principal(server_handle, princ, keys, n_keys); in randkey_principal_wrapper()
H A Dserver_stubs.c64 gss_name_t gss_name, krb5_principal *princ);
745 arg->princ, NULL)) { in delete_principal_2_svc()
1018 arg->princ, in get_principal_2_svc()
1030 arg->princ, &e); in get_principal_2_svc()
1037 arg->princ, &ret.rec, in get_principal_2_svc()
1181 ACL_CHANGEPW, arg->princ, NULL)) { in chpass_principal_2_svc()
1264 ACL_CHANGEPW, arg->princ, NULL)) { in chpass_principal3_2_svc()
1339 ACL_SETKEY, arg->princ, NULL)) { in setv4key_principal_2_svc()
1481 ACL_SETKEY, arg->princ, NULL)) { in setkey_principal3_2_svc()
1563 ACL_CHANGEPW, arg->princ, NULL)) { in chrand_principal_2_svc()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dval_cred.c42 krb5_principal princ; in krb5_gss_validate_cred_1() local
58 if ((code = krb5_cc_get_principal(context, cred->ccache, &princ))) { in krb5_gss_validate_cred_1()
63 if (!krb5_principal_compare(context, princ, cred->princ)) { in krb5_gss_validate_cred_1()
68 (void)krb5_free_principal(context, princ); in krb5_gss_validate_cred_1()
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_ksetpwd.c237 krb5_principal princ; in smb_krb5_setpwd() local
241 SMB_PN_UPN_ATTR, fqdn, &princ) != 0) in smb_krb5_setpwd()
251 krb5_free_principal(ctx, princ); in smb_krb5_setpwd()
273 krb5_free_principal(ctx, princ); in smb_krb5_setpwd()
370 krb5_principal princ; in smb_krb5_kt_find() local
381 &princ) != 0) { in smb_krb5_kt_find()
388 if (krb5_kt_get_entry(ctx, kt, princ, 0, 0, &entry) == 0) { in smb_krb5_kt_find()
396 krb5_free_principal(ctx, princ); in smb_krb5_kt_find()
447 entry->principal = princ; in smb_krb5_kt_addkey()
482 const char *fqdn, krb5_principal *princ) in smb_krb5_get_kprinc() argument
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/
H A Dkadm_rpc.h52 krb5_principal princ; member
86 krb5_principal princ; member
93 krb5_principal princ; member
103 krb5_principal princ; member
110 krb5_principal princ; member
118 krb5_principal princ; member
129 krb5_principal princ; member
135 krb5_principal princ; member
153 krb5_principal princ; member
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_solaris.c69 kt_add_entry(krb5_context ctx, krb5_keytab kt, const krb5_principal princ, in kt_add_entry() argument
93 entry.principal = princ; in kt_add_entry()
161 krb5_principal princ = NULL, salt = NULL, f_princ = NULL; in krb5_kt_add_ad_entries() local
221 if ((code = krb5_parse_name(ctx, *tprinc, &princ)) != 0) in krb5_kt_add_ad_entries()
240 code = kt_add_entry(ctx, kt, princ, salt, *tenctype, in krb5_kt_add_ad_entries()
248 krb5_free_principal(ctx, princ); in krb5_kt_add_ad_entries()
249 princ = NULL; in krb5_kt_add_ad_entries()
264 if (princ != NULL) in krb5_kt_add_ad_entries()
265 krb5_free_principal(ctx, princ); in krb5_kt_add_ad_entries()
H A Dkt_findrealm.c36 krb5_principal princ, krb5_data *realm) { in krb5_kt_find_realm() argument
52 memcpy(&ent.principal->realm, &princ->realm, in krb5_kt_find_realm()
55 match = krb5_principal_compare(context, ent.principal, princ); in krb5_kt_find_realm()
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_chpass_util.c28 krb5_principal princ, in kadm5_chpass_principal_util() argument
37 return _kadm5_chpass_principal_util(handle, handle->lhandle, princ, in kadm5_chpass_principal_util()
43 krb5_principal princ, in kadm5_chpass_principal_v2() argument

1234