Pretty.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3665 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
23
admin/get.c
23
admin/get.c
@@ -96,7 +96,7 @@ get_entry(int argc, char **argv)
|
|||||||
name = NULL;
|
name = NULL;
|
||||||
printf("Created by %s at %s\n",
|
printf("Created by %s at %s\n",
|
||||||
name ? name : "<unknown>",
|
name ? name : "<unknown>",
|
||||||
time2str(ent.created_by.time));
|
time2rstr(ent.created_by.time));
|
||||||
free (name);
|
free (name);
|
||||||
if (ent.modified_by) {
|
if (ent.modified_by) {
|
||||||
if (ent.modified_by->principal)
|
if (ent.modified_by->principal)
|
||||||
@@ -105,24 +105,27 @@ get_entry(int argc, char **argv)
|
|||||||
name = NULL;
|
name = NULL;
|
||||||
printf("Last modified by %s at %s\n",
|
printf("Last modified by %s at %s\n",
|
||||||
name ? name : "<unknown>",
|
name ? name : "<unknown>",
|
||||||
time2str(ent.modified_by->time));
|
time2rstr(ent.modified_by->time));
|
||||||
free (name);
|
free (name);
|
||||||
}
|
}
|
||||||
if (ent.valid_start) {
|
if (ent.valid_start) {
|
||||||
printf("Valid from %s\n", time2str(*ent.valid_start));
|
printf("Valid from %s\n", time2rstr(*ent.valid_start));
|
||||||
}
|
}
|
||||||
if (ent.valid_end) {
|
if (ent.valid_end) {
|
||||||
printf("Valid till %s\n", time2str(*ent.valid_end));
|
printf("Valid till %s\n", time2rstr(*ent.valid_end));
|
||||||
}
|
}
|
||||||
if (ent.pw_end) {
|
if (ent.pw_end) {
|
||||||
printf("Password expires at %s\n", time2str(*ent.pw_end));
|
printf("Password expires at %s\n", time2rstr(*ent.pw_end));
|
||||||
}
|
}
|
||||||
printf("Kvno: %d\n", ent.kvno);
|
printf("Keys: kvno = %d", ent.kvno);
|
||||||
printf("Keys: ");
|
|
||||||
for(i = 0; i < ent.keys.len; i++){
|
for(i = 0; i < ent.keys.len; i++){
|
||||||
if(i) printf(", ");
|
char *str;
|
||||||
printf("type = %d, len = %d", ent.keys.val[i].key.keytype,
|
printf(", ");
|
||||||
ent.keys.val[i].key.keyvalue.length);
|
if(i == 0)
|
||||||
|
printf("type = ");
|
||||||
|
krb5_keytype_to_string(context, ent.keys.val[i].key.keytype, &str);
|
||||||
|
printf("%s", str);
|
||||||
|
free(str);
|
||||||
}
|
}
|
||||||
printf("\nFlags: ");
|
printf("\nFlags: ");
|
||||||
print_hdbflags (stdout, ent.flags);
|
print_hdbflags (stdout, ent.flags);
|
||||||
|
Reference in New Issue
Block a user