From 668a9af94eebd7cc875a1f0c7d9fbcb135fb5c61 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 21 Jun 2003 08:35:30 +0000 Subject: 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) --- source3/utils/net_help.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'source3/utils/net_help.c') 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 [] join [misc. options]\n" -- cgit