Code

fixed permission check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 May 2007 12:07:41 +0000 (12:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 May 2007 12:07:41 +0000 (12:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6227 594d385d-05f5-0310-b6e9-bd551577e9d8

setup/class_setupStep_Migrate.inc
setup/setup_migrate.tpl

index 7d45651766a903c7a4d56463ab61b5bd600cda05..fb7861a1e3b8efff0421829b7e78fe950026ac99 100644 (file)
@@ -453,7 +453,8 @@ class Step_Migrate extends setup_step
     $ldap->cd ($dn);
     $ldap->create_missing_trees($dn);
     $res = $ldap->add($testEntry);
-    if(!$res){
+    $ldap->cat($dn);
+    if(!$ldap->count()){
       gosa_log($ldap->get_error());
       $this->checks['permissions']['STATUS']    = FALSE;
       $this->checks['permissions']['STATUS_MSG']= _("Failed");
@@ -465,7 +466,8 @@ class Step_Migrate extends setup_step
     /* Try to remove created entry 
      */
     $res = $ldap->rmDir($dn);
-    if(!$res){
+    $ldap->cat($dn);
+    if($ldap->count()){
       gosa_log($ldap->get_error());
       $this->checks['permissions']['STATUS']    = FALSE;
       $this->checks['permissions']['STATUS_MSG']= _("Failed");
index cbf5a8ee06d1cf2d310cd5802418f91a8f70eea8..51139288abcc459b0ab22de77dfee1631af3ae6c 100644 (file)
                                <input type='submit' name='outside_groups_dialog_cancel' value='{t}Close{/t}'>
                        </div>
                
-
-               {elseif $method == "create_acls"}
                {elseif $method == "outside_users"}
 
                        <h2>{t}Move users into valid user departments{/t}</h2>