summaryrefslogtreecommitdiff
path: root/source3/utils/net_help.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-06-21 08:35:30 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-06-21 08:35:30 +0000
commit668a9af94eebd7cc875a1f0c7d9fbcb135fb5c61 (patch)
tree39f2ce1726b96d0fa4cd70fc007962add2bbc8ed /source3/utils/net_help.c
parent68f1ca6247f1242e836d989ebdfc139fed866bee (diff)
downloadsamba-668a9af94eebd7cc875a1f0c7d9fbcb135fb5c61.tar.gz
samba-668a9af94eebd7cc875a1f0c7d9fbcb135fb5c61.tar.bz2
samba-668a9af94eebd7cc875a1f0c7d9fbcb135fb5c61.zip
This removes the StrCaseCmp() stuff from 'net idmap' and 'net
groupmap'. The correct way to implement this stuff is via a function table, as exampled in all the other parts of 'net'. This also moves the idmap code into a new file. Volker, is this your code? You might want to put your name on it. Andrew Bartlett (This used to be commit 477f2d9e390bb18d4f08d1cac9c981b73d628c4f)
Diffstat (limited to 'source3/utils/net_help.c')
-rw-r--r--source3/utils/net_help.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/source3/utils/net_help.c b/source3/utils/net_help.c
index 941baf3378..1f3afb1690 100644
--- a/source3/utils/net_help.c
+++ b/source3/utils/net_help.c
@@ -99,36 +99,6 @@ int net_help_group(int argc, const char **argv)
return -1;
}
-int net_help_groupmap(int argc, const char **argv)
-{
- if (getuid() != 0) {
- d_printf("You must be root to edit group mappings.\nExiting...\n");
- return -1;
- }
-
- d_printf("net groupmap add"\
- "\n Create a new group mapping\n");
- d_printf("net groupmap modify"\
- "\n Update a group mapping\n");
- d_printf("net groupmap delete"\
- "\n Remove a group mapping\n");
- d_printf("net groupmap list"\
- "\n List current group map\n");
-
- return -1;
-}
-
-int net_help_idmap(int argc, const char **argv)
-{
- d_printf("net idmap dump filename"\
- "\n Dump current id mapping\n");
-
- d_printf("net idmap restore"\
- "\n Restore entries from stdin to current local idmap\n");
-
- return -1;
-}
-
int net_help_join(int argc, const char **argv)
{
d_printf("\nnet [<method>] join [misc. options]\n"