From 593cf12a4f76d84f14bb087362f2a9b9a0c9d595 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 21 Mar 2007 21:08:15 +0000 Subject: 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. --- source/nsswitch/winbindd_util.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/nsswitch/winbindd_util.c b/source/nsswitch/winbindd_util.c index cbd76754bbd..72c85a9c6a4 100644 --- a/source/nsswitch/winbindd_util.c +++ b/source/nsswitch/winbindd_util.c @@ -603,13 +603,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 */ -- cgit