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

20 Commits

Author SHA1 Message Date
Andrew Tridgell
f6818daecc r10913: This patch isn't as big as it looks ...
most of the changes are fixes to make all the ldb code compile without
warnings on gcc4. Unfortunately That required a lot of casts :-(

I have also added the start of an 'operational' module, which will
replace the timestamp module, plus add support for some other
operational attributes

In ldb_msg_*() I added some new utility functions to make the
operational module sane, and remove the 'ldb' argument from the
ldb_msg_add_*() functions. That argument was only needed back in the
early days of ldb when we didn't use the hierarchical talloc and thus
needed a place to get the allocation function from. Now its just a
pain to pass around everywhere.

Also added a ldb_debug_set() function that calls ldb_debug() plus sets
the result using ldb_set_errstring(). That saves on some awkward
coding in a few places.
2007-10-10 13:39:41 -05:00
Andrew Tridgell
45f0c967b5 r10759: make modules easier to write by allowing modules to only implement the
functions they care about, instead of all functions. This also makes
it more likely that future changes to ldb will not break existing
modules
2007-10-10 13:39:27 -05:00
Andrew Tridgell
7e44f9153c r10753: don't require every ldb module to implement both a search_bytree() and
a search() function, instead each module now only implements the
bytree method, and the expression based search is handled generically
by the modules code. This makes for more consistency and less code
duplication.

fixed the tdb backend to handle BASE searches much more
efficiently. They now always only lookup one record, regardless of the
search expression
2007-10-10 13:39:26 -05:00
Simo Sorce
c2bb2a36bd r10477: expose transactions outside ldb and change the API once more
do not autostart transactions on ldb operations if a transaction is already in place
test transactions on winsdb

all my tests passes so far
tridge please confirm this is ok for you
2007-10-10 13:38:52 -05:00
Simo Sorce
3fc676ac1d r10305: start implementing better error handling
changed the prioivate modules API
error string are now not spread over all
modules but are kept in  a single place.

This allows a better control of memory
and error reporting.
2007-10-10 13:38:16 -05:00
Simo Sorce
1da4ac2cdc r10299: remove the public (un)lock functions and introduce a transaction based
private ldb API

ldb_sqlite3 is already working with this model and ldb_tdb will do
as soon as tridge finishes the tdb transaction code.

currently the transactions are always implicit and wrap any single
ldb API call except searching, the transaction functions are
currently not made public on purpose.

Simo.
2007-10-10 13:38:14 -05:00
Jelmer Vernooij
071dba2d0a r9948: Be a bit less verbose 2007-10-10 13:36:24 -05:00
Jelmer Vernooij
8ff1358f40 r9915: Some more mappings. Fix weird sAMAccountName values. 2007-10-10 13:36:21 -05:00
Jelmer Vernooij
4c3b37d660 r9912: Fix another bug in ldb_map. 2007-10-10 13:36:21 -05:00
Jelmer Vernooij
ebed25b47d r9908: Generate posixUser and posixGroup as well 2007-10-10 13:36:21 -05:00
Jelmer Vernooij
76e943d441 r9899: Be more conservative about what is sent to the remote server in ldb_map. 2007-10-10 13:36:21 -05:00
Tim Potter
31069bfd18 r9881: I can't believe this can make a difference... 2007-10-10 13:36:20 -05:00
Tim Potter
c34fbdc6c3 r9880: Convert remaining initialisers to more portable form. This should
clean out a lot of build farm breakage.
2007-10-10 13:36:19 -05:00
Tim Potter
7cc8df0c2f r9879: A quick check to see if nested initialisers (?) is portable across the
build farm.  I have a feeling it isn't.
2007-10-10 13:36:19 -05:00
Jelmer Vernooij
d6dce7ef3e r9857: Fix rename/delete issues 2007-10-10 13:36:18 -05:00
Jelmer Vernooij
de2bde2526 r9854: Finish ldb_map testsuite
Update PLAN
Some more small other fixes
2007-10-10 13:36:18 -05:00
Jelmer Vernooij
b7992de4b7 r9842: More error checks in the ldb_map modules, extend testsuite 2007-10-10 13:36:17 -05:00
Jelmer Vernooij
2283a336e0 r9835: Make ldb_map compile in the stand-alone LDB build 2007-10-10 13:36:17 -05:00
Jelmer Vernooij
9a1a7fb60e r9789: Patch from Volker that fixes the build on AIX. 2007-10-10 13:35:01 -05:00
Jelmer Vernooij
eb9d615bcd r9786: Move ldb_map into ldb/modules/
Move samba3sam to dsdb/
2007-10-10 13:35:01 -05:00