set deref setting

This commit is contained in:
Roland Gruber 2010-02-15 17:36:45 +00:00
parent b86ea7b33f
commit efc47ad218
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ function getChildCount($dn) {
*/ */
function deleteDN($dn) { function deleteDN($dn) {
$errors = array(); $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) { if ($sr) {
$entries = ldap_get_entries($_SESSION['ldap']->server(), $sr); $entries = ldap_get_entries($_SESSION['ldap']->server(), $sr);
$entries = cleanLDAPResult($entries); $entries = cleanLDAPResult($entries);