/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This module will parse the update logs on the master or slave servers.
*/
#include <stdio.h>
#include <libintl.h>
#include <time.h>
#include <limits.h>
#include <locale.h>
#include <syslog.h>
static char *progname;
static void
usage()
{
progname);
exit(1);
}
/*
* Print the individual types if verbose mode was specified.
*/
static void
{
switch (type) {
case AT_ATTRFLAGS:
break;
case AT_MAX_LIFE:
break;
case AT_MAX_RENEW_LIFE:
break;
case AT_EXP:
break;
case AT_PW_EXP:
break;
case AT_LAST_SUCCESS:
break;
case AT_LAST_FAILED:
break;
case AT_FAIL_AUTH_COUNT:
break;
case AT_PRINC:
break;
case AT_KEYDATA:
break;
case AT_TL_DATA:
break;
case AT_LEN:
break;
case AT_MOD_PRINC:
break;
case AT_MOD_TIME:
break;
case AT_MOD_WHERE:
break;
case AT_PW_LAST_CHANGE:
break;
case AT_PW_POLICY:
break;
case AT_PW_POLICY_SWITCH:
break;
case AT_PW_HIST_KVNO:
break;
case AT_PW_HIST:
break;
} /* switch */
}
/*
* Print the update entry information
*/
static void
{
char *dbprinc;
else
/*
* Check for corrupt update entry
*/
gettext("Corrupt update entry\n\n"));
exit(1);
}
exit(1);
}
(void) printf("---\n");
if (upd.kdb_deleted)
else
"principal name\n\n"));
exit(1);
}
else
if (verbose)
if (dbprinc)
} /* for */
}
int
{
int c;
#if !defined(TEXT_DOMAIN)
#endif /* TEXT_DOMAIN */
(void) textdomain(TEXT_DOMAIN);
gettext("kproplog must be run as root\n\n"));
exit(1);
}
switch (c) {
case 'h':
headeronly = TRUE;
break;
case 'e':
break;
case 'v':
break;
default:
usage();
}
}
if (krb5_init_context(&context)) {
gettext("Unable to initialize Kerberos\n\n"));
exit(1);
}
gettext("Couldn't read database_name\n\n"));
exit(1);
}
exit(1);
}
if (log_ctx)
else {
exit(1);
}
gettext("Corrupt header log, exiting\n\n"));
exit(1);
}
case KDB_STABLE:
break;
case KDB_UNSTABLE:
break;
case KDB_CORRUPT:
break;
default:
break;
}
if (ulog->kdb_last_sno == 0)
else {
if (ulog->kdb_first_sno == 0)
else {
}
}
} else {
else {
}
}
}
(void) printf("\n");
return (0);
}