summaryrefslogtreecommitdiffstats
path: root/source/libsmb/namecache.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Pass NULL to gencache_get when we are not interested in the timeout ↵Volker Lendecke2008-07-111-2/+4
| | | | | | value" This reverts commit 16062dfc3dcc8f1ca0024a3ae21effb889c7ffc0.
* Pass NULL to gencache_get when we are not interested in the timeout valueVolker Lendecke2008-07-031-4/+2
|
* Remove some globalsVolker Lendecke2007-12-051-3/+3
|
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-241-59/+97
| | | | | | | | | | | | | to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-10/+10
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r19249: Attempt to fix a site lookup bug found by Guenther.Jeremy Allison2007-10-101-0/+32
| | | | | | | | | | | | | | | - "The problem is, with a fresh system, we don't know our sitename, therefor we do a stupid DNS query for all DCs. The reply we get is a round-robin list of all 21 DCs, we just pick the first, contact that and safe that INET.COM#1C query in the name cache for later use... What we need to do if we don't yet know our sitename, is to contact to any DC, get the CLDAP reply to tell us in which site we are, then flush the namecache and requery DNS including the sitename" Implement the flushing of the #1C entries for a given NetBIOS name/realm when looking up the site value. Jeremy.
* r18312: Change gencache_get slightly: Delete expired keys, and only strdup ↵Volker Lendecke2007-10-101-4/+0
| | | | | | | | | the value if a valid entry was found. The newer calls got the latter one wrong, change the older calls. Volker
* r18006: Actually a smaller change than it looks. LeverageJeremy Allison2007-10-101-0/+8
| | | | | | | | | the get_dc_list code to get the _kerberos. names for site support. This way we don't depend on one KDC to do ticket refresh. Even though we know it's up when we add it, it may go down when we're trying to refresh. Jeremy.
* r17874: Fix possible null deref found by Stanford checker.Jeremy Allison2007-10-101-2/+2
| | | | Jeremy.
* large change:Gerald Carter2003-06-251-30/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *) consolidates the dc location routines again (dns and netbios) get_dc_list() or get_sorted_dc_list() is the authoritative means of locating DC's again. (also inludes a flag to get_dc_list() to define if this should be a DNS only lookup or not) (however, if you set "name resolve order = hosts wins" you could still get DNS queries for domain name IFF ldap_domain2hostlist() fails. The answer? Fix your DNS setup) *) enabled DOMAIN<0x1c> lookups to be funneled through resolve_hosts resulting in a call to ldap_domain2hostlist() if lp_security() == SEC_ADS *) enables name cache for winbind ADS backend *) enable the negative connection cache for winbind ADS backend *) removes some old dead code *) consolidates some duplicate code *) moves the internal_name_resolve() to use an IP/port pair to deal with SRV RR dns replies. The namecache code also supports the IP:port syntax now as well. *) removes 'ads server' and moves the functionality back into 'password server' (which can support "hostname:port" syntax now but works fine with defaults depending on the value of lp_security())
* Forward port the app-head changes for dc name cache into 3.0.Jeremy Allison2003-06-131-0/+83
| | | | Jeremy.
* (merge from HEAD) Valgrind found some memory leaks!Andrew Bartlett2003-03-221-2/+10
|
* Merge from HEAD - mimir's new gencache based namecache code.Andrew Bartlett2003-01-041-170/+153
| | | | Andrew Bartlett
* Ensure data is not used uninitialised.Jeremy Allison2002-11-261-1/+1
| | | | Jeremy.
* Fix bug in tdb_fetch tidyup.Jeremy Allison2002-11-261-3/+1
| | | | Jeremy.
* Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison2002-11-231-0/+2
| | | | | Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy.
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-21/+32
|
* Merge of netbios namecache code from APPLIANCE_HEAD.Tim Potter2002-08-161-0/+252
Tridge suggested a generic caching mechanism for Samba to avoid the proliferation of little cache files hanging around limpet like in the locks directory. Someone should probably implement this at some stage.