summaryrefslogtreecommitdiff
path: root/source3/tdb
AgeCommit message (Collapse)AuthorFilesLines
2003-05-14spellingTim Potter1-2/+2
(This used to be commit 249a6974702d050644d6d61f33f0034ce2a689ee)
2003-04-14Multi-line string constants have been deprecated in newer versions of gcc.Tim Potter1-17/+17
Found by Guenther Deschner. (This used to be commit 29c6d2f61cd3f7fb09913cf918b416aebecaf5ad)
2003-04-10Fix from Andrew Esh to ensure tdb_pack can't segfault.Jeremy Allison1-9/+12
Also stop it leaking memory like a sieve ! Jeremy. (This used to be commit 11b914ed84c4dbd31726969b3b924f686f938510)
2003-03-15strictly, you can't #if on somthing that may or may not be defined.Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 49bae0227323e811cb71ada24928d24f7dc56d1f)
2003-03-14Fresh meat in trusted domains code:Rafal Szczesniak1-7/+146
- packing/unpacking utility functions for trusted domain password struct; can be used to prepare buffer to store in secrets.tdb or (soon) passdb backend - similiar functions for DOM_SID - respectively modified secrets_(fetch|store) routines - new auth mapping code utilising introduced is_trusted_domain function - added tdb (un)packing of single bytes Rafal (This used to be commit 5281ee7e84421b9be746aed2f1718ceaf2a2fe3d)
2003-03-13Fixed crash bug when calling tdb_unlockkeys() with no locked keys.Tim Potter1-0/+2
woot! (This used to be commit eb432700c0010e536be3a0703f152c533357b851)
2003-03-11Remove valgrind_strlen function, hopefully no longer needed withMartin Pool1-10/+0
recent Valgrind relases and clashing with -DVALGRIND. (This used to be commit 98479f1315cf8968152e1566966ac57e171008c3)
2003-03-11Note about using Valgrind with tdbs.Martin Pool1-0/+21
(This used to be commit 36c6f67d4af50d8fc4c8bd54486df315861d55c2)
2003-03-11When opening an existing DB, don't require the hash_size specified toMartin Pool1-2/+1
the open call to be the same as that of the existing tdb. The specified hash_size is only used if the tdb needs to be (re)created. With this patch in place, tdbtool can open the printing tdbs, which are created with a hash_size of 5000. Before it would fail with EIO. (This used to be commit e412dd6d7e5a41de94c07c64b186390ccce104cc)
2003-02-20Ensure tdb error code is set for corrupt and i/o errors before callingJeremy Allison1-0/+19
the log function. This allows the log function to take action. Jeremy. (This used to be commit 0fa310cbc3f7ced0b15be0ffaeb70dc82e1d5d12)
2003-02-14DocMartin Pool1-1/+5
(This used to be commit 11c1e712d48438bd80c4f347a2f31e308bd54d7a)
2003-02-04Ensure we overwrite a tdb if the hash size changes.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 3497330ff53a264e433090066b7318c31d833411)
2003-01-30Add 3 second timeout when terminating server and sending print notifyJeremy Allison1-4/+13
messages. Stops build-up of large numbers of smbd's waiting to terminate on large print throughput. Jeremy. (This used to be commit 4ae130bfa82be60de6a6f357f65207fcb24f45fb)
2003-01-12Keep all the const warnings in one place, by adding a utility function toAndrew Bartlett1-44/+31
make the TDB_DATA. Andrew Bartlett (This used to be commit f087fe546fd0c943dec022c657f849803f4b807e)
2003-01-11fix tdb_append() prototypeGerald Carter1-1/+1
(This used to be commit df6e4559922bb55b53f587ca917110a045e222d7)
2003-01-11Added tdb_append() call. Efficiently adds to an entry. Used by new messagingJeremy Allison3-12/+148
code. Also added torture tests for it. Jeremy. (This used to be commit b515525a060a388c6ae0a03006a882c9be2e42b6)
2003-01-09tdb_chainlock_with_timeout: Add TODO: If we time out waiting for aMartin Pool1-0/+4
lock, it might be nice to use F_GETLK to get the pid of the process currently holding the lock and print that as part of the debugging message. I'd like to have this in appliance_head, but the code is too different so I won't worry for now. (This used to be commit 575908cb06a653225a2fa79ecd025af0e3dafc05)
2003-01-02BIG patch...Andrew Bartlett1-21/+21
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-17it's getting comic ...Simo Sorce1-1/+2
yet another missing piece :-O (This used to be commit eb595efa7e6c260092478564e5fb3fdefcc120d8)
2002-12-11Fixed auth module code. Added VALGRIND defines to reduce spurious warnings.Jeremy Allison1-0/+10
Jeremy. (This used to be commit ff3a8d37289216a2cb808406044a7abef1e564d0)
2002-11-23Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison1-4/+8
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy. (This used to be commit 19f86f1f72aca924e9e320e20a175b5d21de45ad)
2002-11-09Add chainlock_read functions to get a read lock. Used in *massively*Jeremy Allison2-5/+50
contended tdb's (and I've got one :-). Jeremy. (This used to be commit 064fa201ab73f476a168c40c2b227507e7342ec4)
2002-11-07Merge of scalable printing code fix... Needs testing.Jeremy Allison2-12/+10
Also tidied up some of Richard's code (I don't think he uses the compiler flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like I do :-) :-). Jeremy. (This used to be commit 10024ed06e9d91f24fdc78d59eef2f76bf395438)
2002-10-04Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison3-6/+49
MAX_PRINT_JOBS in a queue. Jeremy. (This used to be commit bb58a08af459b4abae9d53ab98c15f40638ce52b)
2002-09-26Make explicit the difference between a tdb key with no data attached, andJeremy Allison1-2/+11
a non existent entry. Stop a malloc(0) being called in the first case. Jeremy. (This used to be commit ece9507ec3d363fccf56b000ad9758780a9b3fb4)
2002-09-23tdbdump also needs signal.h. Thanks to Guenther Deschner <gd@suse.de>Volker Lendecke1-0/+1
Volker (This used to be commit a1bade0748fa46c6cb00e99d7022b21057679889)
2002-09-19tdb tools need #include <signal.h>Jeremy Allison3-0/+3
Jeremy. (This used to be commit 7e19a6b7ade1e70aafa9be8a86665a49f592b6f4)
2002-09-17Never, *ever* hold a mutex lock in the message database where there mayJeremy Allison3-0/+17
be traversals being attempted. Yes, this was from bitter experience (and an out of control server :-). Also allow callers to break out of a tdb_chainlock with sigalarm if desired. Jeremy. (This used to be commit a7781f91d8c1177210bffc199cd2f3b7ff993eaf)
2002-08-30ensure that we unlock in case we hit a tdb errorAndrew Tridgell1-0/+3
(This used to be commit 4aa7dfb7e7f4ad33b8768d20ec2eb9cb3fde6385)
2002-07-15don't report the faiilure of non-blocking locks. They are supposed toAndrew Tridgell1-1/+1
fail sometimes, thats why they are non-blocking :) (This used to be commit 775b918b8c63b1fcd9a8db1743505ab718978c19)
2002-07-11*Experimental* new large-scaling printer code. Splits printing.tdb intoJeremy Allison1-1/+2
a separate tdb per printer, but only keeps (currently one) tdb open at a time (although this is easily changed by changing a #define). Needs scalability testing with large numbers of printers now.... Jeremy. (This used to be commit b0909cfa14fc7ef29d2b98b56d52723570da782a)
2002-06-28don't backup to a newer fileAndrew Tridgell1-1/+17
(This used to be commit ae2f8aa9d0678aa0014d96fc8b1b52f42cba8349)
2002-06-03Added tdb_delete_by_string() function.Tim Potter1-0/+14
(This used to be commit 0cd3952f408e2fcd2c833b9039dff4392ac16cf7)
2002-05-22auto-recover from the fairly common case of a non-clean tdb shutdownAndrew Tridgell1-0/+10
while deleting a record. This leaves us with a non-free record on the free list. (This used to be commit e99b6a2b91e4022ce0a9a14415df71314b5e013f)
2002-04-30fixed tdbtool from core dumping. But the braces to make Chris happy !Jean-François Micouleau1-2/+4
J.F. (This used to be commit d0eae50874ff6ddbf9fca24864e7638efb0936b1)
2002-04-27Merge Herb's idmap endian fix.Jeremy Allison2-0/+7
Jeremy. (This used to be commit 7ddad4061a1b7ed25e4d6471c7a1f8f97a98ed37)
2002-04-19We cannot set errno=0 in any of the wrapper calls as this breaks UNIX errorJeremy Allison1-1/+0
returns to the client. Jeremy. (This used to be commit 1d66e53a64ec2878293e6d74a852b736ddab8f21)
2002-04-19First cut at fix for the EINTR problem... More needs to be done I think.Jeremy Allison1-1/+7
Jeremy. (This used to be commit 48475a7a697242b9fd7b1aec24389afb112569c4)
2002-04-16ignore a few more filesAndrew Tridgell1-0/+1
(This used to be commit 1c92fab4050f21b4c5cc962e0b80b5c551b24745)
2002-04-14Extra file for the tdb search code (linked list definition).Andrew Bartlett1-0/+37
Andrew Bartlett (This used to be commit c3312006009f5b312b285e3e679d01719012f29d)
2002-04-14Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett1-0/+72
<mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett (This used to be commit 0bdd94cb992b40942aaf2e5e0efd2868b4686296)
2002-04-13Make our atomic increment code actually do this during its first/second run.Andrew Bartlett1-5/+20
The previous code would return the same value for both the initial and second call, only incrementing on later calls. Andrew Bartlett (This used to be commit a4594d9efeca1f67dea57be8323fb4bd986318ce)
2002-04-10Added Shirish's client side caching policy change.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 16015c07eab2e57fa3771051e3e08fde21757cfa)
2002-04-09When printing a tdb log message display "unnamed" instead of "unknown" ifTim Potter1-1/+1
the tdb has not been named. (This used to be commit 3e7985c60ee9888285769f1eb0ec81f764c26d91)
2002-04-07uint32 store and fectch functions, a signed int is not enough sometimesSimo Sorce1-0/+96
(This used to be commit f07b2b3d5295202e0c8e530c43fae6d458b2cf2a)
2002-04-07better check of called function's returnSimo Sorce2-59/+127
tdbtorture say it's ok (This used to be commit af0fa4cf7c229fb908063bfcc3cbb214dae5ed0e)
2002-03-21Make winbindd_idmap tdb endian independent. This is very important forJeremy Allison1-93/+0
sharing between machines with rsync. Finally removed tdb_store_int/tdb_fetch_int. Now only tdb_store_int32/tdb_fetch_int32 which are endian independent are allowed. Jeremy. (This used to be commit 1c4a00dcc13f4a7c5876a5cf63ca730190d1132e)
2002-03-11a bit more portability for tdbbackupAndrew Tridgell1-1/+2
(This used to be commit 6edb5bea5f6dcbabe29f772c7ad7bcaaf2a72d53)
2002-03-10make tdbbackup more portableAndrew Tridgell1-4/+17
(This used to be commit 9cc1dadfb09c2352ed188d668b02ccffaa009895)
2002-03-10prevent bogus compiler complaints about comments in commentsAndrew Tridgell1-2/+2
(This used to be commit 73b3487daf4d7c65aac2c8ec150539791d19e1f5)