From 1ee9650a1dfa28badac1f37b4c14fca920c6330c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 23 Apr 2007 08:40:54 +0000 Subject: r22479: Add "net ads keytab list". Guenther (This used to be commit 9ec76c542775ae58ff03f42ebfa1acc1a63a1bb1) --- source3/utils/net_ads.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index f5a3c36264..37ede28a97 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -2397,10 +2397,11 @@ static int net_ads_keytab_usage(int argc, const char **argv) d_printf( "net ads keytab \n"\ " can be either:\n"\ -" CREATE Creates a fresh keytab\n"\ " ADD Adds new service principal\n"\ +" CREATE Creates a fresh keytab\n"\ " FLUSH Flushes out all keytab entries\n"\ " HELP Prints this help message\n"\ +" LIST List the keytab\n"\ "The ADD command will take arguments, the other commands\n"\ "will not take any arguments. The arguments given to ADD\n"\ "should be a list of principals to add. For example, \n"\ @@ -2455,6 +2456,12 @@ static int net_ads_keytab_create(int argc, const char **argv) return ret; } +static int net_ads_keytab_list(int argc, const char **argv) +{ + return ads_keytab_list(); +} + + int net_ads_keytab(int argc, const char **argv) { struct functable func[] = { @@ -2462,6 +2469,7 @@ int net_ads_keytab(int argc, const char **argv) {"ADD", net_ads_keytab_add}, {"FLUSH", net_ads_keytab_flush}, {"HELP", net_ads_keytab_usage}, + {"LIST", net_ads_keytab_list}, {NULL, NULL} }; -- cgit