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