Lines Matching refs:ent

43 add_tl_data(kadm5_principal_ent_t ent, int16_t type,  in add_tl_data()  argument
61 tl->tl_data_next = ent->tl_data; in add_tl_data()
62 ent->tl_data = tl; in add_tl_data()
63 ent->n_tl_data++; in add_tl_data()
127 hdb_entry_ex ent; in kadm5_s_get_principal() local
129 memset(&ent, 0, sizeof(ent)); in kadm5_s_get_principal()
151 HDB_F_GET_ANY|HDB_F_ADMIN_DATA, 0, &ent); in kadm5_s_get_principal()
159 ret = krb5_copy_principal(context->context, ent.entry.principal, in kadm5_s_get_principal()
163 if(mask & KADM5_PRINC_EXPIRE_TIME && ent.entry.valid_end) in kadm5_s_get_principal()
164 out->princ_expire_time = *ent.entry.valid_end; in kadm5_s_get_principal()
165 if(mask & KADM5_PW_EXPIRATION && ent.entry.pw_end) in kadm5_s_get_principal()
166 out->pw_expiration = *ent.entry.pw_end; in kadm5_s_get_principal()
168 hdb_entry_get_pw_change_time(&ent.entry, &out->last_pwd_change); in kadm5_s_get_principal()
170 out->attributes |= ent.entry.flags.postdate ? 0 : KRB5_KDB_DISALLOW_POSTDATED; in kadm5_s_get_principal()
171 out->attributes |= ent.entry.flags.forwardable ? 0 : KRB5_KDB_DISALLOW_FORWARDABLE; in kadm5_s_get_principal()
172 out->attributes |= ent.entry.flags.initial ? KRB5_KDB_DISALLOW_TGT_BASED : 0; in kadm5_s_get_principal()
173 out->attributes |= ent.entry.flags.renewable ? 0 : KRB5_KDB_DISALLOW_RENEWABLE; in kadm5_s_get_principal()
174 out->attributes |= ent.entry.flags.proxiable ? 0 : KRB5_KDB_DISALLOW_PROXIABLE; in kadm5_s_get_principal()
175 out->attributes |= ent.entry.flags.invalid ? KRB5_KDB_DISALLOW_ALL_TIX : 0; in kadm5_s_get_principal()
176 out->attributes |= ent.entry.flags.require_preauth ? KRB5_KDB_REQUIRES_PRE_AUTH : 0; in kadm5_s_get_principal()
177 out->attributes |= ent.entry.flags.require_pwchange ? KRB5_KDB_REQUIRES_PWCHANGE : 0; in kadm5_s_get_principal()
178 out->attributes |= ent.entry.flags.server ? 0 : KRB5_KDB_DISALLOW_SVR; in kadm5_s_get_principal()
179 out->attributes |= ent.entry.flags.change_pw ? KRB5_KDB_PWCHANGE_SERVICE : 0; in kadm5_s_get_principal()
180 out->attributes |= ent.entry.flags.ok_as_delegate ? KRB5_KDB_OK_AS_DELEGATE : 0; in kadm5_s_get_principal()
181 out->attributes |= ent.entry.flags.trusted_for_delegation ? KRB5_KDB_TRUSTED_FOR_DELEGATION : 0; in kadm5_s_get_principal()
182 out->attributes |= ent.entry.flags.allow_kerberos4 ? KRB5_KDB_ALLOW_KERBEROS4 : 0; in kadm5_s_get_principal()
183 out->attributes |= ent.entry.flags.allow_digest ? KRB5_KDB_ALLOW_DIGEST : 0; in kadm5_s_get_principal()
186 if(ent.entry.max_life) in kadm5_s_get_principal()
187 out->max_life = *ent.entry.max_life; in kadm5_s_get_principal()
192 if(ent.entry.modified_by) in kadm5_s_get_principal()
193 out->mod_date = ent.entry.modified_by->time; in kadm5_s_get_principal()
195 out->mod_date = ent.entry.created_by.time; in kadm5_s_get_principal()
198 if(ent.entry.modified_by) { in kadm5_s_get_principal()
199 if (ent.entry.modified_by->principal != NULL) in kadm5_s_get_principal()
201 ent.entry.modified_by->principal, in kadm5_s_get_principal()
203 } else if(ent.entry.created_by.principal != NULL) in kadm5_s_get_principal()
205 ent.entry.created_by.principal, in kadm5_s_get_principal()
214 out->kvno = ent.entry.kvno; in kadm5_s_get_principal()
218 for(n = 0; n < ent.entry.keys.len; n++) in kadm5_s_get_principal()
219 if(ent.entry.keys.val[n].mkvno) { in kadm5_s_get_principal()
220 out->mkvno = *ent.entry.keys.val[n].mkvno; /* XXX this isn't right */ in kadm5_s_get_principal()
237 ext = hdb_find_extension(&ent.entry, choice_HDB_extension_data_policy); in kadm5_s_get_principal()
250 if(ent.entry.max_renew) in kadm5_s_get_principal()
251 out->max_renewable_life = *ent.entry.max_renew; in kadm5_s_get_principal()
257 size_t n_keys = ent.entry.keys.len; in kadm5_s_get_principal()
263 ret = hdb_prune_keys(context->context, &ent.entry); in kadm5_s_get_principal()
266 ext = hdb_find_extension(&ent.entry, choice_HDB_extension_data_hist_keys); in kadm5_s_get_principal()
270 krb5_get_pw_salt(context->context, ent.entry.principal, &salt); in kadm5_s_get_principal()
279 ret = copy_keyset_to_kadm5(context, ent.entry.kvno, ent.entry.keys.len, in kadm5_s_get_principal()
280 ent.entry.keys.val, &salt, out); in kadm5_s_get_principal()
301 ret = hdb_entry_get_pw_change_time(&ent.entry, &last_pw_expire); in kadm5_s_get_principal()
317 context->db, &ent.entry, &pw); in kadm5_s_get_principal()
325 ret = hdb_entry_get_pkinit_acl(&ent.entry, &acl); in kadm5_s_get_principal()
345 ret = hdb_entry_get_aliases(&ent.entry, &aliases); in kadm5_s_get_principal()
369 hdb_free_entry(context->context, &ent); in kadm5_s_get_principal()