summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/trustdom_cache.c
Commit message (Collapse)AuthorAgeFilesLines
* s3: Add some constVolker Lendecke2011-11-251-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Nov 25 10:21:07 CET 2011 on sn-devel-104
* s3-trustdomcache: make enumerate_domain_trusts() static.Günther Deschner2011-11-021-0/+103
| | | | Guenther
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-4/+4
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* Remove gencache_init/shutdownVolker Lendecke2009-07-151-34/+0
| | | | | gencache_get/set/del/iterate call gencache_init() internally anyway. And we've been very lazy calling gencache_shutdown, so this seems not really required.
* Fix some nonempty blank linesVolker Lendecke2009-07-151-21/+20
|
* 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. (This used to be commit 114ca8577568cdb5a81d8734f1d1d096f1b36c36)
* Pass NULL to gencache_get when we are not interested in the timeout valueVolker Lendecke2008-07-031-4/+2
| | | | (This used to be commit 16062dfc3dcc8f1ca0024a3ae21effb889c7ffc0)
* s/sid_to_string/sid_to_fstring/Volker Lendecke2007-12-151-1/+1
| | | | | least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-1/+1
| | | | (This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
* Remove some globalsVolker Lendecke2007-12-051-1/+1
| | | | (This used to be commit 31d0a846db08d845e6cdfd85def4ac1c34031e02)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-6/+6
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r21893: Update comments so they actually reflect reality...Rafal Szczesniak2007-10-101-3/+3
| | | | | rafal (This used to be commit 8f313061a4cbc69d8dd17aa282d79d07a9275242)
* r20690: fix a bug that causes smbd to 'hang' intermittently.Andrew Tridgell2007-10-101-32/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem occurs like this: 1) running smbd as a domain member without winbindd 2) client1 connects, during auth smbd-1 calls update_trustdom_cache() 3) smbd-1 takes the trustdom cache timestamp lock, then starts enumerate_domain_trusts 4) enumerate_domain_trusts hangs for some unknown reason 5) other clients connect, all block waiting for read lock on trustdom cache 6) samba is now hung The problem is the lock, and really its just trying to avoid a race where the cure is worse than the problem. A race in updating the trutdom cache is not a big issue. So I've just removed the lock. It is still an open question why enumerate_domain_trusts() can hang. Unfortunately I've not in a position to get a sniff at the site that is affected. I suspect a full fix will involve ensuring that all the rpc code paths have appropriate timeouts. (This used to be commit ab8d41053347a5b342ed5b59a0b0dd4983ca91e6)
* r18312: Change gencache_get slightly: Delete expired keys, and only strdup ↵Volker Lendecke2007-10-101-1/+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)
* r6392: - Fixes bug 2564: when smbc_opendir() was called with a file rather thanDerrell Lipman2007-10-101-1/+1
| | | | | | | | a directory, the errno returned could end up as ENOENT rather than ENOTDIR. - Fixes some compiler warnings which showed up on IRIX, as reported by James Peach. (This used to be commit 615a62b21f8d2f7f97bde2f166ddd6849d39b95c)
* r786: Memory leak fixes in (mostly) error code paths fromJeremy Allison2007-10-101-10/+27
| | | | | | | kawasa_r@itg.hitachi.co.jp. A couple of mem leak fixes in mainline code paths though :-). Jeremy. (This used to be commit 4695cc95fe576b6da0d0cb0686f208fc306b2646)
* convert snprintf() calls using pstrings & fstringsGerald Carter2003-07-231-1/+1
| | | | | | | to pstr_sprintf() and fstr_sprintf() to try to standardize. lots of snprintf() calls were using len-1; some were using len. At least this helps to be consistent. (This used to be commit 9f835b85dd38cbe655eb19021ff763f31886ac00)
* * fix the trustdom_cache to work when winbindd is not running.Gerald Carter2003-07-011-0/+124
| | | | | | smbd will update the trustdom_cache periodically after locking the timestamp key (This used to be commit 7bc4b65b91f98271089335cc301146d5f0c76c3a)
* Fix some memory leaks and extra cache startups/shutdowns from the trustedAndrew Bartlett2003-06-081-1/+4
| | | | | | | domains lookup code. Andrew Bartlett (This used to be commit 0ec1b1207041a3b6050046ba6d7b466dd4fcf341)
* Having waited for *way* too long, this is mimir's namecache and trusted domainAndrew Bartlett2002-11-261-0/+215
cache code. This uses gencache, mimir's new caching code that stores at text-based cache of various data. Mimir has done a *lot* of work on this patch, and it is finally time to get it in CVS. Andrew Bartlett (This used to be commit 47f3bfe9564e7f3aff60cefaefd599e0abb30a31)