directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Alderson" <>
Subject Re: [Apache DS] Questions about Apache DS 1.5.2 server.xml file
Date Fri, 16 May 2008 14:25:23 GMT
Hi Pierre,

I haven't tried the new xbean form of the replication configuration -
I'm not really sure if anyone has!

I'm not sure if peerReplicas="instance_b@localhost:10392" will work,
since peerReplicas is actually a set.  In my old style config I have:

                  <property name="peerReplicas">

Each ApacheDS replica needs to be given a unique and permanent case
insensitive ID.  It should never change for a given ApacheDS instance
unless the backend data is wiped out (effectively giving you a fresh
install).  I think that in the future we would want to make this
auto-generated by default to simplify the configuration.  The replica ID
in your snippet is instance_a - the rest is just necessary cruft that we
should cut down in the future.  The replica ID must match the regular
expression [-_a-zA-Z0-9]{1,16}.

The replication service listens on the port specified with "serverPort"
for connections from other replicas.  All the other replicas must be
specified with "peerReplicas".  Each peer replica is specified with

Hope this helps,


>>> "Pierre-Arnaud Marcelot" <> 16/05/2008 13:37 >>>
Hi Alex,

Thanks for your answers.

Another question...

I'd like the configuration editor to be able to edit basic replication
settings for the replication interceptor.
Can I get a little explanation on what these lines doplease?

>       <replicationInterceptor>
>         <configuration>
>           <replicationConfiguration serverPort="10390"
> peerReplicas="instance_b@localhost:10392">
>             <replicaId>
>               <replicaId id="instance_a"/>
>             </replicaId>
>           </replicationConfiguration>
>         </configuration>
>       </replicationInterceptor>
Especially the serverPort, peerReplicas, replacaId attributes or

Thanks a lot.

On Thu, May 15, 2008 at 12:19 PM, Alex Karasulu <>

> Hey Pierre,
> Sorry for taking so long to respond on this one.
> On Wed, May 14, 2008 at 5:04 AM, Pierre-Arnaud Marcelot
> wrote:
>> Hi again Alex,
>> On Tue, May 13, 2008 at 5:19 PM, Alex Karasulu
>> wrote:
>>> ‚óŹ It seems that each declared protocol must be referenced in the
>>>> 'apacheDS' bean. Am I right?
>>>> If yes, then if I want to enable the DNS server inside Apache DS,
>>>> need to uncomment the 'dnsServer' bean, add an 'id' to it and
reference it
>>>> in the 'apacheDS' bean?
>>> Yep you're right.
>> Are you sure about that...?
>> Actually, I had a closer look to the ApacheDS class
>> ( and I've not
seen any
>> dnsServer, kdcServer, changePasswordServer or ntpServer field. I
don't see
>> how Spring could make any association...
> Yeah it was there before.  I may have an older version in mind. 
> where we should keep a reference to all these protocol
> Must have changed when we did this XBean thing.
>> How do I enable these protocols? Maybe by setting an 'enable'
>> set to true to each protocol bean?
>> I think so but I'd need to look at the code.  I think there's a
> method but it only gets or shoudl only get invoked or startup the
> when this enabled flag is set.  I'd need to look at the logic there.
> Alex

View raw message