Anonymous_User Absent Member.
Absent Member.
344 views

Read and write to an eDirectory master replica

Hi,

I'm using the LDAP libraries for C# and having some problems with
creating/modifying objects due slow syncronization in eDirectory.
In the libraries for C it's possible to work with the eDirectory master
replica to aviod or reduce these kind of problems with the flags
DCK_CONFIDENCE and DCV_HIGH_CONF.

Q: Does anyone know if it is possible to set a flag or something similar in
the LDAP libraries for C# to as in the cLib to accomplish this?

Per-Jan Eriksson
Swedish National Police Board


Labels (1)
0 Likes
4 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Read and write to an eDirectory master replica

The "master" replica will not help.

Writing to the same LDAP Server should stop any issues with Sync.
(If it does not, then you have bigger issues)

Might also make a difference depending on what version of eDirectory you
are using.

Please explain the issue?
-jim

Per-Jan Eriksson wrote:
> Hi,
>
> I'm using the LDAP libraries for C# and having some problems with
> creating/modifying objects due slow syncronization in eDirectory.
> In the libraries for C it's possible to work with the eDirectory master
> replica to aviod or reduce these kind of problems with the flags
> DCK_CONFIDENCE and DCV_HIGH_CONF.
>
> Q: Does anyone know if it is possible to set a flag or something similar in
> the LDAP libraries for C# to as in the cLib to accomplish this?
>
> Per-Jan Eriksson
> Swedish National Police Board
>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Read and write to an eDirectory master replica

Hi Jim,

This net that we are working in is a big one. There are something like
400-500 NetWare-servers on different locations over the country. There
is no replica holding the complete database which causes the problem.
The eDirectory version is 8.7.3.

The issue here is when I'm trying to update an object which resides in a
copy in 400 different containers (police offices), lets say a ZENworks
Policy Object with a new Policy (which is an underlying object),
eDirectory is not aware of the new Policy which is going to be added to
it's "mother" object because it's just newly created.
The solution, so far, is to wait for a while (but I don't know for how
long) until eDirectory is aware of the object. Then after a while, I'm
able to complete the operation.

I have also tried to a search, wait and so on, for the new object until
I return the cn. This does not seem to help me. Strange!

Note, that all these copies of objects exists due poor bandwidth.

// Per-Jan


Jim Willeke wrote:
> The "master" replica will not help.
>
> Writing to the same LDAP Server should stop any issues with Sync.
> (If it does not, then you have bigger issues)
>
> Might also make a difference depending on what version of eDirectory you
> are using.
>
> Please explain the issue?
> -jim
>
> Per-Jan Eriksson wrote:
>> Hi,
>>
>> I'm using the LDAP libraries for C# and having some problems with
>> creating/modifying objects due slow syncronization in eDirectory.
>> In the libraries for C it's possible to work with the eDirectory
>> master replica to aviod or reduce these kind of problems with the
>> flags DCK_CONFIDENCE and DCV_HIGH_CONF.
>>
>> Q: Does anyone know if it is possible to set a flag or something
>> similar in the LDAP libraries for C# to as in the cLib to accomplish
>> this?
>>
>> Per-Jan Eriksson
>> Swedish National Police Board
>>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Read and write to an eDirectory master replica

If I understand your setup....

From an LDAP perspective, I would assume that chaining is happening in
the background so when you perform a search for the object, it may
appear to be on the server you are querying when it is really not there.

When searching, the server, in the background, if the object is not
present in its replica, will go off and walk the tree to find the object
on another part of the tree so it appears to be there.

AFAIK, you will either have to look at changing your environment or wait
till the object is replicated.

