summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-04-22 05:57:49 +0000
committerGerald Carter <jerry@samba.org>2003-04-22 05:57:49 +0000
commit9465f4b2c42131088b99beb3625c5d1bc45210d8 (patch)
tree0dc63bdf42fd4d9d996afe55c7e9abb7310dd347
parent96e1202f23177d07097eef09c36cf4eef22ae000 (diff)
downloadsamba-9465f4b2c42131088b99beb3625c5d1bc45210d8.tar.gz
samba-9465f4b2c42131088b99beb3625c5d1bc45210d8.tar.bz2
samba-9465f4b2c42131088b99beb3625c5d1bc45210d8.zip
default new groups to domain groups
(This used to be commit 665d21b8656bf85f9b372b44ff1f4af414551e5a)
-rw-r--r--source3/utils/net_groupmap.c6
1 files changed, 3 insertions, 3 deletions
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=<int>|sid=<string>} unixgroup=<string> type=<domain|local|builtin> [ntgroup=<string>] [comment=<string>]\n");
+ if ( !unixgrp[0] || (!rid && !string_sid[0]) ) {
+ d_printf("Usage: net groupmap add {rid=<int>|sid=<string>} unixgroup=<string> [type=<domain|local|builtin>] [ntgroup=<string>] [comment=<string>]\n");
return -1;
}