1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-28 12:23:49 +03:00
Commit Graph

33 Commits

Author SHA1 Message Date
Derrell Lipman
8e1431efcf r7897: work in progress 2007-10-10 13:18:47 -05:00
Simo Sorce
5b41e32024 r7851: We are case preserving let the DN be returned the same the user put it into.
sss
2007-10-10 13:18:42 -05:00
Derrell Lipman
863beef35b r7844: eliminate superfluous attribute tables 2007-10-10 13:18:42 -05:00
Derrell Lipman
1dd8650055 r7828: Although there is still plenty to do, ldb_sqlite3 now passes the set of tests
in tests/test-sqlite3.sh (tests/test-generic.sh).

There are lots of optimizations still TBD, and some things are REALLY slow
right now (e.g. each add() operation takes 1/3 - 1/2 second) but it's ready for
interested parties to poke it and prod it and see how (un)reasonable it is.
Play away.

Still to be implemented or improved:
 - tdb specials (@MODULES, @SUBCLASSES, etc.)
 - all DNs are case-folded in their entirty right now (since doing otherwise
   would require @ATTRIBUTES to be implemented)
 - speed improvements and optimizations.  I am quite confident that the
   excessively slow add() operation can be much improved, and other areas
   can be somewhat improved.
2007-10-10 13:18:41 -05:00
Andrew Tridgell
f648fdf187 r7709: - convert ldb to use popt, so that it can interact with the samba
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
2007-10-10 13:18:24 -05:00
Derrell Lipman
0a64948152 r7601: ldb_sqlite3 work in progress 2007-10-10 13:18:13 -05:00
Derrell Lipman
86ca8639e0 r7586: ldb_sqlite3 making progress. add and search have indicated a willingness to operate properly on initial testing 2007-10-10 13:18:11 -05:00
Derrell Lipman
d8a9ce7853 r7562: work in progress 2007-10-10 13:18:09 -05:00
Andrew Tridgell
5f773b065f r7558: added support in ldb for extended ldap search requests. These are
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
2007-10-10 13:18:08 -05:00
Andrew Tridgell
96620ab2ee r7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_tree
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()
2007-10-10 13:18:06 -05:00
Derrell Lipman
797263330b r7498: ldb_sqlite3 work in progress 2007-10-10 13:18:00 -05:00
Derrell Lipman
510e7994da r7480: ldb_sqlite3 work in progress 2007-10-10 13:17:57 -05:00
Derrell Lipman
0e3b872560 r7449: add ctype.h header to dn expand function 2007-10-10 13:17:54 -05:00
Derrell Lipman
7543acfa9f r7443: reorg functions for readability 2007-10-10 13:17:54 -05:00
Derrell Lipman
2fc5343f06 r7438: work in progress 2007-10-10 13:17:53 -05:00
Derrell Lipman
61dcb462f3 r7437: Make Simo happy.
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.
2007-10-10 13:17:53 -05:00
Derrell Lipman
2a13e7655b r7418: work in progress 2007-10-10 13:17:51 -05:00
Derrell Lipman
588a1d1451 r7408: added DN explode function, based on simo's ldap_parse_dn() function. simo, when you get a chance, please change your license so this can be linked with ldb. 2007-10-10 13:17:50 -05:00
Derrell Lipman
0e4d9729d9 r7349: work in progress 2007-10-10 13:17:45 -05:00
Simo Sorce
d36fde5c0c r7343: handle url like ldb_tdb does 2007-10-10 13:17:45 -05:00
Derrell Lipman
8fa340c1d4 r7332: added note to self for required modification 2007-10-10 13:17:43 -05:00
Derrell Lipman
84a2b4049f r7316: work in progress 2007-10-10 13:17:41 -05:00
Andrew Bartlett
5a1ef88810 r7292: Fix up the build system support for derrell's sqlite3 ldb backend.
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
2007-10-10 13:17:37 -05:00
Derrell Lipman
94cbef9211 r7287: work in progress. no more time to work on this right now. save latest changes. 2007-10-10 13:17:36 -05:00
Derrell Lipman
d934c42b00 r7282: ldb_sqlite3 work in progress. 2007-10-10 13:17:36 -05:00
Derrell Lipman
6867d56796 r7281: removing document 2007-10-10 13:17:36 -05:00
Derrell Lipman
603faa9cab r7280: taking advantage of previous research. this is documentation on which latest schema is based 2007-10-10 13:17:35 -05:00
Derrell Lipman
a80bced0b9 r7276: - moved static tdb function ltdb_dn_fold() into common/ so that it can be
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
2007-10-10 13:17:35 -05:00
Derrell Lipman
676a982493 r7260: save current schema before I blow it away to try something different 2007-10-10 13:17:33 -05:00
Derrell Lipman
aa9bb6ad4c r7133: work in progress, including a HIGHLY revised and simplified schema 2007-10-10 13:17:20 -05:00
Derrell Lipman
c860a4f994 r7116: work in progress 2007-10-10 13:17:18 -05:00
Derrell Lipman
7aca32dca6 r6984: added tree representation documentation and utility code, to be used for subclasses of object classes 2007-10-10 13:17:02 -05:00
Derrell Lipman
ac396a4a53 r6956: added start of ldb_sqlite3 work 2007-10-10 13:17:00 -05:00