[SAMBA4] Making system ldb usable by Samba 4
jelmer at samba.org
Mon Sep 10 23:35:57 GMT 2007
Continuing our quest to eliminate the differences between standalone and
At the moment, there are three things left that prevent Samba 4 from
using a system LDB:
* MODULESDIR is hard-coded in ldb
* LDIF handlers that are being registered by samba/ldif_handlers.c
* some Samba-specific popt options are used
The first is easy to fix - we could use a global variable that defaults
to MODULESDIR but can also be set by Samba. Perhaps we can even move
that into the ldb_context at some point.
The other two are harder. We could just allow modules to register extra
LDIF handlers and extra command-line options, but that would mean we
would have to abandon the "lazy module loading" approach we take now
(never load a module unless it's requested) because there is no way to
know what DSO's are going to register schema's.
We would also not want libldb to link against libpopt, so registering
the extra options should only be done when inside the command-line
These are the solutions I can think of:
* Always load all modules (simplest)
* Have separate directories under MODULESDIR/ for each type of module,
e.g.: module/ (for current modules), schema/, popt/ where only all
schema/ modules have to be loaded/ and popt/ modules are loaded only by
the command line clients.
What do you think?
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
Jabber: jelmer at jabber.fsfe.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 307 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.samba.org/archive/samba-technical/attachments/20070911/a8a95f81/attachment.bin
More information about the samba-technical