diff options
| author | Marc Horowitz <marc@mit.edu> | 1996-07-22 20:49:46 +0000 |
|---|---|---|
| committer | Marc Horowitz <marc@mit.edu> | 1996-07-22 20:49:46 +0000 |
| commit | edf8b4d8a6a665c2aa150993cd813ea6c5cf12e1 (patch) | |
| tree | 6c2974a97b448c040fa4a31708ec5e02f187526c /src/admin/edit/dumpv4.c | |
| parent | 013bb1391582ed9e653ae706e398ddb8d08cfcc9 (diff) | |
| download | krb5-edf8b4d8a6a665c2aa150993cd813ea6c5cf12e1.tar.gz krb5-edf8b4d8a6a665c2aa150993cd813ea6c5cf12e1.tar.xz krb5-edf8b4d8a6a665c2aa150993cd813ea6c5cf12e1.zip | |
this commit includes all the changes on the OV_9510_INTEGRATION and
OV_MERGE branches. This includes, but is not limited to, the new openvision
admin system, and major changes to gssapi to add functionality, and bring
the implementation in line with rfc1964. before committing, the
code was built and tested for netbsd and solaris.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8774 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/admin/edit/dumpv4.c')
| -rw-r--r-- | src/admin/edit/dumpv4.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/admin/edit/dumpv4.c b/src/admin/edit/dumpv4.c index 7943e1bc2d..ef2eac6929 100644 --- a/src/admin/edit/dumpv4.c +++ b/src/admin/edit/dumpv4.c @@ -112,7 +112,8 @@ dump_v4_iterator(ptr, entry) krb5_db_entry *entry; { struct dump_record *arg = (struct dump_record *) ptr; - krb5_tl_mod_princ *mod_princ = NULL; + krb5_principal mod_princ; + krb5_timestamp mod_time; krb5_error_code retval; int i, max_kvno, ok_key; @@ -152,12 +153,13 @@ dump_v4_iterator(ptr, entry) strcpy(principal->instance, "*"); /* Now move to mod princ */ - if (retval = krb5_dbe_decode_mod_princ_data(edit_context,entry,&mod_princ)){ + if (retval = krb5_dbe_lookup_mod_princ_data(edit_context,entry, + &mod_time, &mod_princ)){ com_err(arg->comerr_name, retval, "while unparsing db entry"); exit_status++; return retval; } - retval = krb5_524_conv_principal(edit_context, mod_princ->mod_princ, + retval = krb5_524_conv_principal(edit_context, mod_princ, principal->mod_name, principal->mod_instance, principal->mod_realm); if (retval) { @@ -228,7 +230,7 @@ found_one:; } v4_print_time(arg->f, entry->expiration); - v4_print_time(arg->f, mod_princ->mod_date); + v4_print_time(arg->f, mod_time); fprintf(arg->f, " %s %s\n", principal->mod_name, principal->mod_instance); return 0; |
