winbind: Fix wb_lookupsids for AD DCs
[samba.git] / source3 / winbindd / wb_lookupsids.c
index a4bcbaddd7b9d9e9187b94ddcd3f653c447737b5..c395f5489c66bc98df53a461f65dd18bb3ecd376 100644 (file)
@@ -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
                 */