Having Well-known Domain Groups ("Domain Admins/Guests/Users") returned
authorLuke Leighton <lkcl@samba.org>
Tue, 9 Feb 1999 22:13:20 +0000 (22:13 +0000)
committerLuke Leighton <lkcl@samba.org>
Tue, 9 Feb 1999 22:13:20 +0000 (22:13 +0000)
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.

source/lib/util_pwdb.c
source/rpc_server/srv_lookup.c

index 6a37f1bf747935b4565e19546ee40a435ade475f..495193e5713734416554d5cd2713a7d66be5c7ab 100644 (file)
@@ -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))
        {
index 70183636d154443786af4a352c7df1c30ad5c18a..08f2e11d77b489b8cd6311838d1a6b839804e9eb 100644 (file)
@@ -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);