[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: issue with multiple 'database' stanzas in 2.0.23



On Wed 05 Feb 2003 at 00:07:38 -0800, you wrote:

> On Tue 04 Feb 2003 at 23:40:18 -0800, you wrote:
> 
> > You cannot define the same suffix for multiple databases. Each
> > database must have a unique suffix. You probably should be using
> > something newer than 2.0.23, by the way.
> 
> Thanks. I didn't see that fact mentioned anywhere in the documentation.
> 
> What i'm trying to achieve here is the concept of triggers. I want to
> capture events such as 'add' and 'delete' and fire off shell scripts to
> do external processing.
> 
> If I can't use the same suffix with the shell back-end, how is this kind
> of mechanism supposed to work? One possible solution I can think of is
> to set up a slave server and trigger the shell back-end on that machine
> instead.

So, that's what I had to do in the end: run a second instance of slapd,
bound to a different port on the loopback interface only, and have that
be replicated to by the main server on port 389.

That allows me to use the same suffix for two back-ends and have the
LDBM instance talk to the shell instance.

Ian
-- 
Ian Macdonald               | I worked in a health food store once.  A
System Administrator        | guy came in and asked me, "If I melt dry
Google, Inc.                | ice, can I take a bath without getting
ian@google.com              | wet?"   -- Steven Wright 
650.330.0100 x1265          |