r23297: This introduces the winbind:ads parameter which defaults to True. Setting it
authorVolker Lendecke <vlendec@samba.org>
Fri, 1 Jun 2007 18:39:50 +0000 (18:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:03 +0000 (12:23 -0500)
to False makes winbind use RPC and not LDAP methods to connect to the DCs,
even when it figured out they are AD.

source/nsswitch/winbindd_cache.c

index f9b045e10cb44e7b610455560cd86658424a692f..475f068f9be274fac8b175a868f4df9d1d56ee5c 100644 (file)
@@ -169,7 +169,9 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain)
                if ( !domain->primary )
                        our_domain = find_our_domain();
 
-               if ( (our_domain->active_directory || IS_DC) && domain->active_directory ) {
+               if ((our_domain->active_directory || IS_DC)
+                   && domain->active_directory
+                   && lp_parm_bool(-1, "winbind", "ads", True)) {
                        DEBUG(5,("get_cache: Setting ADS methods for domain %s\n", domain->name));
                        domain->backend = &ads_methods;
                } else {