[PATCH][SAMBA4] Enable the ldb_map database mapping module

Martin Kühl mkhl at samba.org
Thu Aug 10 16:42:09 GMT 2006


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 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.

The changeset is split into multiple parts:
- ldb-enable_mapping-module.patch (gzipped)
 contains the changes to the ldb_map module, its header file and the
ldb config.mk file.
- samdb-adapt_to_mapping-module.patch
 contains the changes that adapt the samba3sam example module from
samdb to the new ldb_map.
- samdb-add_entryUUID_module.patch
 contains the new entryUUID example module from samdb.
- testprogs-adapt_to_mapping-module.patch
 contains the changes that adapt the samba3sam test suite to the new
ldb_map and add a few additional test cases.
- testdata-adapt_to_mapping-module.patch
 contains the changes that adapt the samba3sam test data to the new
samba3sam test suite.

If noone objects, I'd very much like Andrew to merge these, so...
comments, anyone?

Cheers,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldb-enable_mapping-module.patch.gz
Type: application/x-gzip
Size: 25469 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060810/eae9c4f4/ldb-enable_mapping-module.patch.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samdb-adapt_to_mapping-module.patch
Type: text/x-patch
Size: 1621 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060810/eae9c4f4/samdb-adapt_to_mapping-module.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testprogs-adapt_to_mapping-module.patch
Type: text/x-patch
Size: 6287 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060810/eae9c4f4/testprogs-adapt_to_mapping-module.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testdata-adapt_to_mapping-module.patch
Type: text/x-patch
Size: 4991 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060810/eae9c4f4/testdata-adapt_to_mapping-module.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samdb-add_entryUUID_module.patch
Type: text/x-patch
Size: 3777 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060810/eae9c4f4/samdb-add_entryUUID_module.bin


More information about the samba-technical mailing list