diff options
author | Gerald Carter <jerry@samba.org> | 2004-01-14 16:26:14 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-01-14 16:26:14 +0000 |
commit | 84b24610e5940fcf9e4a2f1813790b131dc7fbe7 (patch) | |
tree | c961ff81ea86af8d3d7834753c22f6de0022f2ab | |
parent | 138c34e1506905ab97ca297c8cd697c1c8328276 (diff) | |
download | samba-84b24610e5940fcf9e4a2f1813790b131dc7fbe7.tar.gz samba-84b24610e5940fcf9e4a2f1813790b131dc7fbe7.tar.bz2 samba-84b24610e5940fcf9e4a2f1813790b131dc7fbe7.zip |
* Revert to using rpc for mixed mode AD domains.
The reason for this are:
(a) the set_dc_type_and_flags() cannot tell the different
between connecting to an NT4 domain and an NT4 BDC
of a mixed mode domain.
(b) the connection management for the rpc backend only
provides on named pipe per cli_state. So it is possible
to connect to an NT4 BDC for netlogon and an AD mixed mode
DC for lsarpc. RPC is the lowest common demonimator here.
(c) Issue with the sequence number value between the
highestCommittedUSN LDAP attribute and the seq_num returned
via RPC.
We will revisit this later, but the changes need to make this
work right now are too broad and risky.
(This used to be commit 86f24908c395cc832ae87b04c9da3d32449acad3)
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 8dec89a6aa..91834e476f 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -112,9 +112,13 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain) break; } - /* if it have either of the indications of ADS, - use ads_methods */ - if ( domain->active_directory || domain->native_mode ) { + /* only use ADS for native modes at the momment. + The problem is the correct detection of mixed + mode domains from NT4 BDC's --jerry */ + + if ( domain->native_mode ) { + DEBUG(5,("get_cache: Setting ADS methods for domain %s\n", + domain->name)); domain->backend = &ads_methods; break; } @@ -123,6 +127,8 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain) } #endif default: + DEBUG(5,("get_cache: Setting MS-RPC methods for domain %s\n", + domain->name)); domain->backend = &msrpc_methods; } } |