r17525: This is a merge from the Google Summer of Code 2006 project by Martin Kühl
authorAndrew Bartlett <abartlet@samba.org>
Sun, 13 Aug 2006 23:58:04 +0000 (23:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:15:33 +0000 (14:15 -0500)
commit027583e6de2a6981d1c0e8959e1e37bf758be8f9
treef256de0bd3edae21364179eb752b51f98e0bbb2d
parentcf863ef3e37a52de35ec848fa84b129ecb4491ec
r17525: This is a merge from the Google Summer of Code 2006 project by Martin Kühl
<mkhl@samba.org>.

Martin took over the work done last year by Jelmer, in last year's
SoC.  This was a substanital task, as the the ldb modules API changed
significantly during the past year, with the addition of async calls.

This changeset reimplements and enables the ldb_map ldb module and
adapts the example module and test case, both named samba3sam, to the
implementation.

The ldb_map module supports splitting an ldb database into two parts
(called the "local" and "remote" part) and storing the data in one of
them (the remote database) in a different format while the other acts
as a fallback.
This allows ldb to e.g. store to and load data from a remote LDAP
server and present it according to the Samba4 schema while still
allowing the LDAP to present and modify its data separately.

A complex example of this is the samba3sam module (by Jelmer
Vernooij), which maps data between the samba3 and samba4 schemas.

A simpler example is given by the entryUUID module (by Andrew
Bartlett), which handles some of the differences between AD and
OpenLDAP in operational attributes.  It principally maps objectGUID,
to and from entryUUID elements.  This is also an example of a module
that doesn't use the local backend as fallback storage.

This merge also splits the ldb_map.c file into smaller, more
manageable parts.
(This used to be commit af2bece4d343a9f787b2e3628848b266cec2b9f0)
source4/dsdb/samdb/ldb_modules/config.mk
source4/dsdb/samdb/ldb_modules/entryUUID.c [new file with mode: 0644]
source4/dsdb/samdb/ldb_modules/samba3sam.c
source4/lib/ldb/config.mk
source4/lib/ldb/modules/ldb_map.c
source4/lib/ldb/modules/ldb_map.h
source4/lib/ldb/modules/ldb_map_inbound.c [new file with mode: 0644]
source4/lib/ldb/modules/ldb_map_outbound.c [new file with mode: 0644]
source4/lib/ldb/modules/ldb_map_private.h [new file with mode: 0644]
testdata/samba3/samba3.ldif
testprogs/ejs/samba3sam