Code

Updated toggle functions
[gosa.git] / html / getldif.php
index 541204607c66b26ee340a12b01e474efadcc4080..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",
@@ -65,8 +65,8 @@ session_start ();
 
 /* Logged in? Simple security check */
 if (!isset($_SESSION['ui'])){
-  gosa_log ("Error: getpic.php called without session");
-  header ("Location: ../index.php");
+  gosa_log ("Error: getldif.php called without session");
+  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;
 }