[SAMBA4] Samba appliance for terminal servers

Steven McCoy fnjordy at gmail.com
Mon Aug 28 12:43:09 GMT 2006

Hi Andrew,

  So I have released a new version which supports Mozilla Thunderbird LDAP
and hence can become a shared address book appliance, this was relatively
straightforward.  In order to save a modicum of space though I merged all
the ldb utilities into one binary and used symlinks to restore original
functionality.  I would think this is pretty redundant with samba modules
are shared libraries working though, they don't work too well in TP2.  A
basic web interface exists to create new entries and update the address


 * ldb super utility, superset of ldbrename, ldbmodify, ldbdel, ldbadd, and

#include <string.h>

extern int ldb_command_rename(int, char**);
extern int ldb_command_modify(int, char**);
extern int ldb_command_del(int, char**);
extern int ldb_command_add(int, char**);
extern int ldb_command_search(int, char**);

int main(int argc, char *argv[])
        if (strstr (argv[0], "ldbrename"))
                return ldb_command_rename(argc, argv);
        else if (strstr (argv[0], "ldbmodify"))
                return ldb_command_modify(argc, argv);
        else if (strstr (argv[0], "ldbdel"))
                return ldb_command_del(argc, argv);
        else if (strstr (argv[0], "ldbadd"))
                return ldb_command_add(argc, argv);
        { /* ldbsearch */
                return ldb_command_search(argc, argv);


On 8/18/06, Steven McCoy <fnjordy at gmail.com> wrote:
> > A couple of technical questions:  will Samba 4 allow LDAP clients to
> > modify
> > > the entries, and can I add extra schemas like the qmail, sendmail,
> > exim, and
> > > postfix mail schemas?  According to previous notes and docs it should
> > be
> > > able to by updating schema.ldif?
> >
> > We don't currently check schemas, so you don't need to add them, but
> > when we do start checking, we will convert and load these external
> > schemas.
> >
> > >
> > http://lists.samba.org/archive/samba-technical/2005-November/043846.html
> > >
> > > So to support schema files I would need to convert them to LDIF,
> > update the
> > > master schema.ldif and rebuild the Samba databases?
> >
> > Yep.  see oLschema2ldif.  I have recently updated it to convert the
> > matching rules as required.
> >
> Ok, I had started to play with oLschema2ldif however it was not overly
> happy with qmail.schema or a concatenated set of the dependent schemas.
> Instead I read about Samba's LDB being schema-less and tried adding custom
> LDIF entries and it appeared to work well.  After analysing the Mozilla
> Thunderbird schema setup I can also use Samba as an LDAP address book,
> albeit some tweaks to Thunderbird (Bug 119291) to force LDAP resolution of
> some entries and its quite nice.
> I would think an address book server might be more popular than the
> limited use I currently am using Samba for.  The absense of an official
> Thunderbird LDAP schema almost working as a benefit when compared to an
> OpenLDAP solution.
> :-)
> --
> Steve-o

More information about the samba-technical mailing list