diff options
author | Kai Blin <kai@samba.org> | 2008-05-19 15:35:36 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2008-06-10 09:46:24 +0200 |
commit | 2eaef96387fb60914e80b475708d27a40e07cc68 (patch) | |
tree | 9353366ef1114e5f70f48d1e7ccacfbdd185a15f /source3 | |
parent | b0d81625252e5afe94ab27e6d3d134de99d5abb9 (diff) | |
download | samba-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')
-rw-r--r-- | source3/utils/net_afs.c | 25 |
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); } |