1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Fix lookup_sids to detect unix_groups and unix_users domain sids.

This fixes panics in wbcLookupRids when 1-2-22 was passed as a
domain sid.

Michael
(This used to be commit c0d9732cf4)
This commit is contained in:
Michael Adam 2008-01-25 01:40:42 +01:00
parent 60daaeeb34
commit 76e5c1f79a

View File

@ -599,6 +599,16 @@ static bool lookup_as_domain(const DOM_SID *sid, TALLOC_CTX *mem_ctx,
return true; return true;
} }
if (sid_check_is_unix_users(sid)) {
*name = talloc_strdup(mem_ctx, unix_users_domain_name());
return true;
}
if (sid_check_is_unix_groups(sid)) {
*name = talloc_strdup(mem_ctx, unix_groups_domain_name());
return true;
}
if (sid->num_auths != 4) { if (sid->num_auths != 4) {
/* This can't be a domain */ /* This can't be a domain */
return false; return false;