This merges in my 'always use ADS' patch. Tested on a mix of NT and ADS
authorAndrew Bartlett <abartlet@samba.org>
Thu, 8 Jan 2004 08:19:18 +0000 (08:19 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Jan 2004 08:19:18 +0000 (08:19 +0000)
commit7d068355aae99060acac03c6633509545aa782a4
treefe5606d8c17978e6ff793d9dfe80668c4697acfc
parentc69e4746d08fb90d77cbe58b29801e25999b5774
This merges in my 'always use ADS' patch.  Tested on a mix of NT and ADS
domains, this patch ensures that we always use the ADS backend when
security=ADS, and the remote server is capable.

The routines used for this behaviour have been upgraded to modern Samba
codeing standards.

This is a change in behaviour for mixed mode domains, and if the trusted
domain cannot be reached with our current krb5.conf file, we will show
that domain as disconnected.

This is in line with existing behaviour for native mode domains, and for
our primary domain.

As a consequence of testing this patch, I found that our kerberos error
handling was well below par - we would often throw away useful error
values.  These changes move more routines to ADS_STATUS to return
kerberos errors.

Also found when valgrinding the setup, fix a few memory leaks.

While sniffing the resultant connections, I noticed we would query our
list of trusted domains twice - so I have reworked some of the code to
avoid that.

Andrew Bartlett
(This used to be commit 7c34de8096b86d2869e7177420fe129bd0c7541d)
20 files changed:
source3/Makefile.in
source3/configure.in
source3/libads/ads_status.c
source3/libads/sasl.c
source3/libsmb/cliconnect.c
source3/libsmb/clikrb5.c
source3/libsmb/clispnego.c
source3/nsswitch/wbinfo.c
source3/nsswitch/winbindd.c
source3/nsswitch/winbindd.h
source3/nsswitch/winbindd_cache.c
source3/nsswitch/winbindd_cm.c
source3/nsswitch/winbindd_misc.c
source3/nsswitch/winbindd_nss.h
source3/nsswitch/winbindd_rpc.c
source3/nsswitch/winbindd_util.c
source3/rpc_client/cli_lsarpc.c
source3/rpcclient/cmd_lsarpc.c
source3/utils/net_rpc.c
source3/utils/ntlm_auth.c