summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-03-21 17:59:29 +0000
committerGerald Carter <jerry@samba.org>2007-03-21 17:59:29 +0000
commitb296acb27dfa1167c755433877e4d99194bd9204 (patch)
tree48206044b135c7d97e7447c7df8fa39761dfd61f /source
parentc698a64711dd7314438eb8e1df0f47f558d59c41 (diff)
downloadsamba-b296acb27dfa1167c755433877e4d99194bd9204.tar.gz
samba-b296acb27dfa1167c755433877e4d99194bd9204.tar.xz
samba-b296acb27dfa1167c755433877e4d99194bd9204.zip
r21915: grab the sid_peek_check_rid() fix from 3.0.25 and the release notes
Diffstat (limited to 'source')
-rw-r--r--source/nsswitch/winbindd_util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_util.c b/source/nsswitch/winbindd_util.c
index 72c85a9c6a4..cbd76754bbd 100644
--- a/source/nsswitch/winbindd_util.c
+++ b/source/nsswitch/winbindd_util.c
@@ -603,8 +603,13 @@ struct winbindd_domain *find_domain_from_sid_noinit(const DOM_SID *sid)
/* Search through list */
for (domain = domain_list(); domain != NULL; domain = domain->next) {
- if (sid_compare_domain(sid, &domain->sid) == 0)
+ /* 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)) {
return domain;
+ }
}
/* Not found */