From 9465f4b2c42131088b99beb3625c5d1bc45210d8 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 22 Apr 2003 05:57:49 +0000 Subject: default new groups to domain groups (This used to be commit 665d21b8656bf85f9b372b44ff1f4af414551e5a) --- source3/utils/net_groupmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c index 3cb132c2f9..2436fffc6d 100644 --- a/source3/utils/net_groupmap.c +++ b/source3/utils/net_groupmap.c @@ -180,7 +180,7 @@ int net_groupmap_add(int argc, const char **argv) fstring string_sid = ""; fstring type = ""; fstring ntcomment = ""; - enum SID_NAME_USE sid_type = SID_NAME_UNKNOWN; + enum SID_NAME_USE sid_type = SID_NAME_DOM_GRP; uint32 rid = 0; gid_t gid; int i; @@ -245,8 +245,8 @@ int net_groupmap_add(int argc, const char **argv) } } - if ( !unixgrp[0] || (!rid && !string_sid[0]) || sid_type==SID_NAME_UNKNOWN ) { - d_printf("Usage: net groupmap add {rid=|sid=} unixgroup= type= [ntgroup=] [comment=]\n"); + if ( !unixgrp[0] || (!rid && !string_sid[0]) ) { + d_printf("Usage: net groupmap add {rid=|sid=} unixgroup= [type=] [ntgroup=] [comment=]\n"); return -1; } -- cgit