summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-02-09 22:13:20 +0000
committerLuke Leighton <lkcl@samba.org>1999-02-09 22:13:20 +0000
commit7a65924133431a45cf3b80f06b741f17d4f729c1 (patch)
treef457d66455d0a0a830d695eec825a816e16c8082 /source3
parent4cb18cd734951597f1fcdffdb99ddc97f5ea83d3 (diff)
downloadsamba-7a65924133431a45cf3b80f06b741f17d4f729c1.tar.gz
samba-7a65924133431a45cf3b80f06b741f17d4f729c1.tar.bz2
samba-7a65924133431a45cf3b80f06b741f17d4f729c1.zip
Having Well-known Domain Groups ("Domain Admins/Guests/Users") returned
under SID_NAME_ENUM 0x5 instead of 0x2 (Well-known group instead of Domain Group) was making it impossible to view these groups from USRMGR.EXE. (This used to be commit 3072044134eadbf46350b32c1ed0703681b0d590)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_pwdb.c2
-rw-r--r--source3/rpc_server/srv_lookup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_pwdb.c b/source3/lib/util_pwdb.c
index 6a37f1bf74..495193e571 100644
--- a/source3/lib/util_pwdb.c
+++ b/source3/lib/util_pwdb.c
@@ -81,7 +81,7 @@ uint32 lookup_wk_group_name(const char *group_name, const char *domain,
char *grp_name;
int i = -1; /* start do loop at -1 */
uint32 rid;
- (*type) = SID_NAME_WKN_GRP;
+ (*type) = SID_NAME_DOM_GRP;
if (strequal(domain, global_sam_name))
{
diff --git a/source3/rpc_server/srv_lookup.c b/source3/rpc_server/srv_lookup.c
index 70183636d1..08f2e11d77 100644
--- a/source3/rpc_server/srv_lookup.c
+++ b/source3/rpc_server/srv_lookup.c
@@ -196,7 +196,7 @@ uint32 lookup_wk_group_sid(DOM_SID *sid, char *group_name, uint8 *type)
uint32 rid;
DOM_SID tmp;
- (*type) = SID_NAME_WKN_GRP;
+ (*type) = SID_NAME_DOM_GRP;
sid_copy(&tmp, sid);
sid_split_rid(&tmp, &rid);