Skip to content
Snippets Groups Projects
Commit 85c8e887 authored by Timotheus Pokorra's avatar Timotheus Pokorra
Browse files

fixing recursive deletion of domains

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

Reviewers: vanmeeuwen, #web_administration_panel_developers

Reviewed By: vanmeeuwen, #web_administration_panel_developers

Subscribers: machniak, vanmeeuwen

Differential Revision: https://git.kolab.org/D23
parent 69e6579e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -665,7 +665,7 @@ class Net_LDAP3
public function delete_entry_recursive($entry_dn)
{
// searching for sub entries, but not scope sub, just one level
$result = $this->search($entry_dn, '(objectclass=*)', 'one');
$result = $this->search($entry_dn, '(|(objectclass=*)(objectclass=ldapsubentry))', 'one');
 
if ($result) {
$entries = $result->entries(true);
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment