summaryrefslogtreecommitdiffstats
path: root/source/tdb
Commit message (Collapse)AuthorAgeFilesLines
* strictly, you can't #if on somthing that may or may not be defined.Andrew Bartlett2003-03-151-1/+1
| | | | Andrew Bartlett
* Fresh meat in trusted domains code:Rafal Szczesniak2003-03-141-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
* Fixed crash bug when calling tdb_unlockkeys() with no locked keys.Tim Potter2003-03-131-0/+2
| | | | woot!
* Remove valgrind_strlen function, hopefully no longer needed withMartin Pool2003-03-111-10/+0
| | | | recent Valgrind relases and clashing with -DVALGRIND.
* Note about using Valgrind with tdbs.Martin Pool2003-03-111-0/+21
|
* When opening an existing DB, don't require the hash_size specified toMartin Pool2003-03-111-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.
* Ensure tdb error code is set for corrupt and i/o errors before callingJeremy Allison2003-02-201-0/+19
| | | | | the log function. This allows the log function to take action. Jeremy.
* DocMartin Pool2003-02-141-1/+5
|
* Ensure we overwrite a tdb if the hash size changes.Jeremy Allison2003-02-041-1/+2
| | | | Jeremy.
* Add 3 second timeout when terminating server and sending print notifyJeremy Allison2003-01-301-4/+13
| | | | | | messages. Stops build-up of large numbers of smbd's waiting to terminate on large print throughput. Jeremy.
* Keep all the const warnings in one place, by adding a utility function toAndrew Bartlett2003-01-121-44/+31
| | | | | | make the TDB_DATA. Andrew Bartlett
* fix tdb_append() prototypeGerald Carter2003-01-111-1/+1
|
* Added tdb_append() call. Efficiently adds to an entry. Used by new messagingJeremy Allison2003-01-113-12/+148
| | | | | code. Also added torture tests for it. Jeremy.
* tdb_chainlock_with_timeout: Add TODO: If we time out waiting for aMartin Pool2003-01-091-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.
* BIG patch...Andrew Bartlett2003-01-021-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
* it's getting comic ...Simo Sorce2002-12-171-1/+2
| | | | yet another missing piece :-O
* Fixed auth module code. Added VALGRIND defines to reduce spurious warnings.Jeremy Allison2002-12-111-0/+10
| | | | Jeremy.
* Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison2002-11-231-4/+8
| | | | | Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy.
* Add chainlock_read functions to get a read lock. Used in *massively*Jeremy Allison2002-11-092-5/+50
| | | | | contended tdb's (and I've got one :-). Jeremy.
* Merge of scalable printing code fix... Needs testing.Jeremy Allison2002-11-072-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.
* Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison2002-10-043-6/+49
| | | | | MAX_PRINT_JOBS in a queue. Jeremy.
* Make explicit the difference between a tdb key with no data attached, andJeremy Allison2002-09-261-2/+11
| | | | | a non existent entry. Stop a malloc(0) being called in the first case. Jeremy.
* tdbdump also needs signal.h. Thanks to Guenther Deschner <gd@suse.de>Volker Lendecke2002-09-231-0/+1
| | | | Volker
* tdb tools need #include <signal.h>Jeremy Allison2002-09-193-0/+3
| | | | Jeremy.
* Never, *ever* hold a mutex lock in the message database where there mayJeremy Allison2002-09-173-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.
* ensure that we unlock in case we hit a tdb errorAndrew Tridgell2002-08-301-0/+3
|
* don't report the faiilure of non-blocking locks. They are supposed toAndrew Tridgell2002-07-151-1/+1
| | | | fail sometimes, thats why they are non-blocking :)
* *Experimental* new large-scaling printer code. Splits printing.tdb intoJeremy Allison2002-07-111-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.
* don't backup to a newer fileAndrew Tridgell2002-06-281-1/+17
|
* Added tdb_delete_by_string() function.Tim Potter2002-06-031-0/+14
|
* auto-recover from the fairly common case of a non-clean tdb shutdownAndrew Tridgell2002-05-221-0/+10
| | | | | while deleting a record. This leaves us with a non-free record on the free list.
* fixed tdbtool from core dumping. But the braces to make Chris happy !Jean-François Micouleau2002-04-301-2/+4
| | | | J.F.
* Merge Herb's idmap endian fix.Jeremy Allison2002-04-272-0/+7
| | | | Jeremy.
* We cannot set errno=0 in any of the wrapper calls as this breaks UNIX errorJeremy Allison2002-04-191-1/+0
| | | | | returns to the client. Jeremy.
* First cut at fix for the EINTR problem... More needs to be done I think.Jeremy Allison2002-04-191-1/+7
| | | | Jeremy.
* ignore a few more filesAndrew Tridgell2002-04-161-0/+1
|
* Extra file for the tdb search code (linked list definition).Andrew Bartlett2002-04-141-0/+37
| | | | Andrew Bartlett
* Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett2002-04-141-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
* Make our atomic increment code actually do this during its first/second run.Andrew Bartlett2002-04-131-5/+20
| | | | | | | The previous code would return the same value for both the initial and second call, only incrementing on later calls. Andrew Bartlett
* Added Shirish's client side caching policy change.Jeremy Allison2002-04-101-1/+2
| | | | Jeremy.
* When printing a tdb log message display "unnamed" instead of "unknown" ifTim Potter2002-04-091-1/+1
| | | | the tdb has not been named.
* uint32 store and fectch functions, a signed int is not enough sometimesSimo Sorce2002-04-071-0/+96
|
* better check of called function's returnSimo Sorce2002-04-072-59/+127
| | | | tdbtorture say it's ok
* Make winbindd_idmap tdb endian independent. This is very important forJeremy Allison2002-03-211-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.
* a bit more portability for tdbbackupAndrew Tridgell2002-03-111-1/+2
|
* make tdbbackup more portableAndrew Tridgell2002-03-101-4/+17
|
* prevent bogus compiler complaints about comments in commentsAndrew Tridgell2002-03-101-2/+2
|
* added a bunch of explanation about tdbbackupAndrew Tridgell2002-03-091-0/+23
|
* don't use -pg by default when building standaloneAndrew Tridgell2002-03-091-1/+1
|
* added -v and -s optionsAndrew Tridgell2002-03-081-23/+101
| | | | -v is used for verify/restore from backup