2 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 #pragma ident "%Z%%M% %I% %E% SMI"
9 * Contains kadmin.local specific code.
23 "%s: %s [-r realm] [-p principal] [-q query] "
24 "[-d dbname] [-e \"enc:salt ...\"] [-m] [-D]\n",
25 gettext("Usage"), whoami
);
32 * Turns on low level debugging in db module
33 * Requires that db library be compiled with -DDEBUG_DB flag
37 debugEnable(int displayMsgs
)
41 debugDisplayDB(displayMsgs
);
45 /* Solaris Kerberos: not supported */
46 /* debugDisplaySS(displayMsgs); */
52 kadmin_getprivs(argc
, argv
)
56 static char *privs
[] = {"GET", "ADD", "MODIFY", "DELETE", "LIST",
58 krb5_error_code retval
;
62 /* for kadmin.local return all privilages */
64 printf(gettext("current privileges:"));
65 for (i
= 0; i
< sizeof (privs
) / 4; i
++) {
66 printf(" %s", gettext(privs
[i
]));