Lines Matching refs:ent

302 	krb5_db_entry *ent;
309 ent = entries;
331 if ((ret = krb5_db_get_principal_nolock(context, ent->princ, &curr,
356 find_changed_attrs(&curr, ent, attr_types, &nattrs);
364 if (ent->attributes >= 0) {
368 (uint32_t)ent->attributes;
373 if (ent->max_life >= 0) {
377 (uint32_t)ent->max_life;
382 if (ent->max_renewable_life >= 0) {
387 (uint32_t)ent->max_renewable_life;
392 if (ent->expiration >= 0) {
396 (uint32_t)ent->expiration;
401 if (ent->pw_expiration >= 0) {
405 (uint32_t)ent->pw_expiration;
410 if (ent->last_success >= 0) {
415 (uint32_t)ent->last_success;
420 if (ent->last_failed >= 0) {
425 (uint32_t)ent->last_failed;
430 if (ent->fail_auth_count >= (krb5_kvno)0) {
435 (uint32_t)ent->fail_auth_count;
440 if (ent->princ->length > 0) {
443 if ((ret = conv_princ_2ulog(ent->princ,
453 if (ent->n_key_data >= 0) {
456 ULOG_ENTRY(upd, final).av_keydata.av_keydata_len = ent->n_key_data;
458 ULOG_ENTRY(upd, final).av_keydata.av_keydata_val = malloc(ent->n_key_data * sizeof (kdbe_key_t));
464 for (j = 0; j < ent->n_key_data; j++) {
465 ULOG_ENTRY_KEYVAL(upd, final, j).k_ver = ent->key_data[j].key_data_ver;
466 ULOG_ENTRY_KEYVAL(upd, final, j).k_kvno = ent->key_data[j].key_data_kvno;
467 ULOG_ENTRY_KEYVAL(upd, final, j).k_enctype.k_enctype_len = ent->key_data[j].key_data_ver;
468 ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_len = ent->key_data[j].key_data_ver;
470 ULOG_ENTRY_KEYVAL(upd, final, j).k_enctype.k_enctype_val = malloc(ent->key_data[j].key_data_ver * sizeof(int32_t));
476 ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_val = malloc(ent->key_data[j].key_data_ver * sizeof(utf8str_t));
482 for (cnt = 0; cnt < ent->key_data[j].key_data_ver; cnt++) {
483 ULOG_ENTRY_KEYVAL(upd, final, j).k_enctype.k_enctype_val[cnt] = ent->key_data[j].key_data_type[cnt];
484 ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_val[cnt].utf8str_t_len = ent->key_data[j].key_data_length[cnt];
485 ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_val[cnt].utf8str_t_val = malloc(ent->key_data[j].key_data_length[cnt] * sizeof (char));
490 (void) memcpy(ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_val[cnt].utf8str_t_val, ent->key_data[j].key_data_contents[cnt], ent->key_data[j].key_data_length[cnt]);
498 ent, &tmpint);
507 context, ent, &tmpint, &tmpprinc))) {
525 newtl = ent->tl_data;
537 ULOG_ENTRY(upd, final).av_tldata.av_tldata_val = malloc(ent->n_tl_data * sizeof(kdbe_tl_t));
567 (int16_t)ent->len;
588 ent++;
596 * for the db2 records (pointed to by krb5_db_entry *ent), prior
605 krb5_db_entry *ent;
611 ent = entries;
649 ret = krb5_db_get_principal(context, dbprinc, ent, &nprincs,
656 * Set ent->n_tl_data = 0 initially, if this is an ADD update
659 ent->n_tl_data = 0;
667 ent->attributes = (krb5_flags) u.av_attrflags;
671 ent->max_life = (krb5_deltat) u.av_max_life;
675 ent->max_renewable_life = (krb5_deltat) u.av_max_renew_life;
679 ent->expiration = (krb5_timestamp) u.av_exp;
683 ent->pw_expiration = (krb5_timestamp) u.av_pw_exp;
687 ent->last_success = (krb5_timestamp) u.av_last_success;
691 ent->last_failed = (krb5_timestamp) u.av_last_failed;
695 ent->fail_auth_count = (krb5_kvno) u.av_fail_auth_count;
703 krb5_free_principal(context, ent->princ);
704 ent->princ = tmpprinc;
710 prev_n_keys = ent->n_key_data;
713 ent->n_key_data = (krb5_int16)u.av_keydata.av_keydata_len;
715 ent->key_data = NULL;
717 ent->key_data = (krb5_key_data *)realloc(ent->key_data,
718 (ent->n_key_data *
723 if (ent->key_data == NULL)
728 for (j = prev_n_keys; j < ent->n_key_data; j++) {
730 ent->key_data[j].key_data_contents[cnt] = NULL;
733 for (j = 0; j < ent->n_key_data; j++) {
734 krb5_key_data *kp = &ent->key_data[j];
786 if ((ret = krb5_dbe_update_tl_data(context, ent, newtl)))
801 if ((ret = krb5_dbe_update_last_pwd_change(context, ent,
818 ent->len = (krb5_int16) u.av_len;
831 ret = krb5_dbe_update_mod_princ_data(context, ent,
844 ent++;