r23312: As per Volker, rename the "windbind:ads" parameter "winbind:rpc only".
authorJames Peach <jpeach@samba.org>
Sat, 2 Jun 2007 21:12:47 +0000 (21:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:05 +0000 (12:23 -0500)
source/nsswitch/winbindd_cache.c

index 475f068f9be274fac8b175a868f4df9d1d56ee5c..aac0ef21b3be9931dd72aa51ccc9c58ca4095b05 100644 (file)
@@ -133,9 +133,6 @@ void winbindd_check_cache_size(time_t t)
 static struct winbind_cache *get_cache(struct winbindd_domain *domain)
 {
        struct winbind_cache *ret = wcache;
-#ifdef HAVE_ADS
-       struct winbindd_domain *our_domain = domain;
-#endif
 
        /* We have to know what type of domain we are dealing with first. */
 
@@ -163,6 +160,8 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain)
 
        if (!domain->backend) {
 #ifdef HAVE_ADS
+               struct winbindd_domain *our_domain = domain;
+
                /* find our domain first so we can figure out if we 
                   are joined to a kerberized domain */
 
@@ -171,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", "ads", True)) {
+                   && !lp_parm_bool(-1, "winbind", "rpc only", False)) {
                        DEBUG(5,("get_cache: Setting ADS methods for domain %s\n", domain->name));
                        domain->backend = &ads_methods;
                } else {