(dump_krb4): get expiration date from valid_end' and not
pw_end'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7998 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -127,10 +127,10 @@ dump_krb4(krb5_context context, hdb_entry *ent, int fd)
|
||||
free(p);
|
||||
}
|
||||
|
||||
if (ent->pw_end == NULL)
|
||||
strcat(buf, time2str(60*60*24*365*50)); /* passwd will never expire */
|
||||
if (ent->valid_end == NULL)
|
||||
strcat(buf, time2str(60*60*24*365*50)); /* no expiration */
|
||||
else
|
||||
strcat(buf, time2str(*ent->pw_end));
|
||||
strcat(buf, time2str(*ent->valid_end));
|
||||
strcat(buf, " ");
|
||||
|
||||
if (ent->modified_by == NULL)
|
||||
|
Reference in New Issue
Block a user