1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

net: Make "net afs" use functable3

(This used to be commit aa60f3c0d5)
This commit is contained in:
Kai Blin 2008-05-19 15:35:36 +02:00
parent b0d8162525
commit 2eaef96387

View File

@ -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);
}