Lines Matching refs:ent

39 add_tl_data(kadm5_principal_ent_t ent, int16_t type,
57 tl->tl_data_next = ent->tl_data;
58 ent->tl_data = tl;
59 ent->n_tl_data++;
75 hdb_entry_ex ent;
77 memset(&ent, 0, sizeof(ent));
82 HDB_F_DECRYPT|HDB_F_GET_ANY|HDB_F_ADMIN_DATA, 0, &ent);
89 ret = krb5_copy_principal(context->context, ent.entry.principal,
93 if(mask & KADM5_PRINC_EXPIRE_TIME && ent.entry.valid_end)
94 out->princ_expire_time = *ent.entry.valid_end;
95 if(mask & KADM5_PW_EXPIRATION && ent.entry.pw_end)
96 out->pw_expiration = *ent.entry.pw_end;
98 hdb_entry_get_pw_change_time(&ent.entry, &out->last_pwd_change);
100 out->attributes |= ent.entry.flags.postdate ? 0 : KRB5_KDB_DISALLOW_POSTDATED;
101 out->attributes |= ent.entry.flags.forwardable ? 0 : KRB5_KDB_DISALLOW_FORWARDABLE;
102 out->attributes |= ent.entry.flags.initial ? KRB5_KDB_DISALLOW_TGT_BASED : 0;
103 out->attributes |= ent.entry.flags.renewable ? 0 : KRB5_KDB_DISALLOW_RENEWABLE;
104 out->attributes |= ent.entry.flags.proxiable ? 0 : KRB5_KDB_DISALLOW_PROXIABLE;
105 out->attributes |= ent.entry.flags.invalid ? KRB5_KDB_DISALLOW_ALL_TIX : 0;
106 out->attributes |= ent.entry.flags.require_preauth ? KRB5_KDB_REQUIRES_PRE_AUTH : 0;
107 out->attributes |= ent.entry.flags.server ? 0 : KRB5_KDB_DISALLOW_SVR;
108 out->attributes |= ent.entry.flags.change_pw ? KRB5_KDB_PWCHANGE_SERVICE : 0;
109 out->attributes |= ent.entry.flags.ok_as_delegate ? KRB5_KDB_OK_AS_DELEGATE : 0;
110 out->attributes |= ent.entry.flags.trusted_for_delegation ? KRB5_KDB_TRUSTED_FOR_DELEGATION : 0;
111 out->attributes |= ent.entry.flags.allow_kerberos4 ? KRB5_KDB_ALLOW_KERBEROS4 : 0;
112 out->attributes |= ent.entry.flags.allow_digest ? KRB5_KDB_ALLOW_DIGEST : 0;
115 if(ent.entry.max_life)
116 out->max_life = *ent.entry.max_life;
121 if(ent.entry.modified_by)
122 out->mod_date = ent.entry.modified_by->time;
124 out->mod_date = ent.entry.created_by.time;
127 if(ent.entry.modified_by) {
128 if (ent.entry.modified_by->principal != NULL)
130 ent.entry.modified_by->principal,
132 } else if(ent.entry.created_by.principal != NULL)
134 ent.entry.created_by.principal,
143 out->kvno = ent.entry.kvno;
147 for(n = 0; n < ent.entry.keys.len; n++)
148 if(ent.entry.keys.val[n].mkvno) {
149 out->mkvno = *ent.entry.keys.val[n].mkvno; /* XXX this isn't right */
166 if(ent.entry.max_renew)
167 out->max_renewable_life = *ent.entry.max_renew;
177 krb5_get_pw_salt(context->context, ent.entry.principal, &salt);
178 out->key_data = malloc(ent.entry.keys.len * sizeof(*out->key_data));
179 if (out->key_data == NULL && ent.entry.keys.len != 0) {
183 for(i = 0; i < ent.entry.keys.len; i++){
184 key = &ent.entry.keys.val[i];
187 kd->key_data_kvno = ent.entry.kvno;
229 ret = hdb_entry_get_pw_change_time(&ent.entry, &last_pw_expire);
247 context->db, &ent.entry, &pw);
255 ret = hdb_entry_get_pkinit_acl(&ent.entry, &acl);
281 ret = hdb_entry_get_aliases(&ent.entry, &aliases);
309 hdb_free_entry(context->context, &ent);