mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
When checking if a SID is in a domain, make sure that indeed the user RID is
one element longer than the domain sid. Andrew Bartlett (This used to be commit c61e5e38776d2de53d120b592a6685158e79ebb8)
This commit is contained in:
parent
c3cad25e5e
commit
cfe8b79c77
@ -391,6 +391,9 @@ BOOL sid_peek_check_rid(const DOM_SID *exp_dom_sid, const DOM_SID *sid, uint32 *
|
||||
if (!exp_dom_sid || !sid || !rid)
|
||||
return False;
|
||||
|
||||
if (sid->num_auths != (exp_dom_sid->num_auths+1)) {
|
||||
return False;
|
||||
}
|
||||
|
||||
if (sid_compare_domain(exp_dom_sid, sid)!=0){
|
||||
*rid=(-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user