summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-04-22 05:58:07 +0000
committerGerald Carter <jerry@samba.org>2003-04-22 05:58:07 +0000
commit813386cbd73575b4ef4c1a0f642deb03cfca2a48 (patch)
treeb8b9d0eb44500485536e5218fb3c332495429c4e
parentdb8ff4ae56d7ce16cf68f7c712a207b062defc68 (diff)
downloadsamba-813386cbd73575b4ef4c1a0f642deb03cfca2a48.tar.gz
samba-813386cbd73575b4ef4c1a0f642deb03cfca2a48.tar.bz2
samba-813386cbd73575b4ef4c1a0f642deb03cfca2a48.zip
default new groups to domain groups
(This used to be commit f0c7d9def78db31b0f7f1e97a4cb6dac3382e217)
-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;
}