From ccb83beccd5d0edc18b2965ec478ba4196e42855 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 19 Apr 2007 15:13:52 +0000 Subject: [PATCH] Added setup security check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6141 594d385d-05f5-0310-b6e9-bd551577e9d8 --- setup/class_setupStep_Welcome.inc | 15 ++++++++++++++- setup/setup_migrate.tpl | 18 ++++++++++++++++- setup/setup_welcome.tpl | 32 +++++++++++++++++++++++++++++-- 3 files changed, 61 insertions(+), 4 deletions(-) diff --git a/setup/class_setupStep_Welcome.inc b/setup/class_setupStep_Welcome.inc index 7549aaae3..154641958 100644 --- a/setup/class_setupStep_Welcome.inc +++ b/setup/class_setupStep_Welcome.inc @@ -42,8 +42,21 @@ class Step_Welcome extends setup_step function execute() { - $this->is_completed = true; + /* Get auth ID from file */ + if (file_exists('/tmp/gosa.auth') && is_readable('/tmp/gosa.auth')){ + $contents= file('/tmp/gosa.auth'); + $id= chop($contents[0]); + } + + /* Continue if we've the correct ID */ + if ($id == session_id()){ + $this->is_completed = true; + } else { + $this->is_completed = false; + } + $smarty = get_smarty(); + $smarty->assign('auth_id', session_id()); return($smarty->fetch(get_template_path("setup_welcome.tpl",TRUE,dirname(__FILE__)))); } diff --git a/setup/setup_migrate.tpl b/setup/setup_migrate.tpl index 36c66ebef..9121a4114 100644 --- a/setup/setup_migrate.tpl +++ b/setup/setup_migrate.tpl @@ -1,5 +1,21 @@
-

{t}This one is empty, currently.{/t}

+

{t}Tasks{/t}

+ + * Look for ACL's. If none is there, choose one user to be the super administrator +
+ * Look for organizationalUnits and let add GOsa departments for selected ones +
+ * Look for person / organizationalPerson and add GOsa account +
+ * Allow to move selected users to people ou's - take care for groupOfNames +
+ * Allow to move selected groups to group ou's - take care for groupOfNames +
+ * Allow to move selected winstations to winstation ou's - take care for groupOfNames +
+ * Check for double uidNumbers/gidNumbers +
+ * Check for mail accounts and add gosaMailAccount - optionally create these accounts on the IMAP server
diff --git a/setup/setup_welcome.tpl b/setup/setup_welcome.tpl index 44a51bec7..e73841b6d 100644 --- a/setup/setup_welcome.tpl +++ b/setup/setup_welcome.tpl @@ -1,11 +1,39 @@
-

{t}Starting to configure GOsa to your needs{/t}

{t}This seems to be the first time you start GOsa - we didn't find any configuration right now. This simple wizard intends to help you while setting it up.{/t}

- {t}There needs to be more information here...{/t} + +

+ {t}What will the wizard do for you?{/t} +

+
    +
  • {t}Create a basic, single site configuration{/t}
  • +
  • {t}Tries to find problems within your PHP and LDAP setup{/t}
  • +
  • {t}Let you choose from a set of basic and advanced configuration switches{/t}
  • +
  • {t}Guided migration of existing LDAP trees{/t}
  • +
+

+ {t}What will the wizard NOT do for you?{/t} +

+
    +
  • {t}Find every possible configuration error{/t}
  • +
  • {t}Migrate every possible LDAP setup - create backup dumps!{/t}
  • +
+ +

+

+ {t}To continue...{/t} +

+

+ {t}For security reasons you need to authenticate for the installation by creating the file '/tmp/gosa.aut', containing the current session ID on the servers local filesystem. This can be done by executing the following command:{/t} +

+ + # echo -n {$auth_id} > /tmp/gosa.auth + +

+ {t}Click the 'Continue' button when you've finished.{/t}

-- 2.30.2