summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-05-19 15:35:36 +0200
committerKai Blin <kai@samba.org>2008-06-10 09:46:24 +0200
commit2eaef96387fb60914e80b475708d27a40e07cc68 (patch)
tree9353366ef1114e5f70f48d1e7ccacfbdd185a15f /source3/utils
parentb0d81625252e5afe94ab27e6d3d134de99d5abb9 (diff)
downloadsamba-2eaef96387fb60914e80b475708d27a40e07cc68.tar.gz
samba-2eaef96387fb60914e80b475708d27a40e07cc68.tar.bz2
samba-2eaef96387fb60914e80b475708d27a40e07cc68.zip
net: Make "net afs" use functable3
(This used to be commit aa60f3c0d59e2ebb870ae4e79c7c4c51c3e22d68)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_afs.c25
1 files changed, 19 insertions, 6 deletions
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 <filename>\n"
+ " Import kefile from <filename>."
+ },
+ {
+ "impersonate",
+ net_afs_impersonate,
+ NET_TRANSPORT_LOCAL,
+ "Get a user token",
+ "net afs impersonate <user> <cell>\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);
}