1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/lib/ldb-samba
Adrian Cochrane c505076422 Fix propagation of LDB errors through TDB.
Returning a non-zero value from a tdb_traverse callback indicates that tdb_traverse
should stop traversing the database. This error code IS NOT propagated back to the
caller, so LTDB must record the error otherwise. This patch corrects LTDB for this
misunderstanding.

Naturally exposing these errors changes the behaviour of some tests. This commit fixes
that as well.

Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2015-12-04 06:08:29 +01:00
..
tests Fix propagation of LDB errors through TDB. 2015-12-04 06:08:29 +01:00
ldb_ildap.c ldb_ildap: Map some wrong username/password errors on to LDB_ERR_INVALID_CREDENTIALS 2014-04-02 17:12:46 +02:00
ldb_wrap.c ldb: Fix a "ignoring return value" warning 2015-10-28 19:04:15 +01:00
ldb_wrap.h ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
ldif_handlers.c Revert "ldb-samba: Implement transitive extended matching" 2015-08-17 17:43:36 +02:00
ldif_handlers.h ldb-samba: implement --show-binary for msDS-RevealedUsers 2015-03-12 17:13:43 +01:00
pyldb.c Remove use of the "staticforward" macro 2015-01-22 10:51:07 +01:00
README ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
samba_extensions.c ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
wscript_build Revert "ldb-samba: Implement transitive extended matching" 2015-08-17 17:43:36 +02:00

This directory contains Samba specific extensions to ldb. It also
serves as example code on how to extend ldb for your own application.

The main extension Samba uses is to provide ldif encode/decode
routines for specific attributes, so users can get nice pretty
printing of attributes in ldbedit, while the attributes are stored in
the standard NDR format in the database.