This merges in my 'always use ADS' patch. Tested on a mix of NT and ADS
commit7c34de8096b86d2869e7177420fe129bd0c7541d
authorAndrew Bartlett <abartlet@samba.org>
Thu, 8 Jan 2004 08:19:18 +0000 (8 08:19 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Jan 2004 08:19:18 +0000 (8 08:19 +0000)
treed8a2a4295bb65ddc993ef2a5457755119c6bf2fb
parentc9f9d6d3171d720b4ec0ba6af8c0c8ab178cd98b
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
20 files changed:
source/Makefile.in
source/configure.in
source/libads/ads_status.c
source/libads/sasl.c
source/libsmb/cliconnect.c
source/libsmb/clikrb5.c
source/libsmb/clispnego.c
source/nsswitch/wbinfo.c
source/nsswitch/winbindd.c
source/nsswitch/winbindd.h
source/nsswitch/winbindd_cache.c
source/nsswitch/winbindd_cm.c
source/nsswitch/winbindd_misc.c
source/nsswitch/winbindd_nss.h
source/nsswitch/winbindd_rpc.c
source/nsswitch/winbindd_util.c
source/rpc_client/cli_lsarpc.c
source/rpcclient/cmd_lsarpc.c
source/utils/net_rpc.c
source/utils/ntlm_auth.c