#50244 Ticket 50243 - refint modrdn stress test
Closed by spichugi. Opened by firstyear.
firstyear/389-ds-base xxxxx-possible-rename-issue  into  master

Download 50244.patch

Bug Description: It was reported that modrdn of an ou which
contained many items could break refint in some cases.

Fix Description: Add a stress test to try to reproduce the issue

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

Author: William Brown william@blackhats.net.au

Review by: ???

Shouldn't it be in DSLdapObjects basedn? (And you are adding it to DSLdapObject - the child)

The rest looks good to me

@spichugi Singulars allow direct initialisation in some cases for DSLdapObject, so in this case where there is only one plugin definition, we pre-set the basedn, allowing you to do:

plugin = SingularPlugin(inst)

@spichugi Singulars allow direct initialisation in some cases for DSLdapObject, so in this case where there is only one plugin definition, we pre-set the basedn, allowing you to do:
plugin = SingularPlugin(inst)

It seems odd to me...

  • First, you've set the plugin DN but in case you want to have some default definition - the definition DN should be set ("cn=Example Automember Definition,cn=Auto Membership Plugin,cn=plugins,cn=config").
  • Second, the definition should be created anyway (it is not added any place during the instance installation). So the lib389 API user will have their own definitions with the names that are used for their topology. And, I think, it is more explicit do not assume these names for him.
  • Third, you've added the feature but you don't use it in your code... Just a small nitpick :)

Ahhhhh I was misreading the patch. I was a bit unwell this morning. So I think your right, the dn= doesn't belong.

What feature did I add? I do use automembership in the code ...

rebased onto 643d8d4d48806c4fb460a6eef5ebed32babdd748

What feature did I add? I do use automembership in the code ...

I was talking about SingularDefinition() object. You've changed the 'dn' part but then you used the MulitpleDefinition() object and SingularDefinition() was not used in your code at all.

But now it doesn't matter. :)

Thank you! PR looks good to me.

I think that was the diff viewer messing with me maybe :) Anyway, fixed now.

rebased onto 45e8474529c8f2734dc03710764f3eed4a54b751

Pull-Request has been merged by firstyear

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/3303

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