HomePhorge

domain_delete.php: fix deleting the domain avoiding ldap error (#5100) the…

Description

domain_delete.php: fix deleting the domain avoiding ldap error (#5100) the ldap error was: ldap_delete: Operation not allowed on non-leaf on cn=kolab-admin,dc=yourdomain,dc=org

Event Timeline

vanmeeuwen subscribed.

The actual fix for this problem is, as commented on the relevant line, probably a better search for LDAP objects, since it is not guaranteed that cn=kolab-admin is the only role configured in the relevant hierarchy or tree.

/bin/domain_delete.php
118

This is probably because the search for LDAP entries does not explicitly include (objectclass=ldapsubentry), which will make the search include these objectclasses otherwise not included in search results.

Thanks for the comment, you are right!
I have reverted this commit.