2 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
8 * Contains remote client specific code.
23 "%s: %s [-r realm] [-p principal] [-q query] "
24 "[-s admin_server[:port]] [[-c ccache]|[-k [-t keytab]]"
26 gettext("Usage"), whoami
);
32 * Debugging function - for remote admin client
36 debugEnable(int displayMsgs
)
40 /* Solaris Kerberos: not supported */
41 /* debugDisplaySS(displayMsgs); */
46 kadmin_getprivs(argc
, argv
)
50 static char *privs
[] = {"GET", "ADD", "MODIFY", "DELETE", "LIST", "CHANGE"};
51 krb5_error_code retval
;
56 fprintf(stderr
, "%s: get_privs\n", gettext("usage"));
59 retval
= kadm5_get_privs(handle
, &plist
);
61 com_err("get_privs", retval
,
62 gettext("while retrieving privileges"));
65 printf(gettext("current privileges:"));
66 for (i
= 0; i
< sizeof (privs
) / sizeof (char *); i
++) {
68 printf(" %s", gettext(privs
[i
]));