Page MenuHomePhorge

fixing recursive deletion of domains
ClosedPublic

Authored by pokorra on Jun 16 2015, 8:10 AM.
Tags
None
Referenced Files
F11578788: D23.id58.diff
Wed, Mar 27, 10:52 PM
Unknown Object (File)
Sun, Mar 24, 3:01 PM
Unknown Object (File)
Fri, Mar 22, 3:13 PM
Unknown Object (File)
Tue, Mar 19, 6:22 PM
Unknown Object (File)
Feb 10 2024, 1:15 AM
Unknown Object (File)
Feb 8 2024, 4:48 AM
Unknown Object (File)
Feb 4 2024, 11:01 AM
Unknown Object (File)
Feb 3 2024, 7:04 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.