mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +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:
parent
60daaeeb34
commit
76e5c1f79a
@ -599,6 +599,16 @@ static bool lookup_as_domain(const DOM_SID *sid, TALLOC_CTX *mem_ctx,
|
||||
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) {
|
||||
/* This can't be a domain */
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user