summaryrefslogtreecommitdiff
path: root/source3/libsmb/namecache.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r18312: Change gencache_get slightly: Delete expired keys, and only strdup ↵Volker Lendecke1-4/+0
the value if a valid entry was found. The newer calls got the latter one wrong, change the older calls. Volker (This used to be commit 554e68887bc84510690226c9b07a872e7a282abe)
2007-10-10r18006: Actually a smaller change than it looks. LeverageJeremy Allison1-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. (This used to be commit 77fe2a3d7418012a8dbfb6aaeb2a8dd57c6e1a5d)
2007-10-10r17874: Fix possible null deref found by Stanford checker.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 2894310cc8cddaec2a67f1af0ab62cc559283e77)
2003-06-25large change:Gerald Carter1-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()) (This used to be commit d7f7fcda425bef380441509734eca33da943c091)
2003-06-13Forward port the app-head changes for dc name cache into 3.0.Jeremy Allison1-0/+83
Jeremy. (This used to be commit 8bcc3116a22ce11b55a35f3363230f54bc5735fc)
2003-03-22(merge from HEAD) Valgrind found some memory leaks!Andrew Bartlett1-2/+10
(This used to be commit 8315b9c3119dde62aeb72ad5e20f63aee89abd0b)
2003-01-04Merge from HEAD - mimir's new gencache based namecache code.Andrew Bartlett1-170/+153
Andrew Bartlett (This used to be commit f79324f730c400342f445c931b0d75ff756d7cc7)
2002-11-26Ensure data is not used uninitialised.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 3c2d396aa8d674970b2cc043fd32d2648fcd004e)
2002-11-26Fix bug in tdb_fetch tidyup.Jeremy Allison1-3/+1
Jeremy. (This used to be commit 88d081e06428f02bcde8ceed8d86835c9222c3a9)
2002-11-23Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison1-0/+2
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy. (This used to be commit 5d5762d1787db4392d2dff16024097c638b2d494)
2002-09-25sync'ing up for 3.0alpha20 releaseGerald Carter1-21/+32
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-08-16Merge of netbios namecache code from APPLIANCE_HEAD.Tim Potter1-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. (This used to be commit dad31483b3bd1790356ef1e40ac62624a403bce8)