summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_treeAndrew Tridgell4-30/+57
instead of a search expression. This allows our ldap server to pass its ASN.1 parsed search expressions straight to ldb, instead of going via strings. - updated all the ldb modules code to handle the new interface - got rid of the separate ldb_parse.h now that the ldb_parse structures are exposed externally - moved to C99 structure initialisation in ldb - switched ldap server to using ldb_search_bytree() (This used to be commit 96620ab2ee5d440bbbc51c1bc0cad9977770f897)
2007-10-10r7522: added a ldb_filter_from_tree() function that takes a ldb_parse_treeAndrew Tridgell1-1/+54
and forms a ldab search filter expression. Next step is to make our ldap server code go from ASN.1 to a ldb_parse_tree, instead of trying to construct string filters, then add a ldb_search_tree() call to allow for searches using parse trees. all of this is being done as I am hitting bitwise '&' ldap search expressions from w2k, and want to handle them cleanly. (This used to be commit 04356c1b1ed86d72934bc1b0ed60b767e10a1196)
2007-10-10r7517: handle zero length equality testsAndrew Tridgell1-1/+1
(This used to be commit 18c96f2b3e4d4c769354d61a4cda5c295f50536f)
2007-10-10r7516: make sure binary decoding gives us something we can run string ↵Andrew Tridgell1-1/+2
functions on (This used to be commit 9913ab2550fae465c7a66fe7fa3a36a65b25b358)
2007-10-10r7515: merge in the binary encode/decode enhancements from the libcli/ldap/Andrew Tridgell1-2/+68
code into the ldb parse code (This used to be commit 12647e37223847da810c2d4e5f83328b1fcf88cb)
2007-10-10r7514: make the ldb_parse code not depend on a ldb_context, so we can now ↵Andrew Tridgell1-13/+3
potentially use it in our ldap client code, instead of replicating all the code (This used to be commit 5b3575d9303d54a771e080a670dcd2f444b10c20)
2007-10-10r7480: ldb_sqlite3 work in progressDerrell Lipman1-3/+8
(This used to be commit 510e7994da808ab12f51fa7a36c3f5f9244c51ac)
2007-10-10r7449: add ctype.h header to dn expand functionDerrell Lipman1-0/+1
(This used to be commit 0e3b872560d82e1a0f7b58fe7d210563d6d29daf)
2007-10-10r7438: work in progressDerrell Lipman1-53/+13
(This used to be commit 2fc5343f0637ef3109b079dbc33d6cf4e58c8d5e)
2007-10-10r7418: work in progressDerrell Lipman2-71/+151
(This used to be commit 2a13e7655b1bce88694ddbb6a4d9349008ba42f0)
2007-10-10r7410: minor cleanupDerrell Lipman1-10/+11
(This used to be commit 4c8bffc3f01d60ef7d8b75e92f4d062326288f4c)
2007-10-10r7408: added DN explode function, based on simo's ldap_parse_dn() function. ↵Derrell Lipman1-0/+461
simo, when you get a chance, please change your license so this can be linked with ldb. (This used to be commit 588a1d1451d4117cb6e427a293455f2a5657b604)
2007-10-10r7276: - moved static tdb function ltdb_dn_fold() into common/ so that it can beDerrell Lipman2-0/+83
called from multiple backends. (ldb_sqlite3 needs it too.) Added parameter for a callback function that determines whether an attribute needs case folding. - begin to prepare for sqlite3 in build process - work-in-progress updates, on ldb_sqlite3 (This used to be commit a80bced0b96ffb655559a43cf7f4d7a34deb5a7d)
2007-10-10r6833: split out the routine that calculates the diff between two ldb ↵Andrew Tridgell1-0/+55
messages from ldbedit, so other progs can use it. (This used to be commit fa4f33558af3c65ff31424c01db16cb9d427503d)
2007-10-10r6817: - fixed empty ldap search elements in filtersAndrew Tridgell1-1/+1
- added support for guids in cldap netlogon searches. the cldap server now passes the LDAP-CLDAP torture test (This used to be commit eb7979d9def389942fa1c54693d2dfcb8828f544)
2007-10-10r6470: Remove ldb_search_free() it is not needed anymore.Simo Sorce2-17/+3
Just use talloc_free() to release the memory after an ldb_search(). (This used to be commit 4f0948dab0aa5e8b6a4ce486f3668ca8dfae23db)
2007-10-10r6087: - remove the dlopen code for now (before it goes back, it needs to beAndrew Tridgell1-44/+1
made into something that isn't a maze of #ifdefs) - when a module is not found, make it a non-fatal error. Otherwise the standalone ldb tools just bail out. The previous code meant that if you had a module listed and it wasn't present then you could _never_ fix it, as you coudln't open the ldb to remove that module from @MODULES ! (This used to be commit c4728625c093d91e522b80c049e0d42d2b5f143b)
2007-10-10r6086: default to stderr for error messages in ldb, so we get errors in ↵Andrew Tridgell1-1/+1
ldb_connect() (This used to be commit a6e492f95c6f31ed37ee32a13a34fa2847d8352d)
2007-10-10r5670: simplify and clarify ldb_modules.c codeSimo Sorce1-135/+147
rectify the test schema correct a glitch in schema module (This used to be commit 0579b5f7adfe160be8ecf124934b6593a02ed06f)
2007-10-10r5665: the data within el2->values can still be used at this point, so don't ↵Andrew Tridgell1-1/+0
free (This used to be commit 12d03f96637b9298e0cbc7ee544ca97fffcab9f8)
2007-10-10r5664: simo, please look into this. It is possible for the number of elementsAndrew Tridgell1-1/+3
in msg[0] to be 0, in which case we crash. This is a workaround. Also, if you could please split up this function into readable pieces. It's a bit of a mess at the moment. (This used to be commit 19a22f78c28a4b265f59df1b43c1bb6c9e58f736)
2007-10-10r5585: LDB interfaces change:Simo Sorce2-39/+75
changes: - ldb_wrap disappears from code and become a private structure of db_wrap.c thanks to our move to talloc in ldb code, we do not need to expose it anymore - removal of ldb_close() function form the code thanks to our move to talloc in ldb code, we do not need it anymore use talloc_free() to close and free an ldb database - some minor updates to ldb modules code to cope with the change and fix some bugs I found out during the process (This used to be commit d58be9e74b786a11a57e89df36081d55730dfe0a)
2007-10-10r5357: added ldb_msg_add_fmt(), for creating formatted ldb record valuesAndrew Tridgell1-0/+22
(This used to be commit 18fb48204f4c0e22ea7e61575b3f174f30ff035c)
2007-10-10r5092: Add a bit more const - moving it further into the LDB layer.Andrew Bartlett1-2/+2
Andrew Bartlett (This used to be commit ffad9b22be595279b247fa72d51145830fecbb06)
2007-10-10r4714: move the ldb code to the new talloc interface (eg remove _p suffix)Simo Sorce4-23/+23
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 (This used to be commit a681ae365ff1b5a2771b42ebd90336651ce1e513)
2007-10-10r4678: Add some const to LDB.Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit d4da9fb1600dba5daca9acb83f528c8f5f42f0ce)
2007-10-10r4505: Add a first very basic schema moduleSimo Sorce1-2/+2
To use it you should provide a schema.ldb file where the schema is stored and load the module in the ldb you want to have schema check activated more info soon. currently schema checks are performed only on new object creation not on modifications Simo. (This used to be commit b8bb62f14419efd434a344606fb3f753384761a0)
2007-10-10r4477: expanded the test suite to increase code coverage a lotAndrew Tridgell1-51/+0
(This used to be commit 4edbd1b18ee38e584cf844b64c7fcb2645921837)
2007-10-10r4474: - converted ldb to use talloc internallyAndrew Tridgell6-326/+110
- added gcov flags to Makefile.ldb - expanded ldb test suite to get more coverage (This used to be commit 0ab98f50a7e0fe15347a99e5c29a6590a87729a0)
2007-10-10r4473: - moved talloc into its own lib/talloc/ areaAndrew Tridgell1-997/+0
- added gcov flags to Makefile.talloc - expanded talloc testsuite to add a test for realloc with a child ptr - fixed a bug in talloc_realloc() with realloc of a ptr that has child ptrs (This used to be commit 98b5f73c1ba34d7576c5995069b485c1c5ede324)
2007-10-10r4466: rather than defining "STANDALONE" for building tdb, ldb and tallocAndrew Tridgell1-0/+997
outside the tree, instead defined _SAMBA_BUILD_ inside the Samba build. This makes it easier to pull code out of Samba for external use. (This used to be commit 09e98c8745cca7ccb1ad7134c0c09b8e4c0f4f06)
2007-10-10r4427: - added ldb_msg_*() functions for sorting, comparing and copying messagesAndrew Tridgell1-0/+134
- added a ldb_msg_canonicalize() function that fixes a record to not have any duplicate elements - changed ldbedit to use ldb_msg_canonicalize(). This fixes a bug when you rename multiple elements in a record in one edit (This used to be commit f006e724400843419c8b6155cbeae1876983855e)
2007-10-10r4059: moved the ldb -o option parsing to a common routineAndrew Tridgell1-0/+20
(This used to be commit ee52c1e38c9bac852458196ffbd677cca62a3965)
2007-10-10r4010: fixed parsing of null attributes in the ldb ldif parserAndrew Tridgell1-2/+6
(This used to be commit b4fd76f78eadd8648ceed508766235e80702aa8f)
2007-10-10r3897: add a locking infrastructureSimo Sorce1-0/+16
(This used to be commit a99c0adb09e2bc77b876d23cb2d0711ccffd83ca)
2007-10-10r3783: - don't use make proto for ldb anymoreStefan Metzmacher9-5/+48
- 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 (This used to be commit f5ee40d6ce8224e280070975efc9911558fe675c)
2007-10-10r3782: use ldb_ namespaceStefan Metzmacher1-1/+1
metze (This used to be commit 9003698e0fba28551d41d41dec159cc9c42ce7d2)
2007-10-10r3757: Some fixes for ldb_ldapSimo Sorce1-1/+1
Now we pass also the test-ldap tests :-) (This used to be commit 0d58b1dc5aa0b00a924c1c5506f0c500c0b37b3e)
2007-10-10r3755: add missing filesSimo Sorce1-0/+265
(This used to be commit 0b715b6ce21d23970d207d57e90133be17790d15)
2007-10-10r3754: merge in ldb modules support from the tmp branch ldbPluginsSimo Sorce1-31/+25
(This used to be commit 71323f424b4561af1fdddd2358629049be3dad8c)
2007-10-10r3449: more include file reductionAndrew Tridgell3-0/+3
the ldb part isn't ideal, I will have to think of a better solution (This used to be commit 6b1f86aea8427a8e957b1aeb0ec2f507297f07cb)
2007-10-10r3093: - implment ldb_rename() and ldbrenameStefan Metzmacher1-0/+11
- 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 (This used to be commit 18552f4786c24e0019cc87726ef4c05365fe586e)
2007-10-10r2792: got rid of talloc_ldb_alloc() and instead created talloc_realloc_fn(),Andrew Tridgell1-2/+2
so talloc now doesn't contain any ldb specific functions. allow NULL to be passed to a couple more talloc() functions (This used to be commit 1246f80d806fb5f63cfbf3879de6d546384552a8)
2007-10-10r2055: Add PRINTF_ATTRIBUTE to many more parts of the code, and a newAndrew Bartlett3-1/+5
--enable-developer warning for when they are missing. Andrew Bartlett (This used to be commit 8115e44d47bcd65edba08d10117180ae508cdbc1)
2007-10-10r1374: Fix signed/unsigned warnings (actually found by g++) after unsigned intTim Potter3-8/+8
changes in r1018. (This used to be commit 45b4016530fc0bfa13146f73a503866b5dbed517)
2007-10-10r1018: fix a const and unsigned int problem in ldbAndrew Tridgell1-2/+2
(This used to be commit 3d52ca93731ad67c14ac42f627e3feb1a964b29a)
2007-10-10r943: change samba4 to use 'uint8_t' instead of 'unsigned char'Stefan Metzmacher1-3/+3
metze (This used to be commit b5378803fdcb3b3afe7c2932a38828e83470f61a)
2007-10-10r873: converted samba4 to use real 64 bit integers instead ofAndrew Tridgell1-0/+22
structures. This was suggested by metze recently. I checked on the build farm and all the machines we have support 64 bit ints, and support the LL suffix for 64 bit constants. I suspect some won't support strtoll() and related functions, so we will probably need replacements for those. (This used to be commit 9a9244a1c66654c12abe4379661cba83a73c4c21)
2007-10-10r792: - changed the ldb ldif_* functions to be in the ldb_ namespaceAndrew Tridgell2-14/+15
- 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 (This used to be commit 36575396234e3d35dbd442c8f1ff54a17ae64e64)
2007-10-10r601: added the server code for all the samr_SetUserInfo and ↵Andrew Tridgell1-14/+22
samr_QueryUserInfo levels except for the password set levels. This means that a large part of the RPC-SAMR torture test now runs correctly against Samba4 (This used to be commit ec0a51898f543578e755207d81ed5c1524861c64)