[389-users] Re: Replication Delay

2018-02-20 Thread Mark Reynolds


On 02/20/2018 06:53 PM, William Brown wrote:
> On Tue, 2018-02-20 at 23:36 +, Fong, Trevor wrote:
>> Hi William,
>>
>> Thanks a lot for your reply.
>>
>> That's correct - replication schedule is not enabled.
>> No - there are definitely changes to replicate - I know, I made the
>> change myself (
>> I changed the "description" attribute on an account, but it takes up
>> to 15 mins for the change to appear in the 1.3 master.
>> That master replicates to another master and a bunch of other hubs.
>> Those hubs replicate amongst themselves and a bunch of consumers.
> So to be correct in my understanding:
>
> 1.2 <-> 1.3 --> [ group of hubs/consumers ]
>
> Yes? 
>
>> The update can take up to 15 mins to make it from the 1.2 master,
>> into the 1.3 master; but once it hits the 1.3 master, it is
>> replicated around the 1.3 cluster within 1 sec.
>>
>> Only memberOf is disallowed for fractional replication.
>>
>> Can anyone give me any guidance as to the settings of the "backoff"
>> and other parameters?  Any doc links that may be useful?
> Mark? You wrote thisn, I can't remember what it's called 
Before we should adjust the back off min and max values, we need to
determine why 1.2.11 is having a hard time updating 1.3.6.  1.3.6 is
just receiving updates, so it's 1.2.11 that "seems" to be misbehaving. 
So... Is there anything in the errors log on 1.2.11?  It wouldn't hurt
to check 1.3.6, but I think 1.2.11 is where we will find our answer.

If there is noting in the log, then turn on replication logging and do
your test update.  Once the update hits 1.3.6 turn replication logging
off.  Then we can look at the logs and see what happens with your test
update.

But as requested here is the backoff min & max info:

http://www.port389.org/docs/389ds/design/replication-retry-settings.html

>
>> Thanks a lot,
>> Trev
>>
>>
>> On 2018-02-18, 3:32 PM, "William Brown" 
>> wrote:
>>
>> On Sat, 2018-02-17 at 01:49 +, Fong, Trevor wrote:
>> > Hi Everyone,
>> >  
>> > I’ve set up a new 389 DS cluster (389-Directory/1.3.6.1
>> > B2018.016.1710) and have set up a replication agreement from
>> our old
>> > cluster (389-Directory/1.2.11.15 B2014.300.2010) to a master
>> node in
>> > the new cluster.  Problem is that updates in the old cluster
>> take up
>> > to 15 mins to make it into the new cluster.  We need it to be
>> near
>> > instantaneous, like it normally is.  Any ideas what I can
>> check?
>> 
>> I am assuming you don't have a replication schedule enabled?
>> 
>> In LDAP replication is always "eventual". So a delay isn't
>> harmful.
>> 
>> But there are many things that can influence this. Ludwig is the
>> expert, and I expect he'll comment here. 
>> 
>> Only one master may be "replicating" to a server at a time. So if
>> your
>> 1.3 server is replicating with other servers, then your 1.2
>> server may
>> have to "wait it's turn".
>> 
>> There is a replication 'backoff' timer, that sets how long it
>> tries and
>> scales these attempts too. I'm not sure if 1.2 has this or not
>> though.
>> 
>> Another reason could be there are no changes to be replicated,
>> replication only runs when there is something to do. So your 1.2
>> server
>> may have no changes, or it could be eliminating the changes with
>> fractional replication.
>> 
>> Finally, it's very noisy but you could consider enabling
>> replication
>> logging to check what's happening. 
>> 
>> I hope that helps,
>> 
>> 
>> 
>> >  
>> > Thanks a lot,
>> > Trev  
>> >  
>> > _
>> > Trevor Fong
>> > Senior Programmer Analyst
>> > Information Technology | Engage. Envision. Enable.
>> > The University of British Columbia
>> > trevor.f...@ubc.ca | 1-604-827-5247 | it.ubc.ca
>> >  
>> > ___
>> > 389-users mailing list -- 389-users@lists.fedoraproject.org
>> > To unsubscribe send an email to 389-users-leave@lists.fedorapro
>> ject.o
>> > rg
>> -- 
>> Thanks,
>> 
>> William Brown
>> ___
>> 389-users mailing list -- 389-users@lists.fedoraproject.org
>> To unsubscribe send an email to 389-users-leave@lists.fedoraproje
>> ct.org
>> 
>>
>> ___
>> 389-users mailing list -- 389-users@lists.fedoraproject.org
>> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.o
>> rg
___
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org


[389-users] Re: LDAPS certificates multimaster with haproxy

2018-02-20 Thread William Brown
On Tue, 2018-02-20 at 16:00 +0100, Francesco Marchesi wrote:
> Hi.
> We are in the process of renewing the certificates of our two 389DS
> servers which sync through multimaster replication.
> We are currently using a self-signed certificate shared between the
> two
> servers.
> Our topology is like this:
> 
> HAProxy : ldap.example.com for load balancing
> LDAP1 : ldap1.example.com
> LDAP2 : ldap2.example.com
> 
> Connections are made from clients to ldaps://ldap.example.com which
> sends requests to either ldap1 or ldap2
> Following the 'SSL howto' [1] we would like to have separate 'real'
> certificates for the two servers.
> If I'm not wrong, the certificate signing requests should be created
> in
> each of the two 'real' servers for their real name and adding
> ldap.example.com as subjectaltname.
> Is that correct?

That is correct!

Today you actually need ldap.example.com AND ldap1.example.com in the
subjectAltName, because that's the "definitive" field. I think the rule
is "if a SAN is present use it for hostnames instead of CN in the
subject".

> If yes, then I have another question: having the two certificates it
> is
> not important which one clients use, is it?

No, because the clients trust the CA that issues the two certs, not the
individual certs themselves.

Hope that helps! 

> Thanks,
> Francesco
> 
> [1] http://directory.fedoraproject.org/docs/389ds/howto/howto-ssl.htm
> l
> ___
> 389-users mailing list -- 389-users@lists.fedoraproject.org
> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.o
> rg
-- 
Thanks,

William Brown
___
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org


[389-users] Re: Replication Delay

2018-02-20 Thread William Brown
On Tue, 2018-02-20 at 23:36 +, Fong, Trevor wrote:
> Hi William,
> 
> Thanks a lot for your reply.
> 
> That's correct - replication schedule is not enabled.
> No - there are definitely changes to replicate - I know, I made the
> change myself (
> I changed the "description" attribute on an account, but it takes up
> to 15 mins for the change to appear in the 1.3 master.
> That master replicates to another master and a bunch of other hubs.
> Those hubs replicate amongst themselves and a bunch of consumers.

So to be correct in my understanding:

1.2 <-> 1.3 --> [ group of hubs/consumers ]

Yes? 

> 
> The update can take up to 15 mins to make it from the 1.2 master,
> into the 1.3 master; but once it hits the 1.3 master, it is
> replicated around the 1.3 cluster within 1 sec.
> 
> Only memberOf is disallowed for fractional replication.
> 
> Can anyone give me any guidance as to the settings of the "backoff"
> and other parameters?  Any doc links that may be useful?

Mark? You wrote thisn, I can't remember what it's called 

> 
> Thanks a lot,
> Trev
> 
> 
> On 2018-02-18, 3:32 PM, "William Brown" 
> wrote:
> 
> On Sat, 2018-02-17 at 01:49 +, Fong, Trevor wrote:
> > Hi Everyone,
> >  
> > I’ve set up a new 389 DS cluster (389-Directory/1.3.6.1
> > B2018.016.1710) and have set up a replication agreement from
> our old
> > cluster (389-Directory/1.2.11.15 B2014.300.2010) to a master
> node in
> > the new cluster.  Problem is that updates in the old cluster
> take up
> > to 15 mins to make it into the new cluster.  We need it to be
> near
> > instantaneous, like it normally is.  Any ideas what I can
> check?
> 
> I am assuming you don't have a replication schedule enabled?
> 
> In LDAP replication is always "eventual". So a delay isn't
> harmful.
> 
> But there are many things that can influence this. Ludwig is the
> expert, and I expect he'll comment here. 
> 
> Only one master may be "replicating" to a server at a time. So if
> your
> 1.3 server is replicating with other servers, then your 1.2
> server may
> have to "wait it's turn".
> 
> There is a replication 'backoff' timer, that sets how long it
> tries and
> scales these attempts too. I'm not sure if 1.2 has this or not
> though.
> 
> Another reason could be there are no changes to be replicated,
> replication only runs when there is something to do. So your 1.2
> server
> may have no changes, or it could be eliminating the changes with
> fractional replication.
> 
> Finally, it's very noisy but you could consider enabling
> replication
> logging to check what's happening. 
> 
> I hope that helps,
> 
> 
> 
> >  
> > Thanks a lot,
> > Trev  
> >  
> > _
> > Trevor Fong
> > Senior Programmer Analyst
> > Information Technology | Engage. Envision. Enable.
> > The University of British Columbia
> > trevor.f...@ubc.ca | 1-604-827-5247 | it.ubc.ca
> >  
> > ___
> > 389-users mailing list -- 389-users@lists.fedoraproject.org
> > To unsubscribe send an email to 389-users-leave@lists.fedorapro
> ject.o
> > rg
> -- 
> Thanks,
> 
> William Brown
> ___
> 389-users mailing list -- 389-users@lists.fedoraproject.org
> To unsubscribe send an email to 389-users-leave@lists.fedoraproje
> ct.org
> 
> 
> ___
> 389-users mailing list -- 389-users@lists.fedoraproject.org
> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.o
> rg
-- 
Thanks,

William Brown
___
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org


[389-users] Re: Replication Delay

2018-02-20 Thread Fong, Trevor
Hi William,

Thanks a lot for your reply.

That's correct - replication schedule is not enabled.
No - there are definitely changes to replicate - I know, I made the change 
myself (
I changed the "description" attribute on an account, but it takes up to 15 mins 
for the change to appear in the 1.3 master.
That master replicates to another master and a bunch of other hubs.
Those hubs replicate amongst themselves and a bunch of consumers.

The update can take up to 15 mins to make it from the 1.2 master, into the 1.3 
master; but once it hits the 1.3 master, it is replicated around the 1.3 
cluster within 1 sec.

Only memberOf is disallowed for fractional replication.

Can anyone give me any guidance as to the settings of the "backoff" and other 
parameters?  Any doc links that may be useful?

Thanks a lot,
Trev


On 2018-02-18, 3:32 PM, "William Brown"  wrote:

On Sat, 2018-02-17 at 01:49 +, Fong, Trevor wrote:
> Hi Everyone,
>  
> I’ve set up a new 389 DS cluster (389-Directory/1.3.6.1
> B2018.016.1710) and have set up a replication agreement from our old
> cluster (389-Directory/1.2.11.15 B2014.300.2010) to a master node in
> the new cluster.  Problem is that updates in the old cluster take up
> to 15 mins to make it into the new cluster.  We need it to be near
> instantaneous, like it normally is.  Any ideas what I can check?

I am assuming you don't have a replication schedule enabled?

In LDAP replication is always "eventual". So a delay isn't harmful.

But there are many things that can influence this. Ludwig is the
expert, and I expect he'll comment here. 

Only one master may be "replicating" to a server at a time. So if your
1.3 server is replicating with other servers, then your 1.2 server may
have to "wait it's turn".

There is a replication 'backoff' timer, that sets how long it tries and
scales these attempts too. I'm not sure if 1.2 has this or not though.

Another reason could be there are no changes to be replicated,
replication only runs when there is something to do. So your 1.2 server
may have no changes, or it could be eliminating the changes with
fractional replication.

Finally, it's very noisy but you could consider enabling replication
logging to check what's happening. 

I hope that helps,



>  
> Thanks a lot,
> Trev  
>  
> _
> Trevor Fong
> Senior Programmer Analyst
> Information Technology | Engage. Envision. Enable.
> The University of British Columbia
> trevor.f...@ubc.ca | 1-604-827-5247 | it.ubc.ca
>  
> ___
> 389-users mailing list -- 389-users@lists.fedoraproject.org
> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.o
> rg
-- 
Thanks,

William Brown
___
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org


___
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org


[389-users] Re: password administrator

2018-02-20 Thread Mark Reynolds


On 02/20/2018 12:44 PM, Alberto Viana wrote:
> Hi Guys,
>
> Can I set multiple groups in passwordAdminDN? 
>
> I know that I can set per policy (subtree or user), but  there is any
> other way to specify more than one group globally?
Not currently.  It is limited to a single static group.  Nested groups
also do not work. 

But feel free to file an RFE at https://pagure.io/389-ds-base/new_issue
>
>
> Thanks
>
>
> ___
> 389-users mailing list -- 389-users@lists.fedoraproject.org
> To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org

___
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org


[389-users] password administrator

2018-02-20 Thread Alberto Viana
Hi Guys,

Can I set multiple groups in passwordAdminDN?

I know that I can set per policy (subtree or user), but  there is any other
way to specify more than one group globally?


Thanks
___
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org


[389-users] LDAPS certificates multimaster with haproxy

2018-02-20 Thread Francesco Marchesi
Hi.
We are in the process of renewing the certificates of our two 389DS
servers which sync through multimaster replication.
We are currently using a self-signed certificate shared between the two
servers.
Our topology is like this:

HAProxy : ldap.example.com for load balancing
LDAP1 : ldap1.example.com
LDAP2 : ldap2.example.com

Connections are made from clients to ldaps://ldap.example.com which
sends requests to either ldap1 or ldap2
Following the 'SSL howto' [1] we would like to have separate 'real'
certificates for the two servers.
If I'm not wrong, the certificate signing requests should be created in
each of the two 'real' servers for their real name and adding
ldap.example.com as subjectaltname.
Is that correct?
If yes, then I have another question: having the two certificates it is
not important which one clients use, is it?
Thanks,
Francesco

[1] http://directory.fedoraproject.org/docs/389ds/howto/howto-ssl.html
___
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org