s4-ldb: added an optional operator_fn in the schema syntax
authorAndrew Tridgell <tridge@samba.org>
Wed, 13 Oct 2010 09:02:18 +0000 (20:02 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 13 Oct 2010 11:00:04 +0000 (11:00 +0000)
commit3d75111fd61d57d2a2fb9e19bf587effb0816339
tree8e3d8005ac2091b915ad78894ee22e858dd5c454
parentca4864cce695fa1530d8aab50dd82566fc67c6e3
s4-ldb: added an optional operator_fn in the schema syntax

this function takes the operator being invoked, which will allow
schema functions to provide more fine grained control over
comparisons.

The key bug this was introduced to fix is the incorrect handling of
the LDB_OP_PRESENT test for deleted linked attributes. The backends
are unaware of the deleted state of these links, so they cannot do a
LDB_OP_PRESENT test on their own.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
source4/lib/ldb/include/ldb.h
source4/lib/ldb/ldb_tdb/ldb_tdb.c
source4/lib/ldb/modules/rdn_name.c