Re: Issue with refint and rwm overlay

2023-11-07 Thread Quanah Gibson-Mount




--On Monday, November 6, 2023 10:08 PM + Maksim Saroka 
 wrote:




Hello,


Sorry for bothering you, guys. We really appreciate your work. That was
just an urgent deal for us. The last request: could you please point us
to the docs that explain to us how slapd.conf file should be composed in
the right way?


The manual pages cover what options are valid in what sections.

--Quanah




Re: Issue with refint and rwm overlay

2023-11-06 Thread Maksim Saroka
Hello, 

Sorry for bothering you, guys. We really appreciate your work. That was just an 
urgent deal for us. The last request: could you please point us to the docs 
that explain to us how slapd.conf file should be composed in the right way?


-
Maksim Saroka
DevOps/System Administrator
Exadel.com 
Follow Us on LinkedIn 

> On Oct 23, 2023, at 8:28 PM, Quanah Gibson-Mount  wrote:
> 
> 
> 
> --On Friday, October 13, 2023 12:11 AM +0300 Maksim Saroka 
>  wrote:
> 
>> Hello,
>> 
>> 
>> Thank you for the quick response!
>> 
>> 
>> 
>> "cn=config is deterministic" what does it mean? Could you please
>> explain us the benefits in this case.
> 
> 
> The slapd.conf file may or may not be ordered correctly.  I.e., database 
> specific option may occur outside of a database definition.  Slapd will do 
> its *best* to order the slapd.conf file that it is provided in a sensical 
> way, but it may not match what was intended by the author, so it is not 
> determinitistic.  With cn=config, everything is ordered, so it is 
> deterministic.
> 
> Also, keep in mind that answers on the mailing list are done on a time 
> available basis.  Don't send an email prodding for a reply.
> 
> ---Quanah
> 


-- 


CONFIDENTIALITY
NOTICE: This email and files attached to it are 
confidential. If you
are not the intended recipient you are hereby notified 
that using,
copying, distributing or taking any action in reliance on the 
contents of this information is strictly prohibited. If you have
received 
this email in error please notify the sender and delete this
email.


Re: Issue with refint and rwm overlay

2023-10-23 Thread Quanah Gibson-Mount




--On Friday, October 13, 2023 12:11 AM +0300 Maksim Saroka 
 wrote:



Hello,


Thank you for the quick response!



"cn=config is deterministic" what does it mean? Could you please
explain us the benefits in this case.



The slapd.conf file may or may not be ordered correctly.  I.e., database 
specific option may occur outside of a database definition.  Slapd will do 
its *best* to order the slapd.conf file that it is provided in a sensical 
way, but it may not match what was intended by the author, so it is not 
determinitistic.  With cn=config, everything is ordered, so it is 
deterministic.


Also, keep in mind that answers on the mailing list are done on a time 
available basis.  Don't send an email prodding for a reply.


---Quanah


Re: Issue with refint and rwm overlay

2023-10-12 Thread Maksim Saroka
Hello,

Thank you for the quick response!

"cn=config is deterministic” what does it mean? Could you please explain us the 
benefits in this case.

About this:
4. You never tried:

database section
rwm overlay
refint overlay

I’ve tried and it does not work. 

-
Maksim Saroka
DevOps/System Administrator
Exadel.com 
Follow Us on LinkedIn 

> On Oct 10, 2023, at 10:48 PM, Quanah Gibson-Mount  
> wrote:
> 
> 
> 
> --On Tuesday, October 10, 2023 4:43 PM +0200 Maksim Saroka 
>  wrote:
> 
>> 
>> 
>> Hello,
>> 
>> We have a strange situation with refint and rwm overlays on ldap
>> replica. Looks like those overlays depend on each other and on position
>> in the slapd.conf file regarding database section. However refint
>> overlay is working in any position if rwm overlay is not specified. Here
>> are the examples with positions in the file:
>> 
>> Refint overlay work if:
>> 1.  
>>rwm overlay section   
>>database section   
>>refint overlay section
>> 
>> Refint overlay does not work if:
>> 1. 
>>database section
>>refint overlay section
>>rwm overlay section
>> 2. 
>>rwm overlay section   
>>refint overlay section
>>database section
>> 
>> Could you please explain to us the root cause of that as I can't find any
>> explanation in the docs.
> 
> 
> Hi,
> 
> A couple notes:
> 
> 1. You really should use cn=config and not slapd.conf, as cn=config is 
> deterministic.
> 2. In the first case above, "rwm" is probably ending up as a global overlay
> 3. In the third case above, "rwm" and "refint" are probably both ending up as 
> global overlays
> 4. You never tried:
> 
> database section
> rwm overlay
> refint overlay
> 
> Finally, module load order can matter in certain circumstances, particularly 
> with overlays that interact with one another.  One reason why syncprov (in a 
> replicated environment) should always be the first overlay in a database 
> section.
> 
> --Quanah
> 
> 
> 


-- 


CONFIDENTIALITY
NOTICE: This email and files attached to it are 
confidential. If you
are not the intended recipient you are hereby notified 
that using,
copying, distributing or taking any action in reliance on the 
contents of this information is strictly prohibited. If you have
received 
this email in error please notify the sender and delete this
email.


Re: Issue with refint and rwm overlay

2023-10-10 Thread Quanah Gibson-Mount




--On Tuesday, October 10, 2023 4:43 PM +0200 Maksim Saroka 
 wrote:





Hello,

We have a strange situation with refint and rwm overlays on ldap
replica. Looks like those overlays depend on each other and on position
in the slapd.conf file regarding database section. However refint
overlay is working in any position if rwm overlay is not specified. Here
are the examples with positions in the file:

Refint overlay work if:
1.  
   rwm overlay section   
   database section   
   refint overlay section

Refint overlay does not work if:
1. 
   database section
   refint overlay section
   rwm overlay section
2. 
   rwm overlay section   
   refint overlay section
   database section

Could you please explain to us the root cause of that as I can't find any
explanation in the docs.



Hi,

A couple notes:

1. You really should use cn=config and not slapd.conf, as cn=config is 
deterministic.

2. In the first case above, "rwm" is probably ending up as a global overlay
3. In the third case above, "rwm" and "refint" are probably both ending up 
as global overlays

4. You never tried:

database section
rwm overlay
refint overlay

Finally, module load order can matter in certain circumstances, 
particularly with overlays that interact with one another.  One reason why 
syncprov (in a replicated environment) should always be the first overlay 
in a database section.


--Quanah




Issue with refint and rwm overlay

2023-10-10 Thread Maksim Saroka
Hello,

We have a strange situation with refint and rwm overlays on ldap replica.
Looks like those overlays depend on each other and on position in the
slapd.conf file regarding database section. However refint overlay is
working in any position if rwm overlay is not specified. Here are the
examples with positions in the file:

Refint overlay work if:
1.
   rwm overlay section
   database section
   refint overlay section

Refint overlay does not work if:
1.
   database section
   refint overlay section
   rwm overlay section
2.
   rwm overlay section
   refint overlay section
   database section

Could you please explain to us the root cause of that as I can't find any
explanation in the docs.


Maksim Saroka
DevOps/System Administrator
Exadel.com 
Follow Us on LinkedIn 

-- 


CONFIDENTIALITY
NOTICE: This email and files attached to it are 
confidential. If you
are not the intended recipient you are hereby notified 
that using,
copying, distributing or taking any action in reliance on the 
contents of this information is strictly prohibited. If you have
received 
this email in error please notify the sender and delete this
email.