ldb-samba: Implement transitive extended matching
authorSamuel Cabrero <samuelcabrero@kernevil.me>
Fri, 24 Oct 2014 15:52:47 +0000 (17:52 +0200)
committerGarming Sam <garming@samba.org>
Sun, 21 Dec 2014 23:18:09 +0000 (00:18 +0100)
commit2a22ba34cd6f28950246b54c6577c922c61f4fdb
tree37e17b8ea4a9c87968e11d5a635ed3a5a74ee350
parent913cd47875eabefc9090c05066b6b2a5acbe9977
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>
lib/ldb-samba/ldb_matching_rules.c [new file with mode: 0644]
lib/ldb-samba/ldb_matching_rules.h [new file with mode: 0644]
lib/ldb-samba/ldif_handlers.c
lib/ldb-samba/wscript_build