CVS update: samba/source/nsswitch

tridge at samba.org tridge at samba.org
Mon Aug 5 12:47:16 EST 2002


Date:	Sun Aug  4 19:47:16 2002
Author:	tridge

Update of /home/cvs/samba/source/nsswitch
In directory va:/tmp/cvs-serv29292

Modified Files:
	winbindd.h winbindd_ads.c winbindd_cache.c winbindd_cm.c 
	winbindd_rpc.c winbindd_util.c 
Log Message:
This fixes a number of ADS problems, particularly with netbiosless
setups.

- split up the ads structure into logical pieces. This makes it much
  easier to keep things like the authentication realm and the server
  realm separate (they can be different).

- allow ads callers to specify that no sasl bind should be performed
(used by "net ads info" for example)

- fix an error with handing ADS_ERROR_SYSTEM() when errno is 0

- completely rewrote the code for finding the LDAP server. Now try DNS
  methods first, and try all DNS servers returned from the SRV DNS
  query, sorted by closeness to our interfaces (using the same sort code
  as we use in replies from WINS servers). This allows us to cope with
  ADS DCs that are down, and ensures we don't pick one that is on the
  other side of the country unless absolutely necessary.

- recognise dnsRecords as binary when displaying them

- cope with the realm not being configured in smb.conf (work it out
  from the LDAP server)

- look at the trustDirection when looking up trusted domains and don't
  include trusts that trust our domains but we don't trust
  theirs. 

- use LDAP to query the alternate (netbios) name for a realm, and make
  sure that both and long and short forms of the name are accepted by
  winbindd. Use the short form by default for listing users/groups.

- rescan the list of trusted domains every 5 minutes in case new trust
  relationships are added while winbindd is running

- include transient trust relationships (ie. C trusts B, B trusts A,
  so C trusts A) in winbindd.

- don't do a gratuituous node status lookup when finding an ADS DC (we
  don't need it and it could fail)

- remove unused sid_to_distinguished_name function

- make sure we find the allternate name of our primary domain when
  operating with a netbiosless ADS DC (using LDAP to do the lookup)

- fixed the rpc trusted domain enumeration to support up to approx
  2000 trusted domains (the old limit was 3)

- use the IP for the remote_machine (%m) macro when the client doesn't
  supply us with a name via a netbios session request (eg. port 445)

- if the client uses SPNEGO then use the machine name from the SPNEGO
  auth packet for remote_machine (%m) macro

- add new 'net ads workgroup' command to find the netbios workgroup
  name for a realm


Revisions:
winbindd.h		1.34 => 1.35
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd.h?r1=1.34&r2=1.35
winbindd_ads.c		1.53 => 1.54
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_ads.c?r1=1.53&r2=1.54
winbindd_cache.c		1.41 => 1.42
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_cache.c?r1=1.41&r2=1.42
winbindd_cm.c		1.38 => 1.39
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_cm.c?r1=1.38&r2=1.39
winbindd_rpc.c		1.30 => 1.31
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_rpc.c?r1=1.30&r2=1.31
winbindd_util.c		1.77 => 1.78
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_util.c?r1=1.77&r2=1.78




More information about the samba-cvs mailing list