summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-04-23 08:40:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:37 -0500
commit1ee9650a1dfa28badac1f37b4c14fca920c6330c (patch)
tree93eff73551f46617de97c27f999913cebb6d8d5c /source3/utils
parentb9c4009037079bddb032d582d59e9e4c7b6ceb6e (diff)
downloadsamba-1ee9650a1dfa28badac1f37b4c14fca920c6330c.tar.gz
samba-1ee9650a1dfa28badac1f37b4c14fca920c6330c.tar.bz2
samba-1ee9650a1dfa28badac1f37b4c14fca920c6330c.zip
r22479: Add "net ads keytab list".
Guenther (This used to be commit 9ec76c542775ae58ff03f42ebfa1acc1a63a1bb1)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c10
1 files changed, 9 insertions, 1 deletions
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 <COMMAND>\n"\
"<COMMAND> 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}
};