Date: Thu Jan 8 08:19:17 2004 Author: abartlet Update of /home/cvs/samba/source/libads In directory dp.samba.org:/tmp/cvs-serv22397/libads
Modified Files: Tag: SAMBA_3_0 ads_status.c sasl.c Log Message: 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 Revisions: ads_status.c 1.5.2.4 => 1.5.2.5 http://www.samba.org/cgi-bin/cvsweb/samba/source/libads/ads_status.c.diff?r1=1.5.2.4&r2=1.5.2.5 sasl.c 1.4.2.13 => 1.4.2.14 http://www.samba.org/cgi-bin/cvsweb/samba/source/libads/sasl.c.diff?r1=1.4.2.13&r2=1.4.2.14