r23368: Make "winbind:rpc only" a full blown parameter. Thanks to Karolin for
[sfrench/samba-autobuild/.git] / source / nsswitch / winbindd_cache.c
index d1c34100ca29a7a5ff8a4b9baa59e6487f599d98..017a2ebfebb8c9973b59c0624fe1b3daff31187c 100644 (file)
@@ -170,7 +170,7 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain)
 
                if ((our_domain->active_directory || IS_DC)
                    && domain->active_directory
-                   && !lp_parm_bool(-1, "winbind", "rpc only", False)) {
+                   && !lp_winbind_rpc_only()) {
                        DEBUG(5,("get_cache: Setting ADS methods for domain %s\n", domain->name));
                        domain->backend = &ads_methods;
                } else {