summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5fdf87)
raw | patch | inline | side by side (parent: c5fdf87)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 26 Apr 2007 12:40:37 +0000 (12:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 26 Apr 2007 12:40:37 +0000 (12:40 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6196 594d385d-05f5-0310-b6e9-bd551577e9d8
setup/class_setupStep_Schema.inc | patch | blob | history |
index b5bd6bbf1d86bf8cda1ec1bbf38f967cf8af36f9..078fb63527d7406390e4726ef2fde5646a11c72c 100644 (file)
if($failed_checks == 0){
$this->is_completed = TRUE;
}else{
- $this->is_completed = FALSE;
+ $this->is_completed = TRUE;
}
$smarty = get_smarty();
$ldap = new LDAP($cfg['admin'],$cfg['password'],$cfg['connection'] ,FALSE,$cfg['tls']);
$objectclasses = $ldap->get_objectclasses();
if(count($objectclasses) == 0){
- return (array(array("msg" => _("Can't get schema information from server. No schema check possible!"), "status" => FALSE)));
+ print_red(_("Can't get schema information from server. No schema check possible!"));
}
/* Depending on selected rfc2307bis mode, we need different schema configurations */
$rfc2307bis = $this->parent->captured_values['rfc2307bis'];
- $posixGroup = $tmp['posixGroup'];
- $structural = preg_match("/STRUCTURAL/i",$posixGroup);
+
/* The gosa base schema */
$checks['posixGroup'] = $def_check;
$checks['posixGroup']['MSG'] = "";
$checks['posixGroup']['INFO'] = "";
- if($rfc2307bis && $structural){
- $checks['posixGroup']['STATUS'] = FALSE;
- $checks['posixGroup']['MSG'] = _("You have enabled the rfc2307bis option on the 'ldap setup' step, but your schema configuration do not support this option.");
- $checks['posixGroup']['INFO'] = _("In order to use rfc2307bis corform groups the objectClass 'posixGroup' must be AUXILIARY");
- }
- if(!$rfc2307bis && !$structural){
- $checks['posixGroup']['STATUS'] = FALSE;
- $checks['posixGroup']['MSG'] = _("You have disabled the rfc2307bis option on the 'ldap setup' step, but your schema configuration do not support this option.");
- $checks['posixGroup']['INFO'] = _("The objectClass 'posixGroup' must be STRUCTURAL");
- }
+ if(isset($tmp['posixGroup'])){
+ $posixGroup = $tmp['posixGroup'];
+ $structural = preg_match("/STRUCTURAL/i",$posixGroup);
+ if($rfc2307bis && $structural){
+ $checks['posixGroup']['STATUS'] = FALSE;
+ $checks['posixGroup']['MSG'] = _("You have enabled the rfc2307bis option on the 'ldap setup' step, but your schema configuration do not support this option.");
+ $checks['posixGroup']['INFO'] = _("In order to use rfc2307bis corform groups the objectClass 'posixGroup' must be AUXILIARY");
+ }
+ if(!$rfc2307bis && !$structural){
+ $checks['posixGroup']['STATUS'] = FALSE;
+ $checks['posixGroup']['MSG'] = _("You have disabled the rfc2307bis option on the 'ldap setup' step, but your schema configuration do not support this option.");
+ $checks['posixGroup']['INFO'] = _("The objectClass 'posixGroup' must be STRUCTURAL");
+ }
+ }
$this->checked = $checks;
}