mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
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)
This commit is contained in:
parent
4cb18cd734
commit
7a65924133
@ -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))
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user