From 7e11c22a418b79ab3a741471e860bfafd310affc Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 May 2007 13:07:21 +0000 Subject: [PATCH] Updated admin create dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6306 594d385d-05f5-0310-b6e9-bd551577e9d8 --- setup/class_setupStep_Migrate.inc | 11 +++++++++-- setup/setup_migrate.tpl | 6 +++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/setup/class_setupStep_Migrate.inc b/setup/class_setupStep_Migrate.inc index c2379c230..1fb446102 100644 --- a/setup/class_setupStep_Migrate.inc +++ b/setup/class_setupStep_Migrate.inc @@ -772,7 +772,7 @@ class Step_Migrate extends setup_step $ldap->cat(base64_decode($tmp[2]),array("objectClass")); $ret = $ldap->fetch(); - if(in_array("gosaAccount",$ret['objectClass']) && + if(isset($ret['objectClass']) && in_array("gosaAccount",$ret['objectClass']) && in_array("organizationalPerson",$ret['objectClass']) && in_array("inetOrgPerson",$ret['objectClass'])){ $found = TRUE; @@ -852,6 +852,9 @@ class Step_Migrate extends setup_step $ldap->cd($cv['base']); if(!$ldap->modify($attrs_new)){ print_red(sprintf(_("Adding acls for user '%s' failed, ldap says '%s'."),$dn,$ldap->get_error())); + return(FALSE); + }else{ + return(TRUE); } } } @@ -1208,7 +1211,11 @@ class Step_Migrate extends setup_step } if(isset($_POST['create_acls_create_confirmed'])){ - $this->create_admin(); + if($this->create_admin()){ + $this->acl_create_dialog = FALSE; + $this->dialog = FALSE; + $this->initialize_checks(); + } } if(isset($_POST['create_acls_create'])){ diff --git a/setup/setup_migrate.tpl b/setup/setup_migrate.tpl index e5c6dfcb5..e3873f8b2 100644 --- a/setup/setup_migrate.tpl +++ b/setup/setup_migrate.tpl @@ -261,15 +261,15 @@ {/if} - {/if} - -

 

+ {/if} + + {elseif $method == "migrate_deps"} -- 2.30.2