diff --git a/lam/templates/delete.php b/lam/templates/delete.php index 86c1c6cb..70ddcc18 100644 --- a/lam/templates/delete.php +++ b/lam/templates/delete.php @@ -256,7 +256,7 @@ function getChildCount($dn) { */ function deleteDN($dn) { $errors = array(); - $sr = @ldap_list($_SESSION['ldap']->server(), $dn, 'objectClass=*', array('dn'), 0); + $sr = @ldap_list($_SESSION['ldap']->server(), $dn, 'objectClass=*', array('dn'), 0, 0, 0, LDAP_DEREF_NEVER); if ($sr) { $entries = ldap_get_entries($_SESSION['ldap']->server(), $sr); $entries = cleanLDAPResult($entries);