2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
4 * Copyright (C) Andrew Tridgell 1992-2000,
5 * Copyright (C) Jean François Micouleau 1998-2001.
6 * Copyright (C) Gerald Carter 2003,
7 * Copyright (C) Volker Lendecke 2004
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 3 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <http://www.gnu.org/licenses/>.
25 #include "system/passwd.h"
26 #include "utils/net.h"
27 #include "../libcli/security/security.h"
29 #include "lib/util/string_wrappers.h"
31 /*********************************************************
32 Figure out if the input was an NT group or a SID string.
34 **********************************************************/
35 static bool get_sid_from_input(struct dom_sid
*sid
, char *input
)
39 map
= talloc_zero(NULL
, GROUP_MAP
);
44 if (strncasecmp_m( input
, "S-", 2)) {
45 /* Perhaps its the NT group name? */
46 if (!pdb_getgrnam(map
, input
)) {
47 printf(_("NT Group %s doesn't exist in mapping DB\n"),
55 if (!string_to_sid(sid
, input
)) {
56 printf(_("converting sid %s from a string failed!\n"),
66 /*********************************************************
67 Dump a GROUP_MAP entry to stdout (long or short listing)
68 **********************************************************/
70 static void print_map_entry (const GROUP_MAP
*map
, bool long_list
)
72 struct dom_sid_buf buf
;
75 d_printf("%s (%s) -> %s\n", map
->nt_name
,
76 dom_sid_str_buf(&map
->sid
, &buf
),
79 d_printf("%s\n", map
->nt_name
);
80 d_printf(_("\tSID : %s\n"),
81 dom_sid_str_buf(&map
->sid
, &buf
));
82 d_printf(_("\tUnix gid : %u\n"), (unsigned int)map
->gid
);
83 d_printf(_("\tUnix group: %s\n"), gidtoname(map
->gid
));
84 d_printf(_("\tGroup type: %s\n"),
85 sid_type_lookup(map
->sid_name_use
));
86 d_printf(_("\tComment : %s\n"), map
->comment
);
90 /*********************************************************
92 **********************************************************/
93 static int net_groupmap_list(struct net_context
*c
, int argc
, const char **argv
)
96 bool long_list
= false;
99 fstring sid_string
= "";
100 const char list_usage_str
[] = N_("net groupmap list [verbose] "
101 "[ntgroup=NT group] [sid=SID]\n"
102 " verbose\tPrint verbose list\n"
103 " ntgroup\tNT group to list\n"
104 " sid\tSID of group to list");
106 if (c
->display_usage
) {
107 d_printf("%s\n%s\n", _("Usage: "), list_usage_str
);
111 if (c
->opt_verbose
|| c
->opt_long_list_entries
)
114 /* get the options */
115 for ( i
=0; i
<argc
; i
++ ) {
116 if ( !strcasecmp_m(argv
[i
], "verbose")) {
119 else if ( !strncasecmp_m(argv
[i
], "ntgroup", strlen("ntgroup")) ) {
120 fstrcpy( ntgroup
, get_string_param( argv
[i
] ) );
122 d_fprintf(stderr
, _("must supply a name\n"));
126 else if ( !strncasecmp_m(argv
[i
], "sid", strlen("sid")) ) {
127 fstrcpy( sid_string
, get_string_param( argv
[i
] ) );
128 if ( !sid_string
[0] ) {
129 d_fprintf(stderr
, _("must supply a SID\n"));
134 d_fprintf(stderr
, _("Bad option: %s\n"), argv
[i
]);
135 d_printf("%s\n%s\n", _("Usage:"), list_usage_str
);
140 /* list a single group is given a name */
141 if ( ntgroup
[0] || sid_string
[0] ) {
146 strlcpy(ntgroup
, sid_string
, sizeof(ntgroup
));
148 if (!get_sid_from_input(&sid
, ntgroup
)) {
152 map
= talloc_zero(NULL
, GROUP_MAP
);
157 /* Get the current mapping from the database */
158 if(!pdb_getgrsid(map
, sid
)) {
160 _("Failure to find local group SID in the "
166 print_map_entry(map
, long_list
);
170 GROUP_MAP
**maps
= NULL
;
172 /* enumerate all group mappings */
173 ok
= pdb_enum_group_mapping(NULL
, SID_NAME_UNKNOWN
,
180 for (i
=0; i
<entries
; i
++) {
181 print_map_entry(maps
[i
], long_list
);
190 /*********************************************************
191 Add a new group mapping entry
192 **********************************************************/
194 static int net_groupmap_add(struct net_context
*c
, int argc
, const char **argv
)
197 fstring ntgroup
= "";
198 fstring unixgrp
= "";
199 fstring string_sid
= "";
201 fstring ntcomment
= "";
202 enum lsa_SidType sid_type
= SID_NAME_DOM_GRP
;
208 const char *name_type
;
209 const char add_usage_str
[] = N_("net groupmap add "
210 "{rid=<int>|sid=<string>}"
211 " unixgroup=<string> "
212 "[type=<domain|local|builtin>] "
213 "[ntgroup=<string>] "
214 "[comment=<string>]");
216 name_type
= "domain group";
218 if (c
->display_usage
) {
219 d_printf("%s\n%s\n", _("Usage:\n"), add_usage_str
);
223 /* get the options */
224 for ( i
=0; i
<argc
; i
++ ) {
225 if ( !strncasecmp_m(argv
[i
], "rid", strlen("rid")) ) {
226 rid
= get_int_param(argv
[i
]);
227 if ( rid
< DOMAIN_RID_ADMINS
) {
229 _("RID must be greater than %d\n"),
230 (uint32_t)DOMAIN_RID_ADMINS
-1);
234 else if ( !strncasecmp_m(argv
[i
], "unixgroup", strlen("unixgroup")) ) {
235 fstrcpy( unixgrp
, get_string_param( argv
[i
] ) );
237 d_fprintf(stderr
,_( "must supply a name\n"));
241 else if ( !strncasecmp_m(argv
[i
], "ntgroup", strlen("ntgroup")) ) {
242 fstrcpy( ntgroup
, get_string_param( argv
[i
] ) );
244 d_fprintf(stderr
, _("must supply a name\n"));
248 else if ( !strncasecmp_m(argv
[i
], "sid", strlen("sid")) ) {
249 fstrcpy( string_sid
, get_string_param( argv
[i
] ) );
250 if ( !string_sid
[0] ) {
251 d_fprintf(stderr
, _("must supply a SID\n"));
255 else if ( !strncasecmp_m(argv
[i
], "comment", strlen("comment")) ) {
256 fstrcpy( ntcomment
, get_string_param( argv
[i
] ) );
257 if ( !ntcomment
[0] ) {
259 _("must supply a comment string\n"));
263 else if ( !strncasecmp_m(argv
[i
], "type", strlen("type")) ) {
264 fstrcpy( type
, get_string_param( argv
[i
] ) );
268 sid_type
= SID_NAME_WKN_GRP
;
269 name_type
= "wellknown group";
273 sid_type
= SID_NAME_DOM_GRP
;
274 name_type
= "domain group";
278 sid_type
= SID_NAME_ALIAS
;
279 name_type
= "alias (local) group";
283 _("unknown group type %s\n"),
289 d_fprintf(stderr
, _("Bad option: %s\n"), argv
[i
]);
295 d_printf("%s\n%s\n", _("Usage:\n"), add_usage_str
);
299 if ( (gid
= nametogid(unixgrp
)) == (gid_t
)-1 ) {
300 d_fprintf(stderr
, _("Can't lookup UNIX group %s\n"), unixgrp
);
304 map
= talloc_zero(NULL
, GROUP_MAP
);
308 /* Default is domain group. */
309 map
->sid_name_use
= SID_NAME_DOM_GRP
;
310 if (pdb_getgrgid(map
, gid
)) {
311 struct dom_sid_buf buf
;
312 d_printf(_("Unix group %s already mapped to SID %s\n"),
313 unixgrp
, dom_sid_str_buf(&map
->sid
, &buf
));
319 if ( (rid
== 0) && (string_sid
[0] == '\0') ) {
320 d_printf(_("No rid or sid specified, choosing a RID\n"));
321 if (pdb_capabilities() & PDB_CAP_STORE_RIDS
) {
322 if (!pdb_new_rid(&rid
)) {
323 d_printf(_("Could not get new RID\n"));
326 rid
= algorithmic_pdb_gid_to_group_rid(gid
);
328 d_printf(_("Got RID %d\n"), rid
);
331 /* append the rid to our own domain/machine SID if we don't have a full SID */
332 if ( !string_sid
[0] ) {
333 sid_compose(&sid
, get_global_sam_sid(), rid
);
334 sid_to_fstring(string_sid
, &sid
);
339 case SID_NAME_WKN_GRP
:
340 fstrcpy(ntcomment
, "Wellknown Unix group");
342 case SID_NAME_DOM_GRP
:
343 fstrcpy(ntcomment
, "Domain Unix group");
346 fstrcpy(ntcomment
, "Local Unix group");
349 fstrcpy(ntcomment
, "Unix group");
355 strlcpy(ntgroup
, unixgrp
, sizeof(ntgroup
));
357 if (!NT_STATUS_IS_OK(add_initial_entry(gid
, string_sid
, sid_type
, ntgroup
, ntcomment
))) {
358 d_fprintf(stderr
, _("adding entry for group %s failed!\n"), ntgroup
);
362 d_printf(_("Successfully added group %s to the mapping db as a %s\n"),
367 static int net_groupmap_modify(struct net_context
*c
, int argc
, const char **argv
)
370 GROUP_MAP
*map
= NULL
;
371 fstring ntcomment
= "";
373 fstring ntgroup
= "";
374 fstring unixgrp
= "";
375 fstring sid_string
= "";
376 enum lsa_SidType sid_type
= SID_NAME_UNKNOWN
;
379 const char modify_usage_str
[] = N_("net groupmap modify "
380 "{ntgroup=<string>|sid=<SID>} "
381 "[comment=<string>] "
382 "[unixgroup=<string>] "
383 "[type=<domain|local>]");
385 if (c
->display_usage
) {
386 d_printf("%s\n%s\n", _("Usage:\n"), modify_usage_str
);
390 /* get the options */
391 for ( i
=0; i
<argc
; i
++ ) {
392 if ( !strncasecmp_m(argv
[i
], "ntgroup", strlen("ntgroup")) ) {
393 fstrcpy( ntgroup
, get_string_param( argv
[i
] ) );
395 d_fprintf(stderr
, _("must supply a name\n"));
399 else if ( !strncasecmp_m(argv
[i
], "sid", strlen("sid")) ) {
400 fstrcpy( sid_string
, get_string_param( argv
[i
] ) );
401 if ( !sid_string
[0] ) {
402 d_fprintf(stderr
, _("must supply a name\n"));
406 else if ( !strncasecmp_m(argv
[i
], "comment", strlen("comment")) ) {
407 fstrcpy( ntcomment
, get_string_param( argv
[i
] ) );
408 if ( !ntcomment
[0] ) {
410 _("must supply a comment string\n"));
414 else if ( !strncasecmp_m(argv
[i
], "unixgroup", strlen("unixgroup")) ) {
415 fstrcpy( unixgrp
, get_string_param( argv
[i
] ) );
418 _("must supply a group name\n"));
422 else if ( !strncasecmp_m(argv
[i
], "type", strlen("type")) ) {
423 fstrcpy( type
, get_string_param( argv
[i
] ) );
427 sid_type
= SID_NAME_DOM_GRP
;
431 sid_type
= SID_NAME_ALIAS
;
436 d_fprintf(stderr
, _("Bad option: %s\n"), argv
[i
]);
441 if ( !ntgroup
[0] && !sid_string
[0] ) {
442 d_printf("%s\n%s\n", _("Usage:\n"), modify_usage_str
);
446 /* give preference to the SID; if both the ntgroup name and SID
447 are defined, use the SID and assume that the group name could be a
450 if ( sid_string
[0] ) {
451 if (!get_sid_from_input(&sid
, sid_string
)) {
456 if (!get_sid_from_input(&sid
, ntgroup
)) {
461 map
= talloc_zero(NULL
, GROUP_MAP
);
466 /* Get the current mapping from the database */
467 if(!pdb_getgrsid(map
, sid
)) {
469 _("Failed to find local group SID in the database\n"));
475 * Allow changing of group type only between domain and local
476 * We disallow changing Builtin groups !!! (SID problem)
478 if (sid_type
== SID_NAME_UNKNOWN
) {
479 d_fprintf(stderr
, _("Can't map to an unknown group type.\n"));
484 if (map
->sid_name_use
== SID_NAME_WKN_GRP
) {
486 _("You can only change between domain and local "
492 map
->sid_name_use
= sid_type
;
494 /* Change comment if new one */
496 map
->comment
= talloc_strdup(map
, ntcomment
);
498 d_fprintf(stderr
, _("Out of memory!\n"));
504 map
->nt_name
= talloc_strdup(map
, ntgroup
);
506 d_fprintf(stderr
, _("Out of memory!\n"));
512 gid
= nametogid( unixgrp
);
514 d_fprintf(stderr
, _("Unable to lookup UNIX group %s. "
515 "Make sure the group exists.\n"),
524 if (!NT_STATUS_IS_OK(pdb_update_group_mapping_entry(map
))) {
525 d_fprintf(stderr
, _("Could not update group database\n"));
530 d_printf(_("Updated mapping entry for %s\n"), map
->nt_name
);
536 static int net_groupmap_delete(struct net_context
*c
, int argc
, const char **argv
)
539 fstring ntgroup
= "";
540 fstring sid_string
= "";
542 const char delete_usage_str
[] = N_("net groupmap delete "
543 "{ntgroup=<string>|sid=<SID>}");
545 if (c
->display_usage
) {
546 d_printf("%s\n%s\n", _("Usage:\n"), delete_usage_str
);
550 /* get the options */
551 for ( i
=0; i
<argc
; i
++ ) {
552 if ( !strncasecmp_m(argv
[i
], "ntgroup", strlen("ntgroup")) ) {
553 fstrcpy( ntgroup
, get_string_param( argv
[i
] ) );
555 d_fprintf(stderr
, _("must supply a name\n"));
559 else if ( !strncasecmp_m(argv
[i
], "sid", strlen("sid")) ) {
560 fstrcpy( sid_string
, get_string_param( argv
[i
] ) );
561 if ( !sid_string
[0] ) {
562 d_fprintf(stderr
, _("must supply a SID\n"));
567 d_fprintf(stderr
, _("Bad option: %s\n"), argv
[i
]);
572 if ( !ntgroup
[0] && !sid_string
[0]) {
573 d_printf("%s\n%s\n", _("Usage:\n"), delete_usage_str
);
577 /* give preference to the SID if we have that */
580 strlcpy(ntgroup
, sid_string
, sizeof(ntgroup
));
582 if ( !get_sid_from_input(&sid
, ntgroup
) ) {
583 d_fprintf(stderr
, _("Unable to resolve group %s to a SID\n"),
588 if ( !NT_STATUS_IS_OK(pdb_delete_group_mapping_entry(sid
)) ) {
590 _("Failed to remove group %s from the mapping db!\n"),
595 d_printf(_("Successfully removed %s from the mapping db\n"), ntgroup
);
600 static int net_groupmap_set(struct net_context
*c
, int argc
, const char **argv
)
602 const char *ntgroup
= NULL
;
603 struct group
*grp
= NULL
;
605 bool have_map
= false;
607 if ((argc
< 1) || (argc
> 2) || c
->display_usage
) {
610 _(" net groupmap set \"NT Group\" "
611 "[\"unix group\"] [-C \"comment\"] [-L] [-D]\n"));
615 if ( c
->opt_localgroup
&& c
->opt_domaingroup
) {
616 d_printf(_("Can only specify -L or -D, not both\n"));
623 grp
= getgrnam(argv
[1]);
626 d_fprintf(stderr
, _("Could not find unix group %s\n"),
632 map
= talloc_zero(NULL
, GROUP_MAP
);
634 d_printf(_("Out of memory!\n"));
638 have_map
= pdb_getgrnam(map
, ntgroup
);
642 have_map
= ( (strncmp(ntgroup
, "S-", 2) == 0) &&
643 string_to_sid(&sid
, ntgroup
) &&
644 pdb_getgrsid(map
, sid
) );
653 _("Could not find group mapping for %s\n"),
659 map
->gid
= grp
->gr_gid
;
661 if (c
->opt_rid
== 0) {
662 if ( pdb_capabilities() & PDB_CAP_STORE_RIDS
) {
663 if ( !pdb_new_rid((uint32_t *)&c
->opt_rid
) ) {
665 _("Could not allocate new RID\n"));
670 c
->opt_rid
= algorithmic_pdb_gid_to_group_rid(map
->gid
);
674 sid_compose(&map
->sid
, get_global_sam_sid(), c
->opt_rid
);
676 map
->sid_name_use
= SID_NAME_DOM_GRP
;
677 map
->nt_name
= talloc_strdup(map
, ntgroup
);
678 map
->comment
= talloc_strdup(map
, "");
679 if (!map
->nt_name
|| !map
->comment
) {
680 d_printf(_("Out of memory!\n"));
685 if (!NT_STATUS_IS_OK(pdb_add_group_mapping_entry(map
))) {
687 _("Could not add mapping entry for %s\n"),
694 /* Now we have a mapping entry, update that stuff */
696 if ( c
->opt_localgroup
|| c
->opt_domaingroup
) {
697 if (map
->sid_name_use
== SID_NAME_WKN_GRP
) {
699 _("Can't change type of the BUILTIN "
707 if (c
->opt_localgroup
)
708 map
->sid_name_use
= SID_NAME_ALIAS
;
710 if (c
->opt_domaingroup
)
711 map
->sid_name_use
= SID_NAME_DOM_GRP
;
713 /* The case (opt_domaingroup && opt_localgroup) was tested for above */
715 if ((c
->opt_comment
!= NULL
) && (strlen(c
->opt_comment
) > 0)) {
716 map
->comment
= talloc_strdup(map
, c
->opt_comment
);
718 d_printf(_("Out of memory!\n"));
724 if ((c
->opt_newntname
!= NULL
) && (strlen(c
->opt_newntname
) > 0)) {
725 map
->nt_name
= talloc_strdup(map
, c
->opt_newntname
);
727 d_printf(_("Out of memory!\n"));
734 map
->gid
= grp
->gr_gid
;
736 if (!NT_STATUS_IS_OK(pdb_update_group_mapping_entry(map
))) {
737 d_fprintf(stderr
, _("Could not update group mapping for %s\n"),
747 static int net_groupmap_cleanup(struct net_context
*c
, int argc
, const char **argv
)
749 GROUP_MAP
**maps
= NULL
;
752 if (c
->display_usage
) {
754 "net groupmap cleanup\n"
757 _("Delete all group mappings"));
761 if (!pdb_enum_group_mapping(NULL
, SID_NAME_UNKNOWN
, &maps
, &entries
,
763 d_fprintf(stderr
, _("Could not list group mappings\n"));
767 for (i
=0; i
<entries
; i
++) {
769 if (maps
[i
]->gid
== -1)
770 printf(_("Group %s is not mapped\n"),
773 if (!sid_check_is_in_our_sam(&maps
[i
]->sid
) &&
774 !sid_check_is_in_builtin(&maps
[i
]->sid
))
776 struct dom_sid_buf buf
;
777 printf(_("Deleting mapping for NT Group %s, sid %s\n"),
779 dom_sid_str_buf(&maps
[i
]->sid
, &buf
));
780 pdb_delete_group_mapping_entry(maps
[i
]->sid
);
788 static int net_groupmap_addmem(struct net_context
*c
, int argc
, const char **argv
)
790 struct dom_sid alias
, member
;
794 !string_to_sid(&alias
, argv
[0]) ||
795 !string_to_sid(&member
, argv
[1]) ) {
798 _("net groupmap addmem alias-sid member-sid\n"));
802 if (!NT_STATUS_IS_OK(pdb_add_aliasmem(&alias
, &member
))) {
803 d_fprintf(stderr
, _("Could not add sid %s to alias %s\n"),
811 static int net_groupmap_delmem(struct net_context
*c
, int argc
, const char **argv
)
813 struct dom_sid alias
, member
;
817 !string_to_sid(&alias
, argv
[0]) ||
818 !string_to_sid(&member
, argv
[1]) ) {
821 _("net groupmap delmem alias-sid member-sid\n"));
825 if (!NT_STATUS_IS_OK(pdb_del_aliasmem(&alias
, &member
))) {
826 d_fprintf(stderr
, _("Could not delete sid %s from alias %s\n"),
834 static int net_groupmap_listmem(struct net_context
*c
, int argc
, const char **argv
)
836 struct dom_sid alias
;
837 struct dom_sid
*members
;
842 !string_to_sid(&alias
, argv
[0]) ) {
845 _("net groupmap listmem alias-sid\n"));
852 if (!NT_STATUS_IS_OK(pdb_enum_aliasmem(&alias
, talloc_tos(),
854 d_fprintf(stderr
, _("Could not list members for sid %s\n"),
859 for (i
= 0; i
< num
; i
++) {
860 struct dom_sid_buf buf
;
861 printf("%s\n", dom_sid_str_buf(&(members
[i
]), &buf
));
864 TALLOC_FREE(members
);
869 static bool print_alias_memberships(TALLOC_CTX
*mem_ctx
,
870 const struct dom_sid
*domain_sid
,
871 const struct dom_sid
*member
)
873 uint32_t *alias_rids
;
874 size_t i
, num_alias_rids
;
875 struct dom_sid_buf buf
;
880 if (!NT_STATUS_IS_OK(pdb_enum_alias_memberships(
881 mem_ctx
, domain_sid
, member
, 1,
882 &alias_rids
, &num_alias_rids
))) {
883 d_fprintf(stderr
, _("Could not list memberships for sid %s\n"),
884 dom_sid_str_buf(member
, &buf
));
888 for (i
= 0; i
< num_alias_rids
; i
++) {
889 struct dom_sid alias
;
890 sid_compose(&alias
, domain_sid
, alias_rids
[i
]);
891 printf("%s\n", dom_sid_str_buf(&alias
, &buf
));
897 static int net_groupmap_memberships(struct net_context
*c
, int argc
, const char **argv
)
900 struct dom_sid
*domain_sid
, member
;
904 !string_to_sid(&member
, argv
[0]) ) {
907 _("net groupmap memberships sid\n"));
911 mem_ctx
= talloc_init("net_groupmap_memberships");
912 if (mem_ctx
== NULL
) {
913 d_fprintf(stderr
, _("talloc_init failed\n"));
917 domain_sid
= get_global_sam_sid();
918 if (domain_sid
== NULL
) {
919 d_fprintf(stderr
, _("Could not get domain sid\n"));
923 if (!print_alias_memberships(mem_ctx
, domain_sid
, &member
) ||
924 !print_alias_memberships(mem_ctx
, &global_sid_Builtin
, &member
))
927 talloc_destroy(mem_ctx
);
932 /***********************************************************
933 migrated functionality from smbgroupedit
934 **********************************************************/
935 int net_groupmap(struct net_context
*c
, int argc
, const char **argv
)
937 struct functable func
[] = {
942 N_("Create a new group mapping"),
943 N_("net groupmap add\n"
944 " Create a new group mapping")
950 N_("Update a group mapping"),
951 N_("net groupmap modify\n"
952 " Modify an existing group mapping")
958 N_("Remove a group mapping"),
959 N_("net groupmap delete\n"
960 " Remove a group mapping")
966 N_("Set group mapping"),
967 N_("net groupmap set\n"
968 " Set a group mapping")
972 net_groupmap_cleanup
,
974 N_("Remove foreign group mapping entries"),
975 N_("net groupmap cleanup\n"
976 " Remove foreign group mapping entries")
982 N_("Add a foreign alias member"),
983 N_("net groupmap addmem\n"
984 " Add a foreign alias member")
990 N_("Delete foreign alias member"),
991 N_("net groupmap delmem\n"
992 " Delete foreign alias member")
996 net_groupmap_listmem
,
998 N_("List foreign group members"),
999 N_("net groupmap listmem\n"
1000 " List foreign alias members")
1004 net_groupmap_memberships
,
1005 NET_TRANSPORT_LOCAL
,
1006 N_("List foreign group memberships"),
1007 N_("net groupmap memberships\n"
1008 " List foreign group memberships")
1013 NET_TRANSPORT_LOCAL
,
1014 N_("List current group map"),
1015 N_("net groupmap list\n"
1016 " List current group map")
1018 {NULL
, NULL
, 0, NULL
, NULL
}
1021 return net_run_function(c
,argc
, argv
, "net groupmap", func
);