1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/ldb-samba
Samuel Cabrero 177ac584c9 ldb-samba: Implement transitive extended matching
Documented in [MS-ADTS] section 3.1.1.3.4.4.3 LDAP_MATCHING_RULE_TRANSITIVE_EVAL

This allows a search filter such as:

 member:1.2.840.113556.1.4.1941:=cn=user,cn=users,dc=samba,dc=example,dc=com

This searches not only the member attribute, but also any member
attributes that point at an object with this member in them.  All the
various DN syntax types are supported, not just plain DNs.

Signed-off-by: Samuel Cabrero <samuelcabrero@kernevil.me>
(abartlet: Fixed compile error: return makes integer from pointer without a cast)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>

(returned to Samba by revert of
dc2d5ccd56, returning the original
commit 2a22ba34cd)

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2016-01-18 04:42:21 +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_matching_rules.c ldb-samba: Implement transitive extended matching 2016-01-18 04:42:21 +01:00
ldb_matching_rules.h ldb-samba: Implement transitive extended matching 2016-01-18 04:42:21 +01: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 ldb-samba: Implement transitive extended matching 2016-01-18 04:42:21 +01: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 ldb-samba: Implement transitive extended matching 2016-01-18 04:42:21 +01: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.