summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-03-21 21:08:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:48 -0500
commitb44d53e307ab1a8112172a692c42880a7755d588 (patch)
treeb653a5e9466dd27783146984aa02e86457c0ba94
parent42238c78bb8820a21cfb08fc29a5109ee1a62bab (diff)
downloadsamba-b44d53e307ab1a8112172a692c42880a7755d588.tar.gz
samba-b44d53e307ab1a8112172a692c42880a7755d588.tar.xz
samba-b44d53e307ab1a8112172a692c42880a7755d588.zip
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 add225e1c8fef1d3ddb7fd43c1744858df45ecfd)
-rw-r--r--source3/nsswitch/winbindd_util.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c
index b649dc4768a..10fbd7c639b 100644
--- a/source3/nsswitch/winbindd_util.c
+++ b/source3/nsswitch/winbindd_util.c
@@ -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 */