From 2eaef96387fb60914e80b475708d27a40e07cc68 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Mon, 19 May 2008 15:35:36 +0200 Subject: net: Make "net afs" use functable3 (This used to be commit aa60f3c0d59e2ebb870ae4e79c7c4c51c3e22d68) --- source3/utils/net_afs.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'source3') diff --git a/source3/utils/net_afs.c b/source3/utils/net_afs.c index f3f2976eb0..cdc029e2df 100644 --- a/source3/utils/net_afs.c +++ b/source3/utils/net_afs.c @@ -90,12 +90,25 @@ int net_afs_impersonate(struct net_context *c, int argc, int net_afs(struct net_context *c, int argc, const char **argv) { - struct functable func[] = { - {"key", net_afs_key}, - {"impersonate", net_afs_impersonate}, - {"help", net_afs_usage}, - {NULL, NULL} + struct functable3 func[] = { + { + "key", + net_afs_key, + NET_TRANSPORT_LOCAL, + "Import an OpenAFS keyfile", + "net afs key \n" + " Import kefile from ." + }, + { + "impersonate", + net_afs_impersonate, + NET_TRANSPORT_LOCAL, + "Get a user token", + "net afs impersonate \n" + " Create token for user@cell" + }, + {NULL, NULL, 0, NULL, NULL} }; - return net_run_function(c, argc, argv, func, net_afs_usage); + return net_run_function3(c, argc, argv, "net afs", func); } -- cgit