cleanfile(); } } global $base; global $ldap; $filter="(uid=*)"; $want = array('dn'); $listoptions = patch($_POST["delusers"]); foreach ($listoptions as $type) { $resultado = ldap_search($ldap,$type.$base,$filter,$want); $entries = @ldap_get_entries ($ldap, $resultado); unset($entries['count']); for ($i=0; $i < count($entries); $i++) { $entries[$i] = $entries[$i]['dn']; } ldapDelUser($entries,$ldap,$base); cleanlogs($_POST["delusers"]); } echo ""; echo ""; ?>