s3: Call sid_check_is_domain instead of dom_sid_equal
[kai/samba.git] / source3 / winbindd / winbindd_cache.c
index 9363a70a2145ef1a28036dc6203006702ac08bf0..c0f44dbb1f6b50a5d6ca794ad66e3d4aed4ca134 100644 (file)
@@ -120,7 +120,7 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain)
        }
 
        if (strequal(domain->name, get_global_sam_name()) &&
-           dom_sid_equal(&domain->sid, get_global_sam_sid())) {
+           sid_check_is_domain(&domain->sid)) {
                domain->backend = &sam_passdb_methods;
                domain->initialized = True;
        }