summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r9621: Bunch of bug fixes. Add 'format' option to samba3dump (text,summary,ldif)Jelmer Vernooij1-2/+1
(This used to be commit dc6aab8d4a6d0fe47756c90d3d311b6009d571ff)
2007-10-10r9616: Finish ldb_map module (still needs a lot of testing though...)Jelmer Vernooij2-46/+485
Add initial mapping table for ldb_samba3. Contains most attributes. (This used to be commit b73441b04d048919e95ee7f7bcae330c4dafefe7)
2007-10-10r9595: Add ldb map moduleJelmer Vernooij4-50/+271
(This used to be commit e0a0d3f092d601a22b7549a0278735e66239b301)
2007-10-10r9591: - Remove empty fileJelmer Vernooij2-1/+30
- Fix a couple of typo's - Fix build of lib/samba3/secrets.c for systems that don't have /usr/include/tdb.h... (This used to be commit b8c52900636515d1215ae79a70416db93ce4531c)
2007-10-10r9451: some fixes now core.schema and cosine.schema are also read properlySimo Sorce1-5/+29
(This used to be commit 0a26ee04322a06069be48dbc33307e4997700f74)
2007-10-10r9447: Add a new tool to convert openLdap schema files into an ldifSimo Sorce4-7/+604
My first test with nis.schema seem to confirm it works properly Use a command line like: oLschema2ldif -I tests/schema/nis.schema -O nis_schema.ldif -b "dc=sambadom,dc=samba,dc=org" to see how it works. SSS (This used to be commit fc373fd4631420c9d8d4087a2c698b08e18372d7)
2007-10-10r9446: clean up old test fileSimo Sorce1-559/+37
(This used to be commit 10e4ebcc4233de7c89eb25b679db69b41b3d8273)
2007-10-10r9438: Add initial files for ldb_mapJelmer Vernooij2-0/+58
(This used to be commit a66eeadecdcc5f67dd34c4ae82f5ae9191163499)
2007-10-10r9394: avoid to use BOOL in ldbSimo Sorce2-8/+4
(This used to be commit d2055849fba56e8620403621f3fb9684f24e853f)
2007-10-10r9393: Fix ldb standalone buildSimo Sorce2-0/+6
(This used to be commit 796d0ea2fcf5132b157a397cc1a54aa26c042691)
2007-10-10r9392: Fix ldb_dn_compose to make build farm happySimo Sorce2-5/+22
Add ldb_dn_string_compose so that you can build a dn starting from a struct ldb_dn base and a set of parameters to be composed in a format string with the same syntax of printf (This used to be commit 31c69d0655752cc8ea3bc5b7ea87792291302091)
2007-10-10r9391: Convert all the code to use struct ldb_dn to ohandle ldap like ↵Simo Sorce29-422/+959
distinguished names Provide more functions to handle DNs in this form (This used to be commit 692e35b7797e39533dd2a1c4b63d9da30f1eb5ba)
2007-10-10r9387: regedit uses "New Key #nn" for newly created keys, which conflicts ↵Andrew Tridgell2-1/+2
with the stricter DN rules in ldb. Escape the DN components to cope. Simo, sorry for making a change in ldb_dn.c while you have changes pending. Please feel free to revert these and switch reg_backend_ldb.c to use the new dn construction code. (This used to be commit 136ecf5cb23758558b4119b08047fc273be8b0f8)
2007-10-10r9318: fix searches with scope ONE and SUB,Stefan Metzmacher2-1/+5
the problem was that ldb_dn_compare_base() just looked at if both dn's mtach some how, and the following happens: basedn: CN=bar,DC=foo,DC=com dn: DC=foo,DC=com and dn: DC=foo,DC=com was return as result of a sub and base search and also the ONE search with basedn: DC=foo,DC=com returned this dn: CN=bla,CN=bar,DC=foo,DC=com metze (This used to be commit 2a107472c373e425013050e28b944c830f653a87)
2007-10-10r8966: Simplify the makefile generation system a bit.Jelmer Vernooij1-0/+7
Autogenerate list of binaries (rather then having them hardcoded in build/smb_build/makefile.pm) Add INSTALLDIR keyword to .mk files (This used to be commit ce0935112b846486cf705ec69f12350be9c4c89d)
2007-10-10r8917: Better support for extended ldap search operationsSimo Sorce1-0/+2
Try to follow the RFC where possible and adapt to openLdap and AD way of handling this structure (This used to be commit d844d45d87b4114bc1b9af2e40f8c27ba3e219de)
2007-10-10r8810: Fix missing headers. Still doesn't fix the build but getting closer ↵Rafal Szczesniak1-0/+1
there. rafal (This used to be commit bc638cc3d66525cf91ef76eb0c486542fff2b929)
2007-10-10r8779: Add rdn module to makefile and headersSimo Sorce3-2/+5
Search by distinguishedName as if searching by dn (This used to be commit 1d4046136255aead319ab08da229146dbd285b38)
2007-10-10r8740: Extend the rdn_name module to handle adding the rdn as an attribute. ie:Andrew Bartlett1-1/+26
dn: cn=foo,ou=bar objectClass: person implies dn: cn=foo,ou=bar objectClass: person cn: foo (as well as a pile more default attributes) We also correct the case in the attirbute to match that in the DN (win2k3 behaviour) and I have a testsuite (in ejs) to prove it. This module also found a bug in our provision.ldif, so and reduces code complexity in the samdb module. Andrew Bartlett (This used to be commit 0cc58f5c3cce12341ad0f7a90cdd85a3fab786b3)
2007-10-10r8736: this fixes the ldb speed (raises BENCH-WINS from 15 ops/sec to over 4000)Andrew Tridgell1-0/+7
simo, we need to be careful to cope with this sort of direct dn query efficiently (This used to be commit 7b37923b726752101062fa8a92d3f96e41d55602)
2007-10-10r8669: The objectguid module belongs in Samba's ldb module collection, not inAndrew Bartlett3-234/+5
ldb, as it can't build without the NDR and GUID code. Also make it properly use the NDR encoding for the GUID (I forgot last time, and used a string), as well as set the dependencies on the module correctly. Andrew Bartlett (This used to be commit 8054abc76e5e3588cebc7fc01062a1223b7f140b)
2007-10-10r8668: fixed a segv during upgrade of a very old ldb.Andrew Tridgell1-0/+5
Thanks to volker for finding this one too. Keep them coming! (This used to be commit 756796ad2ea86a9471d1b09e66b1a74c4523f6f4)
2007-10-10r8667: Further simply the provision script, by removing the 'name' attribute.Andrew Bartlett4-21/+311
This is now calculated on the fly for every add and modify. Andrew Bartlett (This used to be commit ed1f2e029c840d2b3ecb49dbe6e8cd67588eeeed)
2007-10-10r8659: return ldif formatted attributes in the ejs ldb search call, so sids ↵Andrew Tridgell2-3/+3
show up as strings not binary blobs (This used to be commit d2c29a5a51f68cabb9ef587376bf0a6b936cdd76)
2007-10-10r8650: Use the timestamps and a new objectguid module rather than placingAndrew Bartlett3-0/+239
boilerplate attributes in every entry in provision.ldif. The next step will be to use templates. Andrew Bartlett (This used to be commit 940ed9827f5ab83b668a60a2b0110567dd54c3e2)
2007-10-10r8625: move the ldb_wrap logic into the ldb code. This logic is meant toAndrew Tridgell5-24/+130
avoid the horrors of posix locking, but it was preventing us having an ldb open twice with different options. Now each ldb open of the same file shares the same underlying tdb, but uses a different ldb structure (This used to be commit 4e090c66dfa1d2764e4693578d3845be3b8893f6)
2007-10-10r8601: fixed null termination in ltdb connect errorAndrew Tridgell1-1/+1
(This used to be commit 64b6586b57de0bf22f8779447d217a918b7024a0)
2007-10-10r8600: fixed null termination on some error messages in ldbAndrew Tridgell1-3/+3
(This used to be commit 326f0ad6fba8d78f104b93b49995e6c24f9493ef)
2007-10-10r8585: add to ldb and ldap comparison functionalitySimo Sorce5-257/+420
better pares filters Approx is currently only a stub need to dig more info to understand what it really means and how it works exactly (This used to be commit a9e8cd0bad27ed2b3c6a12302e787ba3c9a70a3c)
2007-10-10r8529: Matching against the wrong unionSimo Sorce1-2/+3
(This used to be commit 24a65b5ba6e31655bdf49be8076d758206694ac3)
2007-10-10r8520: fixed a pile of warnings from the build farm gcc -Wall output onAndrew Tridgell1-1/+1
S390. This is an attempt to avoid the panic we're seeing in the automatic builds. The main fixes are: - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats - use of NULL format statements to perform dn searches. - assumption that sizeof() returns an int (This used to be commit a58ea6b3854973b694d2b1e22323ed7eb00e3a3f)
2007-10-10r8517: fixed a crash bug in ldb_dn_compare_base()Andrew Tridgell1-2/+4
(This used to be commit 19d789e82526eff236aeed77ddc8d2606c5118b6)
2007-10-10r8515: ldb_dn_cmp now uses ldb_dn_compare so that the DNs are comparedSimo Sorce5-16/+35
on a content level not ona form level, his means that the 2 DNs: a) cn= user, dc=this, dc = is,dc=test b) cn=user,dc=this,dc=is,dc=test are now identical even if the string form differ (spaces) (This used to be commit 76d496c30867ae80434483a34b0d842523aed762)
2007-10-10r8490: make the ldb tests more portableAndrew Tridgell3-3/+3
(This used to be commit 6b20bcbeeb33a2cf6abc7bb251830ad6def9a79e)
2007-10-10r8485: - be friendly to shells other than bashAndrew Tridgell3-3/+6
- don't use /tmp in test paths, as that opens us to symlink attacks (This used to be commit 9f29cccbc1fb44cb0317911601456c190883f066)
2007-10-10r8414: Some C++ friendlyness fixes - 'not' is apparently a keyword in C++.Tim Potter3-5/+5
(This used to be commit bcfb3a45e4a5962fe763f8071d4458f4bd11605b)
2007-10-10r8394: Make sure the argument to ctype is*(3) macros are unsigned char asLove Hörnquist Åstrand4-10/+12
required by ISO C99. (This used to be commit 56fd21c806e816cf4c3d23881f26474f858b45e2)
2007-10-10r8377: forgot an ldif testSimo Sorce1-0/+4
(This used to be commit ed804262dc6abf01ffdeb03a36d94cf40b9f033c)
2007-10-10r8373: New wildcard matching code.Simo Sorce14-203/+413
This code applies correct ldap standard wildcard matching code removes WILDCARD matching from tdb @ATTRIBUTES, that's now handled independently adds some more tests for wildcard matching fixes dn comparison code in ldb_match (This used to be commit 4eb5863042011988d85092d7dde3d809aa15bd59)
2007-10-10r8364: fixed a valgrind bug spotted by simoAndrew Tridgell1-1/+1
(This used to be commit ef804e8f36f1835d5d61f69565f1195a70f37e74)
2007-10-10r8342: allow ldb_ldif_read_string() to continue in the string, so you canAndrew Tridgell2-4/+7
read multiple records (This used to be commit 4b11c00421b5152fd7d4be0be0db983bb310021d)
2007-10-10r8228: fix compiler warningsStefan Metzmacher1-9/+9
metze (This used to be commit 93c1d18021cbf08be1782b129c40d8769b1b559c)
2007-10-10r8224: - add objectGUID ldif_handlerStefan Metzmacher1-14/+140
- fix some compiler warnings metze (This used to be commit e6c39241bf93336d4c94c43f9d8beb69018fb74a)
2007-10-10r8146: fix compiler warningStefan Metzmacher1-7/+5
metze (This used to be commit 5fcaa21d67e399aab4af15f4f6f919203c1152e5)
2007-10-10r8084: do not leak memory on errorsSimo Sorce2-8/+6
(This used to be commit 2e328e6c2fc2c66b0d0de910cd43ab232049bc90)
2007-10-10r8083: check attribute type is valid (only ascii alphanum chars and '-' char)Simo Sorce1-0/+19
fail if not (This used to be commit b1a61cd5d03b4c61b81c810123ffeb3621831617)
2007-10-10r8082: large rewite of ldb_dn.cSimo Sorce15-345/+284
- we do not support multpiple attribute components anymore, makes code a lot easier they will be readded later if we found out they are really used, so far my tests show w2k3 do not handle them as well - fix escaping issues, move component value to be in an ldb_val structure still need to handle binary values case - make cononicalize functions leak less memory by giving a specific memory context - fix tests scripts so that test-ldap can start - make test not delete databases on completion so that I can inspect them (This used to be commit 624a73148d125690ce18515f19231d26df207738)
2007-10-10r8071: reduce the size of the default ldb tests. We run on some pretty low ↵Andrew Tridgell1-2/+2
powered machines in the farm, and don't want to chew too much cpu needlessly. (This used to be commit c03753faa46d52ae4606546b57962e10c41ea3ad)
2007-10-10r8043: increase shell compatibility of ldb testsAndrew Tridgell1-1/+1
(This used to be commit 60863b6faf7f78566052491340607cbb4b3f2e72)
2007-10-10r8041: remove a mis-spelled debug message :-)Andrew Tridgell1-1/+0
(This used to be commit 912fa269d293b3b55fc5fa65f9532614fe2e202d)