]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/samba/samba-3.6.99-fix_lookups_with_one_way_trusts.patch
samba: add current RHEL6 patches
[ipfire-2.x.git] / src / patches / samba / samba-3.6.99-fix_lookups_with_one_way_trusts.patch
1 commit afcc7e5ef289d25c19c7ac881ce505ec910fde7c
2 Author: Gregor Beck <gbeck@sernet.de>
3 AuthorDate: Thu Feb 20 11:25:53 2014 +0100
4 Commit: Andreas Schneider <asn@samba.org>
5 CommitDate: Mon Mar 3 16:49:42 2014 +0100
6
7 s3:winbindd: avoid directly asking a trusted domain in wb_lookupsids*()
8
9 As a domain member we should always use a DC of our own domain.
10
11 It would be possible to pass all sids in one single dcerpc_wbint_LookupSids()
12 call. For now we just fix bug.
13
14 Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
15
16 Bug: https://bugzilla.samba.org/show_bug.cgi?id=10458
17 Signed-off-by: Gregor Beck <gbeck@sernet.de>
18 Signed-off-by: Stefan Metzmacher <metze@samba.org>
19 Reviewed-by: Andreas Schneider <asn@samba.org>
20 (cherry picked from commit 66fb0ce9557553a4c01607b517e65ac4c93841d0)
21 ---
22 source3/winbindd/wb_lookupsids.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25 diff --git a/source3/winbindd/wb_lookupsids.c b/source3/winbindd/wb_lookupsids.c
26 index 2fd735d..1bfdba8 100644
27 --- a/source3/winbindd/wb_lookupsids.c
28 +++ b/source3/winbindd/wb_lookupsids.c
29 @@ -320,7 +320,7 @@ static struct wb_lookupsids_domain *wb_lookupsids_get_domain(
30 }
31 }
32
33 - wb_domain = find_domain_from_sid_noinit(sid);
34 + wb_domain = find_lookup_domain_from_sid(sid);
35 if (wb_domain == NULL) {
36 return NULL;
37 }