Code

Updatd index.php
[gosa.git] / html / getldif.php
index 63d9636967b885d31642292083b2ce64b12af7fd..1c32f12ace8d473822e2d8d9ada9fc1653b86ac9 100644 (file)
@@ -37,7 +37,7 @@ function dump_ldap ($mode= 0)
        }
        elseif($mode == 4){ // IVBB LDIF Export
        $dn =  base64_decode($_GET['dn']);
-       $display= $ldap->gen_ldif($dn,"(objectClass=ivbbEntry)",array(
+       $display= $ldap->gen_ldif($dn,"(objectClass=ivbbentry)",array(
              "GouvernmentOrganizationalUnit","houseIdentifier","vocation",
              "ivbbLastDeliveryCollective","gouvernmentOrganizationalPersonLocality",
              "gouvernmentOrganizationalUnitDescription","gouvernmentOrganizationalUnitSubjectArea",
@@ -66,7 +66,7 @@ session_start ();
 /* Logged in? Simple security check */
 if (!isset($_SESSION['ui'])){
   gosa_log ("Error: getldif.php called without session");
-  header ("Location: ../index.php");
+  header ("Location: index.php");
   exit;
 }
 $ui= $_SESSION["ui"];
@@ -84,7 +84,7 @@ header("Content-type: text/plain");
 $acl= get_permissions ($config->current['BASE'], $ui->subtreeACL);
 $acl= get_module_permission($acl, "all", $config->current['BASE']);
 if (chkacl($acl, "all") != ""){
-  header ("Location: ../index.php");
+  header ("Location: index.php");
   exit;
 }