Home
last modified time | relevance | path

Searched refs:realm (Results 1 – 25 of 131) sorted by relevance

123456

/titanic_41/usr/src/lib/krb5/kadm5/
H A Dkadm_host_srv_names.c25 kadm5_get_master(krb5_context context, const char *realm, char **master) in kadm5_get_master() argument
40 if (realm == 0 || *realm == '\0') in kadm5_get_master()
44 realm ? realm : def_realm, in kadm5_get_master()
54 dns_realm.data = strdup(realm ? realm : def_realm); in kadm5_get_master()
55 dns_realm.length = strlen(realm ? realm : def_realm); in kadm5_get_master()
83 kadm5_get_kpasswd(krb5_context context, const char *realm, char **kpasswd) in kadm5_get_kpasswd() argument
96 if (realm == 0 || *realm == '\0') { in kadm5_get_kpasswd()
103 realm ? realm : def_realm, in kadm5_get_kpasswd()
113 dns_realm.data = strdup(realm ? realm : def_realm); in kadm5_get_kpasswd()
119 dns_realm.length = strlen(realm ? realm : def_realm); in kadm5_get_kpasswd()
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dhst_realm.c92 krb5_try_realm_txt_rr(const char *prefix, const char *name, char **realm) in krb5_try_realm_txt_rr() argument
140 *realm = malloc((size_t)len + 1); in krb5_try_realm_txt_rr()
141 if (*realm == NULL) { in krb5_try_realm_txt_rr()
145 strncpy(*realm, (const char *)p, (size_t)len); in krb5_try_realm_txt_rr()
146 (*realm)[len] = '\0'; in krb5_try_realm_txt_rr()
148 if ( (*realm)[len-1] == '.' ) in krb5_try_realm_txt_rr()
149 (*realm)[len-1] = '\0'; in krb5_try_realm_txt_rr()
203 char *realm, *cp, *temp_realm; in krb5_get_host_realm() local
229 realm = (char *)NULL; in krb5_get_host_realm()
256 realm = malloc(strlen(temp_realm) + 1); in krb5_get_host_realm()
[all …]
H A Ddef_realm.c131 char *realm = 0; in krb5_get_default_realm() local
146 &realm); in krb5_get_default_realm()
148 if (!retval && realm) { in krb5_get_default_realm()
149 context->default_realm = malloc(strlen(realm) + 1); in krb5_get_default_realm()
151 profile_release_string(realm); in krb5_get_default_realm()
154 strcpy(context->default_realm, realm); in krb5_get_default_realm()
155 profile_release_string(realm); in krb5_get_default_realm()
239 realm = context->default_realm; in krb5_get_default_realm()
242 if (!(*lrealm = cp = malloc((unsigned int) strlen(realm) + 1))) in krb5_get_default_realm()
244 strcpy(cp, realm); in krb5_get_default_realm()
H A Dlocate_kdc.c376 module_locate_server (krb5_context ctx, const krb5_data *realm, in module_locate_server() argument
417 code = vtbl->lookup(blob, svc, realm->data, socktype, family, in module_locate_server()
450 prof_locate_server (krb5_context context, const krb5_data *realm, in prof_locate_server() argument
481 if ((host = malloc(realm->length + 1)) == NULL) in prof_locate_server()
484 (void) strncpy(host, realm->data, realm->length); in prof_locate_server()
485 host[realm->length] = '\0'; in prof_locate_server()
510 dns_locate_server (krb5_context context, const krb5_data *realm, in dns_locate_server() argument
546 code = krb5int_make_srv_query_realm(realm, dnsname, "_udp", &head); in dns_locate_server()
551 code = krb5int_make_srv_query_realm(realm, dnsname, "_tcp", &head); in dns_locate_server()
790 krb5int_locate_server (krb5_context context, const krb5_data *realm, in krb5int_locate_server() argument
[all …]
H A Ddnssrv.c57 krb5int_make_srv_query_realm(const krb5_data *realm, in krb5int_make_srv_query_realm() argument
82 if (memchr(realm->data, 0, realm->length)) in krb5int_make_srv_query_realm()
84 if ( strlen(service) + strlen(protocol) + realm->length + 6 in krb5int_make_srv_query_realm()
87 sprintf(host, "%s.%s.%.*s", service, protocol, (int) realm->length, in krb5int_make_srv_query_realm()
88 realm->data); in krb5int_make_srv_query_realm()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1_misc.c32 target->realm.length = source->realm.length; in asn1_krb5_realm_copy()
33 target->realm.data = (char*)malloc(target->realm.length); /* copy realm */ in asn1_krb5_realm_copy()
34 if (target->realm.data == NULL) return ENOMEM; in asn1_krb5_realm_copy()
35 memcpy(target->realm.data,source->realm.data, /* to client */ in asn1_krb5_realm_copy()
36 target->realm.length); in asn1_krb5_realm_copy()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_solaris.c96 __profile_get_domain_realm(profile_t profile, char *realm, char ***domains) in __profile_get_domain_realm() argument
98 if (profile == NULL || realm == NULL || domains == NULL) in __profile_get_domain_realm()
101 return (__profile_iter_name_value(profile, "domain_realm", realm, in __profile_get_domain_realm()
192 __profile_set_libdefaults(profile_t profile, char *realm) in __profile_set_libdefaults() argument
197 if (profile == NULL || realm == NULL) in __profile_set_libdefaults()
209 code = profile_add_relation(profile, hierarchy, realm); in __profile_set_libdefaults()
215 __profile_set_kdc(profile_t profile, char *realm, char *kdc, in __profile_set_kdc() argument
221 if (profile == NULL || realm == NULL || kdc == NULL) in __profile_set_kdc()
225 hierarchy[1] = realm; in __profile_set_kdc()
294 __profile_add_domain_mapping(profile_t profile, char *domain, char *realm) in __profile_add_domain_mapping() argument
[all …]
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dcopy_princ.c87 tempprinc->realm.length = inprinc->realm.length; in krb5_copy_principal()
94 tempprinc->realm.data = MALLOC(tempprinc->realm.length + 1); in krb5_copy_principal()
95 if (!tempprinc->realm.data) { in krb5_copy_principal()
103 memcpy(tempprinc->realm.data, inprinc->realm.data, in krb5_copy_principal()
104 inprinc->realm.length); in krb5_copy_principal()
105 tempprinc->realm.data[tempprinc->realm.length] = 0; in krb5_copy_principal()
/titanic_41/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_profile.c231 pkinit_libdefault_strings(krb5_context context, const krb5_data *realm, in pkinit_libdefault_strings() argument
240 if (realm != NULL && realm->length > sizeof(realmstr)-1) in pkinit_libdefault_strings()
243 if (realm != NULL) { in pkinit_libdefault_strings()
245 (void) strlcpy(realmstr, realm->data, realm->length + 1); in pkinit_libdefault_strings()
246 realmstr[realm->length] = '\0'; in pkinit_libdefault_strings()
255 if (realm != NULL) { in pkinit_libdefault_strings()
315 pkinit_libdefault_string(krb5_context context, const krb5_data *realm, in pkinit_libdefault_string() argument
321 retval = pkinit_libdefault_strings(context, realm, option, &values); in pkinit_libdefault_string()
340 pkinit_libdefault_boolean(krb5_context context, const krb5_data *realm, in pkinit_libdefault_boolean() argument
347 retval = pkinit_libdefault_string(context, realm, option, &string); in pkinit_libdefault_boolean()
[all …]
/titanic_41/usr/src/cmd/krb5/kadmin/kclient/
H A Dkclient.sh152 …rincipal: Principal or policy already exists while creating \"$service_princ@$realm\".")" $TMP_FILE
155 egrep -s "$(gettext "Principal \"$service_princ@$realm\" created.")" $TMP_FILE
170 egrep -s "$service_princ@$realm" $TMP_FILE
209 printf "\tdefault_realm = $realm\n" 1>&3
213 printf "\t$kdc = $realm\n" 1>&3
216 printf "\t$FKDC = $realm\n" 1>&3
217 printf "\t$client_machine = $realm\n" 1>&3
219 printf "\t.$domain = $realm\n\n" 1>&3
221 printf "\t.$short_fqdn = $realm\n\n" 1>&3
225 printf "\t$dh = $realm\n" 1>&3
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_findrealm.c36 krb5_principal princ, krb5_data *realm) { in krb5_kt_find_realm() argument
51 memcpy(&tmp_realm, &ent.principal->realm, sizeof (krb5_data)); in krb5_kt_find_realm()
52 memcpy(&ent.principal->realm, &princ->realm, in krb5_kt_find_realm()
58 memcpy(&ent.principal->realm, &tmp_realm, sizeof (krb5_data)); in krb5_kt_find_realm()
66 &ent.principal->realm, realm); in krb5_kt_find_realm()
H A Dktfns.c60 if (krb5_is_referral_realm(&principal->realm)) { in krb5_kt_get_entry()
61 char *realm; in krb5_kt_get_entry() local
64 err = krb5_get_default_realm(context, &realm); in krb5_kt_get_entry()
67 princ_data.realm.data = realm; in krb5_kt_get_entry()
68 princ_data.realm.length = strlen(realm); in krb5_kt_get_entry()
73 krb5_free_default_realm(context, princ_data.realm.data); in krb5_kt_get_entry()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dget_creds.c314 if (in_creds.server->realm.length < in_creds.client->realm.length) in krb5_validate_or_renew_creds()
315 if ((in_creds.server->realm.data = in krb5_validate_or_renew_creds()
316 (char *) realloc(in_creds.server->realm.data, in krb5_validate_or_renew_creds()
317 in_creds.client->realm.length)) == NULL) { in krb5_validate_or_renew_creds()
322 in_creds.server->realm.length = in_creds.client->realm.length; in krb5_validate_or_renew_creds()
323 memcpy(in_creds.server->realm.data, in_creds.client->realm.data, in krb5_validate_or_renew_creds()
324 in_creds.client->realm.length); in krb5_validate_or_renew_creds()
327 in_creds.client->realm.length, in krb5_validate_or_renew_creds()
328 in_creds.client->realm.data, in krb5_validate_or_renew_creds()
331 in_creds.client->realm.length, in krb5_validate_or_renew_creds()
[all …]
H A Dset_realm.c34 krb5_set_principal_realm(krb5_context context, krb5_principal principal, const char *realm) in krb5_set_principal_realm() argument
39 if (!realm || !*realm) in krb5_set_principal_realm()
42 length = strlen(realm); in krb5_set_principal_realm()
46 strcpy(newrealm, realm); in krb5_set_principal_realm()
H A Dconv_princ.c158 char *name, char *inst, char *realm) in krb5_524_conv_principal() argument
242 strncpy(realm, compo->data, compo->length); in krb5_524_conv_principal()
243 realm[compo->length] = '\0'; in krb5_524_conv_principal()
248 strncpy(realm, tmp_realm, tmp_realm_len); in krb5_524_conv_principal()
249 realm[tmp_realm_len] = '\0'; in krb5_524_conv_principal()
259 const char *instance, const char *realm, in krb5_425_conv_principal() argument
288 …val == 0) && (v4realms != NULL) && (v4realms [0] != NULL) && (strcmp (v4realms [0], realm) == 0)) { in krb5_425_conv_principal()
289 realm = realm_name; in krb5_425_conv_principal()
329 names[1] = realm; in krb5_425_conv_principal()
339 retval = krb5_get_realm_domain(context, realm, &domain); in krb5_425_conv_principal()
[all …]
H A Dappdefault.c38 …ppdefault_get(krb5_context context, const char *appname, const krb5_data *realm, const char *optio… in appdefault_get() argument
44 const char * realmstr = realm?realm->data:NULL; in appdefault_get()
139 krb5_appdefault_boolean(krb5_context context, const char *appname, const krb5_data *realm, const ch… in krb5_appdefault_boolean() argument
144 retval = appdefault_get(context, appname, realm, option, &string); in krb5_appdefault_boolean()
154 krb5_appdefault_string(krb5_context context, const char *appname, const krb5_data *realm, const cha… in krb5_appdefault_string() argument
159 retval = appdefault_get(context, appname, realm, option, &string); in krb5_appdefault_string()
H A Dget_in_tkt.c88 krb5_data *realm,
691 &request.server->realm, in krb5_get_in_tkt()
789 krb5_libdefault_string(krb5_context context, const krb5_data *realm, in krb5_libdefault_string() argument
798 if (realm->length > sizeof(realmstr)-1) in krb5_libdefault_string()
801 strncpy(realmstr, realm->data, realm->length); in krb5_libdefault_string()
802 realmstr[realm->length] = '\0'; in krb5_libdefault_string()
865 krb5_libdefault_boolean(krb5_context context, const krb5_data *realm, in krb5_libdefault_boolean() argument
871 retval = krb5_libdefault_string(context, realm, option, &string); in krb5_libdefault_boolean()
885 sort_krb5_padata_sequence(krb5_context context, krb5_data *realm, in sort_krb5_padata_sequence() argument
900 ret = krb5_libdefault_string(context, realm, "preferred_preauth_types", in sort_krb5_padata_sequence()
[all …]
H A Dgic_keytab.c125 if (krb5_is_referral_realm(&client->realm)) { in krb5_get_init_creds_keytab()
126 krb5_data realm; in krb5_get_init_creds_keytab() local
127 ret = krb5_kt_find_realm(context, keytab, client, &realm); in krb5_get_init_creds_keytab()
129 krb5_free_data_contents(context, &client->realm); in krb5_get_init_creds_keytab()
130 client->realm.length = realm.length; in krb5_get_init_creds_keytab()
131 client->realm.data = realm.data; in krb5_get_init_creds_keytab()
H A Dbld_princ.c36 …al_va(krb5_context context, krb5_principal princ, unsigned int rlen, const char *realm, va_list ap) in krb5_build_principal_va() argument
57 memcpy(tmpdata, realm, rlen); in krb5_build_principal_va()
96 const char * realm, ...) in krb5_build_principal() argument
105 va_start(ap, realm); in krb5_build_principal()
106 retval = krb5_build_principal_va(context, pr_ret, rlen, realm, ap); in krb5_build_principal()
/titanic_41/usr/src/cmd/krb5/kadmin/dbutil/
H A Dkadm5_create.c56 char *name, char *realm, int attrs, int lifetime);
64 static int add_admin_princs(void *handle, krb5_context context, char *realm);
133 retval = add_admin_princs(handle, context, params->realm); in kadm5_create_magic_princs()
159 static char *build_name_with_realm(char *name, char *realm) in build_name_with_realm() argument
163 n = (char *) malloc(strlen(name) + strlen(realm) + 2); in build_name_with_realm()
164 sprintf(n, "%s@%s", name, realm); in build_name_with_realm()
188 static int add_admin_princs(void *handle, krb5_context context, char *realm) in add_admin_princs() argument
202 KADM5_ADMIN_SERVICE, realm, in add_admin_princs()
209 KADM5_CHANGEPW_SERVICE, realm, in add_admin_princs()
381 char *name, char *realm, int attrs, int lifetime) in add_admin_old_princ() argument
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/include/
H A Dprofile.h132 long __profile_add_domain_mapping(profile_t profile, char *domain, char *realm);
133 long __profile_remove_domain_mapping(profile_t profile, char *realm);
134 long __profile_get_realm_entry(profile_t profile, char *realm, char *name,
136 long __profile_add_realm_entry(profile_t profile, char *realm, char *name,
138 long __profile_get_default_realm(profile_t profile, char **realm);
140 long __profile_add_realm(profile_t profile, char *realm, char *master,
142 long __profile_remove_xrealm_mapping(profile_t profile, char *realm);
143 long __profile_remove_realm(profile_t profile, char *realm);
/titanic_41/usr/src/lib/krb5/kadm5/srv/
H A Dserver_kdb.c58 char *realm; in kdb_init_master() local
65 if ((ret = krb5_get_default_realm(handle->context, &realm))) in kdb_init_master()
68 realm = r; in kdb_init_master()
73 realm, NULL, &master_princ))) in kdb_init_master()
100 free(realm); in kdb_init_master()
134 char *realm, *hist_name; in kdb_init_hist() local
139 if ((ret = krb5_get_default_realm(handle->context, &realm))) in kdb_init_hist()
142 realm = r; in kdb_init_hist()
146 strlen(realm) + 2)) == NULL) in kdb_init_hist()
149 (void) sprintf(hist_name, "%s@%s", KADM5_HIST_PRINCIPAL, realm); in kdb_init_hist()
[all …]
/titanic_41/usr/src/cmd/krb5/krb5kdc/
H A Dkdc_util.c572 char *realm; in add_to_transited() local
588 realm = data2string(krb5_princ_realm(kdc_context, tgs)); in add_to_transited()
589 if (realm == NULL) in add_to_transited()
594 free(realm); in add_to_transited()
603 if (!(trans = (char *) malloc(strlen(realm) + strlen(otrans) + 3))) { in add_to_transited()
639 added = (krb5_princ_realm(kdc_context, client)->length == strlen(realm) && in add_to_transited()
640 !strncmp(krb5_princ_realm(kdc_context, client)->data, realm, strlen(realm))) || in add_to_transited()
641 (krb5_princ_realm(kdc_context, server)->length == strlen(realm) && in add_to_transited()
642 !strncmp(krb5_princ_realm(kdc_context, server)->data, realm, strlen(realm))); in add_to_transited()
697 if (!strcmp(exp, realm)) added = TRUE; in add_to_transited()
[all …]
H A Dmain.c111 if (!(newrealm = find_realm_data(sprinc->realm.data, in setup_server_realm()
112 (krb5_ui_4) sprinc->realm.length))) in setup_server_realm()
161 init_realm(krb5_context kcontext, char *progname, kdc_realm_t *rdp, char *realm, argument
170 if (!realm) {
175 rdp->realm_name = realm;
179 realm);
252 if ((kret = krb5_set_default_realm(rdp->realm_context, realm))) {
254 realm);
271 gettext("while initializing database for realm %s"), realm);
281 rdp->realm_mpname, realm);
[all …]
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dauth-krb4.c105 char localhost[MAXHOSTNAMELEN], phost[INST_SZ], realm[REALM_SZ]; in auth_krb4_password() local
116 if (pw->pw_uid != 0 && krb_get_lrealm(realm, 1) == KSUCCESS) { in auth_krb4_password()
124 r = krb_get_pw_in_tkt((char *) pw->pw_name, "", realm, in auth_krb4_password()
125 "krbtgt", realm, DEFAULT_TKT_LIFE, (char *)password); in auth_krb4_password()
142 r = krb_mk_req(&tkt, KRB4_SERVICE_NAME, phost, realm, 33); in auth_krb4_password()
303 creds.realm, pw->pw_name); in auth_krb4_tgt()
312 if (save_credentials(creds.service, creds.instance, creds.realm, in auth_krb4_tgt()
322 creds.pname, creds.pinst[0] ? "." : "", creds.pinst, creds.realm); in auth_krb4_tgt()
359 if (kafs_settoken(creds.realm, uid, &creds)) { in auth_afs_token()
361 creds.pname, creds.realm, pw->pw_name); in auth_afs_token()
[all …]

123456