From c2e1f4eec972ba31b225d5941c1d491fdb75ffaa Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 25 Dec 2016 11:33:53 +0000 Subject: [PATCH] winbind: Fix wb_lookupsids for AD DCs Not yet a fix, but the IS_DC macro also contains the ROLE_ACTIVE_DIRECTORY_DC, and once we start to fully do this we'll need it. Signed-off-by: Volker Lendecke Reviewed-by: Uri Simchoni Reviewed-by: Andreas Schneider --- source3/winbindd/wb_lookupsids.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/winbindd/wb_lookupsids.c b/source3/winbindd/wb_lookupsids.c index a4bcbaddd7b..c395f5489c6 100644 --- a/source3/winbindd/wb_lookupsids.c +++ b/source3/winbindd/wb_lookupsids.c @@ -272,8 +272,7 @@ static bool wb_lookupsids_bulk(const struct dom_sid *sid) return true; } - if ((lp_server_role() == ROLE_DOMAIN_PDC) || - (lp_server_role() == ROLE_DOMAIN_BDC)) { + if (IS_DC) { /* * Bulk lookups to trusted DCs */ -- 2.34.1