You could look into the partition and replica routines (I know they are
in Java, but do not know if they are in C#) and tell when the data is
sync'd to a particular replica.

Good luck, that is a tough one.
-jim

Per-Jan Eriksson wrote:
> Hi Jim,
>
> This net that we are working in is a big one. There are something like
> 400-500 NetWare-servers on different locations over the country. There
> is no replica holding the complete database which causes the problem.
> The eDirectory version is 8.7.3.
>
> The issue here is when I'm trying to update an object which resides in a
> copy in 400 different containers (police offices), lets say a ZENworks
> Policy Object with a new Policy (which is an underlying object),
> eDirectory is not aware of the new Policy which is going to be added to
> it's "mother" object because it's just newly created.
> The solution, so far, is to wait for a while (but I don't know for how
> long) until eDirectory is aware of the object. Then after a while, I'm
> able to complete the operation.
>
> I have also tried to a search, wait and so on, for the new object until
> I return the cn. This does not seem to help me. Strange!
>
> Note, that all these copies of objects exists due poor bandwidth.
>
> // Per-Jan
>
>
> Jim Willeke wrote:
>> The "master" replica will not help.
>>
>> Writing to the same LDAP Server should stop any issues with Sync.
>> (If it does not, then you have bigger issues)
>>
>> Might also make a difference depending on what version of eDirectory
>> you are using.
>>
>> Please explain the issue?
>> -jim
>>
>> Per-Jan Eriksson wrote:
>>> Hi,
>>>
>>> I'm using the LDAP libraries for C# and having some problems with
>>> creating/modifying objects due slow syncronization in eDirectory.
>>> In the libraries for C it's possible to work with the eDirectory
>>> master replica to aviod or reduce these kind of problems with the
>>> flags DCK_CONFIDENCE and DCV_HIGH_CONF.
>>>
>>> Q: Does anyone know if it is possible to set a flag or something
>>> similar in the LDAP libraries for C# to as in the cLib to accomplish
>>> this?
>>>
>>> Per-Jan Eriksson
>>> Swedish National Police Board
>>>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Read and write to an eDirectory master replica

Jim Willeke skrev:
> If I understand your setup....
>
> From an LDAP perspective, I would assume that chaining is happening in
> the background so when you perform a search for the object, it may
> appear to be on the server you are querying when it is really not there.
>
> When searching, the server, in the background, if the object is not
> present in its replica, will go off and walk the tree to find the object
> on another part of the tree so it appears to be there.
>
> AFAIK, you will either have to look at changing your environment or wait
> till the object is replicated.
>
> You could look into the partition and replica routines (I know they are
> in Java, but do not know if they are in C#) and tell when the data is
> sync'd to a particular replica.
>
> Good luck, that is a tough one.
> -jim
>
> Per-Jan Eriksson wrote:
>> Hi Jim,
>>
>> This net that we are working in is a big one. There are something like
>> 400-500 NetWare-servers on different locations over the country. There
>> is no replica holding the complete database which causes the problem.
>> The eDirectory version is 8.7.3.
>>
>> The issue here is when I'm trying to update an object which resides in
>> a copy in 400 different containers (police offices), lets say a
>> ZENworks Policy Object with a new Policy (which is an underlying
>> object), eDirectory is not aware of the new Policy which is going to
>> be added to it's "mother" object because it's just newly created.
>> The solution, so far, is to wait for a while (but I don't know for how
>> long) until eDirectory is aware of the object. Then after a while, I'm
>> able to complete the operation.
>>
>> I have also tried to a search, wait and so on, for the new object
>> until I return the cn. This does not seem to help me. Strange!
>>
>> Note, that all these copies of objects exists due poor bandwidth.
>>
>> // Per-Jan
>>
>>
>> Jim Willeke wrote:
>>> The "master" replica will not help.
>>>
>>> Writing to the same LDAP Server should stop any issues with Sync.
>>> (If it does not, then you have bigger issues)
>>>
>>> Might also make a difference depending on what version of eDirectory
>>> you are using.
>>>
>>> Please explain the issue?
>>> -jim
>>>
>>> Per-Jan Eriksson wrote:
>>>> Hi,
>>>>
>>>> I'm using the LDAP libraries for C# and having some problems with
>>>> creating/modifying objects due slow syncronization in eDirectory.
>>>> In the libraries for C it's possible to work with the eDirectory
>>>> master replica to aviod or reduce these kind of problems with the
>>>> flags DCK_CONFIDENCE and DCV_HIGH_CONF.
>>>>
>>>> Q: Does anyone know if it is possible to set a flag or something
>>>> similar in the LDAP libraries for C# to as in the cLib to accomplish
>>>> this?
>>>>
>>>> Per-Jan Eriksson
>>>> Swedish National Police Board
>>>>

Jim,

Thank you for the answer. Then I know what I have to look for.

// Per-Jan
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.