mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r21918: Reverting this change as it is now causing aborts() in
find_builtin_domain(). This all needs more testing
before anyone starts changing these lookup routines again.
(This used to be commit add225e1c8
)
This commit is contained in:
parent
42238c78bb
commit
b44d53e307
@ -604,13 +604,8 @@ struct winbindd_domain *find_domain_from_sid_noinit(const DOM_SID *sid)
|
||||
/* Search through list */
|
||||
|
||||
for (domain = domain_list(); domain != NULL; domain = domain->next) {
|
||||
/* We need to use sid_peek_check_rid, because we want
|
||||
* to make sure that the SIDs we send to the backends are
|
||||
* as specific as possible.
|
||||
*/
|
||||
if (sid_peek_check_rid(&domain->sid, sid, &discard)) {
|
||||
if (sid_compare_domain(sid, &domain->sid) == 0)
|
||||
return domain;
|
||||
}
|
||||
}
|
||||
|
||||
/* Not found */
|
||||
|
Loading…
Reference in New Issue
Block a user