Andrew Tridgell
9db6c79e90
r5298: - got rid of pstring.h from includes.h. This at least makes it a bit
...
less likely that anyone will use pstring for new code
- got rid of winbind_client.h from includes.h. This one triggered a
huge change, as winbind_client.h was including system/filesys.h and
defining the old uint32 and uint16 types, as well as its own
pstring and fstring.
2007-10-10 13:09:38 -05:00
Andrew Tridgell
6f79432fe6
r5296: - only include the tdb headers where they are needed
...
- removed the u32 hack in events.c as I think this was only needed as
tdb.h defines u32. Metze, can you check that this hack is indeed no
longer needed on your suse system?
2007-10-10 13:09:38 -05:00
Andrew Tridgell
7be0bc93bd
r5189: fixed a double free bug in the ltdb indexing code
2007-10-10 13:09:29 -05:00
Andrew Tridgell
7893251456
r4744: until we decide what to do about attribute aliasing (see my recent
...
samba-technical posting), this is an interim solution that makes us
work pretty much like w2k3 does.
2007-10-10 13:08:49 -05:00
Simo Sorce
a681ae365f
r4714: move the ldb code to the new talloc interface (eg remove _p suffix)
...
this helps standalone building of ldb
renew the schema module
split code into functions to improve readability and code reuse
add and modify works correctly but we need a proper testsuite
Simo
2007-10-10 13:08:47 -05:00
Andrew Tridgell
1dfc41c9a3
r4488: removed an unused variable
2007-10-10 13:08:11 -05:00
Andrew Tridgell
1071712cf5
r4486: fixed some memory leaks in the new ldb code, by ensuring that memory is always
...
allocated as a child of the right context
2007-10-10 13:08:11 -05:00
Andrew Tridgell
4edbd1b18e
r4477: expanded the test suite to increase code coverage a lot
2007-10-10 13:07:56 -05:00
Andrew Tridgell
0ab98f50a7
r4474: - converted ldb to use talloc internally
...
- added gcov flags to Makefile.ldb
- expanded ldb test suite to get more coverage
2007-10-10 13:07:55 -05:00
Andrew Tridgell
09e98c8745
r4466: rather than defining "STANDALONE" for building tdb, ldb and talloc
...
outside the tree, instead defined _SAMBA_BUILD_ inside the Samba
build. This makes it easier to pull code out of Samba for external
use.
2007-10-10 13:07:54 -05:00
Andrew Tridgell
937159cf2c
r4424: fixed a simple bug in the '|' handling in indexed ldb searches. I'm
...
amazed we got along for so long with this bug!
2007-10-10 13:07:47 -05:00
Volker Lendecke
55c9fbd4f4
r4397: Fix a bug where '(&(objectclass=domain)(!(objectclass=builtindomain)))' fell
...
back to a full search.
Volker
2007-10-10 13:07:42 -05:00
Volker Lendecke
284044b5b2
r4366: Fix ldb_modify_internal: Adding values to an existing attribute you could end
...
up with a corrupt data structure on disk, namely with two attribute structures
for the same attribute name.
Volker
2007-10-10 13:07:38 -05:00
Andrew Tridgell
58fcc32624
r4282: removed a spurious error message now we remove index entries in the modify call
2007-10-10 13:07:31 -05:00
Andrew Tridgell
9c668e7b43
r4281: fixed an ldb indexing bug in ldb found by volker.
...
index entries were not always being removed on modify
2007-10-10 13:07:31 -05:00
Andrew Tridgell
29225d0bec
r4071: - ldap does allow adding additional attribute values with a modify
...
operation, but not if the value already exists
- fixed syntax of test.ldif for ldap backend
2007-10-10 13:06:22 -05:00
Stefan Metzmacher
a8a3b8ee34
r4040: sorry today is not my day...
...
uint32 != uint8_t ...
metze
2007-10-10 13:06:17 -05:00
Stefan Metzmacher
6998c37b47
r4038: fix sign/unsign bug I introduced in -r 4022
...
this caused new ldb record to be corrupt if the length was > 12b byte
thanks tridge for finding this
metze
2007-10-10 13:06:16 -05:00
Stefan Metzmacher
79d0eb2f67
r4022: fix compiler warnings
...
metze
2007-10-10 13:06:15 -05:00
Simo Sorce
a99c0adb09
r3897: add a locking infrastructure
2007-10-10 13:06:02 -05:00
Stefan Metzmacher
f5ee40d6ce
r3783: - don't use make proto for ldb anymore
...
- split ldh.h out of samba's includes.h
- make ldb_context and ldb_module private to the subsystem
- use ltdb_ prefix for all ldb_tdb functions
metze
2007-10-10 13:05:52 -05:00
Stefan Metzmacher
9003698e0f
r3782: use ldb_ namespace
...
metze
2007-10-10 13:05:52 -05:00
Simo Sorce
71323f424b
r3754: merge in ldb modules support from the tmp branch ldbPlugins
2007-10-10 13:05:51 -05:00
Stefan Metzmacher
1e7e94fdb1
r3095: - fix a free'ing of msg.dn
...
- reenable index tests
metze
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
18552f4786
r3093: - implment ldb_rename() and ldbrename
...
- add tests for ldbrename
- disable all tests which regenerate the index
(this is broken for me...the process hangs,
tridge we need to discuss that)
- link only the needed stuff to the ldb tools
- build ldbtest inside samba
metze
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
52eab8dc17
r3089: fix memleak
...
metze
2007-10-10 13:01:58 -05:00
Andrew Tridgell
b0c92616fb
r2713: better handling of binary values in index key creation
2007-10-10 12:59:25 -05:00
Jelmer Vernooij
8768168aad
r2667: Remove forward declaration of static function from function. GCC 3.5 and 4.0 don't accept declarations of static functions inside other
...
functions, see http://gcc.gnu.org/ml/gcc-patches/2004-08/msg02514.html
2007-10-10 12:59:19 -05:00
Andrew Tridgell
03c38477ad
r2556: fixed the -s one bug that jelmer pointed out
2007-10-10 12:59:06 -05:00
Andrew Tridgell
856cdf82f2
r2485: - add a test case in ldbtest for a bug pointed out by Jon Haswell.
...
- fixed the bug shown with the above test, by initialising the
sequence number to something different from the value used in
ltdb_cache_free()
2007-10-10 12:58:56 -05:00
Andrew Tridgell
c80d686f59
r2192: removed an erroneous free() call on an error path
2007-10-10 12:58:30 -05:00
Stefan Metzmacher
5e5681e283
r1901: add missing include of <fnmatch.h>
...
metze
2007-10-10 12:58:09 -05:00
Andrew Tridgell
31d55dfb44
r1511: fixed a free() that should be ldb_free()
...
this might explain the tdb corruption that metze found - it caused heap corruption that affected tdb
2007-10-10 12:57:37 -05:00
Tim Potter
45b4016530
r1374: Fix signed/unsigned warnings (actually found by g++) after unsigned int
...
changes in r1018.
2007-10-10 12:56:54 -05:00
Tim Potter
de5984c956
r1268: varient -> variant
2007-10-10 12:56:46 -05:00
Stefan Metzmacher
b5378803fd
r943: change samba4 to use 'uint8_t' instead of 'unsigned char'
...
metze
2007-10-10 12:56:21 -05:00
Andrew Tridgell
1418b667d9
r811: make the ldb_modify REPLACE semantics better match LDAP (ie. no error
...
on the attribute not existing and allow an empty replace)
2007-10-10 12:53:51 -05:00
Andrew Tridgell
3657539623
r792: - changed the ldb ldif_* functions to be in the ldb_ namespace
...
- added better error reporting in ldbdel
- fixed a bug in handling packing of records which contain elements
with no values (it caused db corruption)
- allow search with "dn" as target attribute
2007-10-10 12:53:50 -05:00
Andrew Tridgell
166a664a00
r714: make sure ldb formats are portable between big/little endian machines
2007-10-10 12:53:44 -05:00
Andrew Tridgell
b42d1f3984
r711: don't hide attributes inside the special ldb_tdb records (so the fact
...
that a attribute is hidden is not itself hidden!)
2007-10-10 12:53:44 -05:00
Andrew Tridgell
f5cd3d733b
r606: added a HIDDEN attribute on fields in ldb (in @ATTRIBUTES). This allows you to mark
...
an attribute as only appearing in searches that explicitly name it. It will be used
for attributes like nTSecurityDescriptor
2007-10-10 12:51:50 -05:00
Andrew Tridgell
7b5f3370e6
r583: fixed two bugs in the handling of index entry deletion
2007-10-10 12:51:48 -05:00
Andrew Tridgell
62b4ec367d
r574: - another attempt at const cleanliness in ldb
...
- fixed a problem with searching for values containing an '=' sign
- fixed the semantics of attempting an attribute deletion on an attribute that doesn't exist.
- added some more ldb_msg_*() utilities
2007-10-10 12:51:47 -05:00
Andrew Tridgell
18695cefa1
r509: fixed a memory handling bug that affects ldb with memory pools that
...
change with each request
2007-10-10 12:51:46 -05:00
Andrew Tridgell
4404056cd5
r504: fixed a bad call to list_union()
2007-10-10 12:51:45 -05:00
Andrew Tridgell
3955c482e6
r502: modified ldb to allow the use of an external pool memory
...
allocator. The way to use this is to call ldb_set_alloc() with a
function pointer to whatever memory allocator you like. It includes a
context pointer to allow for pool based allocators.
2007-10-10 12:51:45 -05:00
Andrew Tridgell
01e8740676
r490: - expanded the test suite to test modify and delete operations
...
- made yet another attempt to make ldb const clean.
- "make test" now runs both the tdb and ldap backend tests, and run the ldbtest utility
with and without indexing
- added prototypes in ldb.h for ldb_msg_*() public functions
2007-10-10 12:51:45 -05:00
Andrew Tridgell
894e44022d
r462: added an explanation about the rather complex ltdb_key() function
2007-10-10 12:51:44 -05:00
Andrew Tridgell
cdd48e2b9b
r456: - added -i option to ldbsearch
...
- fixed sorting bug in ldb index handing
2007-10-10 12:51:43 -05:00
Andrew Tridgell
03df31cef0
r454: allow a non-URL form of a filename to be used in ldb_connect(). This
...
makes it a little easier to work with the ldb tools
2007-10-10 12:51:43 -05:00