#49998 Ticket 49997 RFE: ds-replcheck could validate suffix exists and it's replicated
Closed by spichugi. Opened by gparente.
gparente/389-ds-base dsreplenhancement  into  master

Download 49998.patch

Bug Description:

seen at customer site, as first request to ldap database is the RUV, if the suffix provided in the command line does not exist or it's not replicated, we have an error message that it's regarding the RUV:

ds-replcheck -D "cn=directory manager" -w secret12 -b "o=ipaca" -r ldap://ipamaster.germanparente.local:389 -m ldap://ipareplica.germanparente.local
Performing online report...
Connecting to servers...
Gathering Master's RUV...
Error: Failed to get Master RUV entry: {'desc': 'No such object'}

Fix Description:

add function to validate suffix exists and it's replicated

https://pagure.io/389-ds-base/issue/49997

Author: German Parente gparente@redhat.com

Review by: ???

Looks good @gparente ack

Thanks a lot Mark.

Pull-Request has been merged by gparente

I'd prefer this to use a dirsrv/lib389 type rather than raw search, but a bit late now I think ....

I'd prefer this to use a dirsrv/lib389 type rather than raw search, but a bit late now I think ....

We should get a new ticket opened to convert it at some point. The entire script already uses the raw types everywhere.

The advantage is that the ticket runs "standalone". We have even given this script to customers having a former version where the script had not been delivered and it worked fine.

But why not to use lib389 if we have some better abstraction of the search operation.

I could do this if needed.

The advantage is that the ticket runs "standalone". We have even given this script to customers having a former version where the script had not been delivered and it worked fine.
But why not to use lib389 if we have some better abstraction of the search operation.
I could do this if needed.

Lets open a new ticket/PR to address this...

Yeah, let's do that. :)

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/3057

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

Metadata