summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-03-21 21:08:15 +0000
committerGerald Carter <jerry@samba.org>2007-03-21 21:08:15 +0000
commit593cf12a4f76d84f14bb087362f2a9b9a0c9d595 (patch)
tree6922b10efb70915bb1e498b319c21023e5463c8e
parentb296acb27dfa1167c755433877e4d99194bd9204 (diff)
downloadsamba-593cf12a4f76d84f14bb087362f2a9b9a0c9d595.tar.gz
samba-593cf12a4f76d84f14bb087362f2a9b9a0c9d595.tar.xz
samba-593cf12a4f76d84f14bb087362f2a9b9a0c9d595.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.
-rw-r--r--source/nsswitch/winbindd_util.c7
1 files changed, 1 insertions, 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 */