Page MenuHomePhorge

fixing recursive deletion of domains
ClosedPublic

Authored by pokorra on Jun 16 2015, 8:10 AM.
Tags
None
Referenced Files
F16885184: D23.id39.diff
Fri, Nov 22, 7:43 AM
Unknown Object (File)
Sat, Nov 16, 10:43 AM
Unknown Object (File)
Sat, Nov 16, 9:07 AM
Unknown Object (File)
Thu, Nov 14, 11:09 PM
Unknown Object (File)
Tue, Nov 12, 7:12 AM
Unknown Object (File)
Mon, Nov 11, 11:50 PM
Unknown Object (File)
Mon, Oct 28, 3:19 AM
Unknown Object (File)
Thu, Oct 24, 3:44 PM

Details

Summary

recursive deletion: need to find and delete objects with objectclass ldapsubentry as well (#5100).
This is for example needed when deleting a domain, for the role kolab-admin which has class ldapsubentry

Diff Detail

Repository
rPNL php-Net_LDAP3
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

pokorra retitled this revision from to fixing recursive deletion of domains.
pokorra updated this object.
pokorra edited the test plan for this revision. (Show Details)
pokorra set the repository for this revision to rPNL php-Net_LDAP3.
pokorra added a subscriber: vanmeeuwen.

Jeroen, it seems I don't have commit permissions on php-Net_LDAP3.
Can you please commit that change?
Or give me permissions, then I can do that myself...

hmm..., objectclass=* should already catch objects with ldapsubentry class, no?

that is the problem, which took me so long to find.

It seems objectclass=nsTombstone and objectclass=ldapsentry (and probably others as well) are not part of objectclass=*

You can also test this with ldap_search on the commandline, it behaves the same:

different output from
ldapsearch -x -h localhost -D "cn=Directory Manager" -w "$pwd" -b $domain "(|(objectclass=*)(objectclass=ldapsubentry))"
and
ldapsearch -x -h localhost -D "cn=Directory Manager" -w "$pwd" -b $domain "(objectclass=*)"

Ok, thanks for the explanation. Jeroen should see this, anyway.

vanmeeuwen edited edge metadata.
In D23#555, @machniak wrote:

hmm..., objectclass=* should already catch objects with ldapsubentry class, no?

It doesn't, for the entries with an ldapsubentry objectclass are operational objects.

In D23#556, @pokorra wrote:

that is the problem, which took me so long to find.

It seems objectclass=nsTombstone and objectclass=ldapsentry (and probably others as well) are not part of objectclass=*

objectclass=nsTombstone should, though, be avoided.

This revision is now accepted and ready to land.Jun 25 2015, 9:02 AM

how does the landing of the change work?
anything for me to do?

This revision was automatically updated to reflect the committed changes.