summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r7709: - convert ldb to use popt, so that it can interact with the sambaAndrew Tridgell23-689/+343
cmdline credentials code (which will be done soon) - added a ldb_init() call, and changed ldb_connect() to take a ldb context. This allows for much better error handling in ldb_connect(), and also made the popt conversion easier - fixed up all the existing backends with the new syntax - improved error handling in *_connect() - fixed a crash bug in the new case_fold_required() code - ensured that ltdb_rename() and all ltdb_search() paths get the read lock - added a ldb_oom() macro to make it easier to report out of memory situations in ldb code (This used to be commit f648fdf187669d6d87d01dd4e786b03cd420f220)
2007-10-10r7669: removed ldap from our configure testsAndrew Tridgell2-17/+0
This takes our link dependencies from this: tridge@blu:~/samba/samba4/source$ ldd bin/ldbsearch libdl.so.2 => /lib/tls/libdl.so.2 (0xb7fc9000) libldap_r.so.2 => /usr/lib/libldap_r.so.2 (0xb7f92000) liblber.so.2 => /usr/local/lib/liblber.so.2 (0xb7f85000) libpam.so.0 => /lib/libpam.so.0 (0xb7f7d000) libc.so.6 => /lib/tls/libc.so.6 (0xb7e48000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000) libresolv.so.2 => /lib/tls/libresolv.so.2 (0xb7e36000) libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0xb7e09000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7df3000) libgnutls.so.11 => /usr/lib/libgnutls.so.11 (0xb7d8c000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7d7d000) libtasn1.so.2 => /usr/lib/libtasn1.so.2 (0xb7d6d000) libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0xb7d20000) libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb7d1c000) libz.so.1 => /usr/lib/libz.so.1 (0xb7d09000) libnsl.so.1 => /lib/tls/libnsl.so.1 (0xb7cf5000) to this: tridge@blu:~/samba/samba4/source$ ldd bin/ldbsearch libdl.so.2 => /lib/tls/libdl.so.2 (0xb7fc9000) libpam.so.0 => /lib/libpam.so.0 (0xb7fc0000) libc.so.6 => /lib/tls/libc.so.6 (0xb7e8b000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000) this finally gets rid of the implicit dependency on pthreads! Yay! (This used to be commit 844d2a20830a4666b6c38f6a58305be64b6b76fa)
2007-10-10r7667: added a ldb ildap backend, using our internal ldap client library. ↵Andrew Tridgell4-1/+421
Next step is to remove the check for the ldap libraries in configure (This used to be commit 74841dbb2a86bb1c584b5c26c4cd24a818a65a34)
2007-10-10r7666: fixed a memory leak in the ldap ldb backendAndrew Tridgell1-3/+2
(This used to be commit ac3f33c61555a2afa30fe446676013564982e257)
2007-10-10r7635: change the license of this file to lgpl like the rest of ldbSimo Sorce1-14/+30
(This used to be commit 8735188b46d4bb6c3d63d22a8c6f3fad2c82df89)
2007-10-10r7615: fix the build and simplify gendb_search_dnSimo Sorce1-1/+1
(This used to be commit b38bb63175ae0bdcf833c017e5fbbfc2c0769506)
2007-10-10r7608: bug fix after yesterday's changeSimo Sorce1-1/+1
(This used to be commit 0218fc678e375a05fbc4da5500706199340918e2)
2007-10-10r7602: fix some compiler warningsDerrell Lipman3-3/+3
(This used to be commit ce9966e091d36f66d409ac6f7b5e462c9dc37325)
2007-10-10r7601: ldb_sqlite3 work in progressDerrell Lipman5-47/+231
(This used to be commit 0a64948152a446b5e127578d49b1ed8a90a1a222)
2007-10-10r7596: next step in ldap cleanup. I'm aiming to get rid of the cut&pastedAndrew Tridgell1-3/+5
ldif parsing code in libcli/ldap/ldap_ldif.c, and instead use the ldb ldif code. To do that I have changed the ldap code to use 'struct ldb_message_element' instead of 'struct ldap_attribute'. They are essentially the same structure anyway, so by making them really the same it will be much easier to use the ldb code in libcli/ldap/ I have also made 'struct ldb_val' the same as a DATA_BLOB, which will simplify data handling in quite a few places (I haven't yet removed all the code that maps between these two, that will come later) (This used to be commit 87fc3073392236221a3a6b933284e9e477c24ae5)
2007-10-10r7586: ldb_sqlite3 making progress. add and search have indicated a ↵Derrell Lipman3-379/+306
willingness to operate properly on initial testing (This used to be commit 86ca8639e0ddc2525f8ed0ca9879d9f98c0cd00e)
2007-10-10r7582: Better way to have a fast path searching for a specific DN.Simo Sorce5-13/+20
Old way was ugly and had a bug, you couldn't add an attribute named dn or distinguishedName and search for it, tdb would change that search in a dn search. This makes it also possible to search by dn against an ldap server as the old method was not supported by ldap syntaxes. sss (This used to be commit a614466dec2484a0d39bdfae53da822cfcf80926)
2007-10-10r7572: fixed filter in test suiteAndrew Tridgell1-1/+1
(This used to be commit 73d2e5df0ccf4ab1b78a1044058efd8e2479aa1a)
2007-10-10r7571: fixed the generation of the filter string for extended filtersAndrew Tridgell1-1/+1
(This used to be commit 348a86e64392245571204ac5004e73221ac441f5)
2007-10-10r7564: added a test showing the search expression that w2k is actually givingAndrew Tridgell1-0/+19
us that triggered this work (This used to be commit 853b8cd72dbb8c50d527e66aa7b5692060b66d2b)
2007-10-10r7562: work in progressDerrell Lipman1-323/+699
(This used to be commit d8a9ce78533639f510b60b48c8f305bd07f3f717)
2007-10-10r7561: moved OID constants into ldb.h and used manifest constants in ldb_match.cDerrell Lipman2-2/+8
(This used to be commit 42cbb155c20779c458f727488c8554842b24681b)
2007-10-10r7560: added tests for extended bitop search functionsAndrew Tridgell2-0/+50
(This used to be commit 7b58b3a9c53952f606eb75f5e916e0cf994b2d06)
2007-10-10r7559: support 64 bit matching in bitopsAndrew Tridgell1-6/+6
(This used to be commit 0c44a67001b9ae91c1ba7fc52f22d1eafc22dcc7)
2007-10-10r7558: added support in ldb for extended ldap search requests. These areAndrew Tridgell6-14/+193
using to perform such things as bitop tests on integers. So far I have only added support for the 1.2.840.113556.1.4.803 and 1.2.840.113556.1.4.804 rules, which are for bitwise and/or (This used to be commit 5f773b065f1db959e59c02de68bcf30cef1a6c2c)
2007-10-10r7533: don't show compile flags for each fileAndrew Tridgell1-0/+4
(This used to be commit 6a9ab148a98490e52da81d4ddedf42af2b5bf1a7)
2007-10-10r7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_treeAndrew Tridgell17-154/+216
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-10r7526: make test should depend on the binsAndrew Tridgell1-1/+1
(This used to be commit 646953df4c272581211ba30dc77e1052ea1f465e)
2007-10-10r7522: added a ldb_filter_from_tree() function that takes a ldb_parse_treeAndrew Tridgell2-3/+57
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-10r7518: don't use an uninitialised ldb debug function when failing to load ↵Andrew Tridgell1-0/+2
modules in the ldap backend (This used to be commit 52e4a5b3b0c4c96bf9686ce047ccfc1846dc2c89)
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 Tridgell2-2/+69
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 Tridgell3-16/+5
potentially use it in our ldap client code, instead of replicating all the code (This used to be commit 5b3575d9303d54a771e080a670dcd2f444b10c20)
2007-10-10r7498: ldb_sqlite3 work in progressDerrell Lipman2-44/+153
(This used to be commit 797263330b9eada019e432ff201bf5c872e35b5d)
2007-10-10r7480: ldb_sqlite3 work in progressDerrell Lipman2-15/+109
(This used to be commit 510e7994da808ab12f51fa7a36c3f5f9244c51ac)
2007-10-10r7449: add ctype.h header to dn expand functionDerrell Lipman2-23/+25
(This used to be commit 0e3b872560d82e1a0f7b58fe7d210563d6d29daf)
2007-10-10r7446: add distclean target to generated ldb makefileDerrell Lipman1-0/+6
(This used to be commit 9a78161b0fdb3406c70b9f5a8009ed8fc5268445)
2007-10-10r7443: reorg functions for readabilityDerrell Lipman1-667/+724
(This used to be commit 7543acfa9fe87b43cfee482cf02e56d73d29596b)
2007-10-10r7438: work in progressDerrell Lipman4-230/+177
(This used to be commit 2fc5343f0637ef3109b079dbc33d6cf4e58c8d5e)
2007-10-10r7437: Make Simo happy.Derrell Lipman1-1/+1
I still think this URI syntax for a 'protocol' which has no network component is stupid; it should just be sqlite:local_file or sqlite:/full/path/to/file but there is enough precedent to warrant the behavior that Simo wants that it is not worth arguing. (This used to be commit 61dcb462f30a65256e263e87c192ed7f5280c7af)
2007-10-10r7418: work in progressDerrell Lipman5-102/+187
(This used to be commit 2a13e7655b1bce88694ddbb6a4d9349008ba42f0)
2007-10-10r7410: minor cleanupDerrell Lipman2-12/+18
(This used to be commit 4c8bffc3f01d60ef7d8b75e92f4d062326288f4c)
2007-10-10r7408: added DN explode function, based on simo's ldap_parse_dn() function. ↵Derrell Lipman4-15/+542
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-10r7349: work in progressDerrell Lipman1-106/+299
(This used to be commit 0e4d9729d99a1a148a951878188fe1955713aea4)
2007-10-10r7343: handle url like ldb_tdb doesSimo Sorce1-5/+10
(This used to be commit d36fde5c0cfe20d03dd99e2ffffdd13acf9f76f3)
2007-10-10r7338: let it be possible to run sqlite3 tests when it is compiled inSimo Sorce3-3/+26
make it also so that we do not run test for modules we do not compile in (This used to be commit c226c1c7a393b398510dec0931aba2ddd09af4c3)
2007-10-10r7336: make --with-sqlite3=auto possibleStefan Metzmacher1-6/+4
metze (This used to be commit cd59ff50ed00526c2af5ebddfb1fca942ba8faa6)
2007-10-10r7334: I do not feel oblidged to use sqlite3 when I configure ldap support :-)Simo Sorce1-1/+1
(fix typo) (This used to be commit d6dae85881a5b49c8a5484a0d155aea4f0beb16e)
2007-10-10r7332: added note to self for required modificationDerrell Lipman1-0/+1
(This used to be commit 8fa340c1d4423673e5a935f815491534413d9536)
2007-10-10r7316: work in progressDerrell Lipman1-147/+237
(This used to be commit 84a2b4049fde7db0d563e639e99364f40a47ace9)
2007-10-10r7293: Turn sqlite3 support off by default, use --with-sqlite3 to re-enable.Andrew Bartlett1-3/+4
Andrew Bartlett (This used to be commit 422579215462c31dd863ab1b7f187003dafd0af2)
2007-10-10r7292: Fix up the build system support for derrell's sqlite3 ldb backend.Andrew Bartlett2-5/+19
It is on by default, so I've also fixed a build issue in it. I'll show how to make it off be default in the next commit. Andrew Bartlett (This used to be commit 5a1ef888100e8ef803100a6341133d96e8a400b0)
2007-10-10r7287: work in progress. no more time to work on this right now. save ↵Derrell Lipman2-6/+55
latest changes. (This used to be commit 94cbef9211597d8cdd6b5ab7bc9b655026be283a)
2007-10-10r7286: add prototype for public connect function in ldb_sqlite3Derrell Lipman1-0/+3
(This used to be commit 10d438af06b3ab442c7a98b704d2e0bfe49b739d)