From: cajus Date: Fri, 27 Apr 2007 12:37:58 +0000 (+0000) Subject: Updated for new get_objectclasses() X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=037c56a9f7cc72aa444d5ade5ef9e889058717de;p=gosa.git Updated for new get_objectclasses() git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6205 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/setup/class_setupStep_Schema.inc b/setup/class_setupStep_Schema.inc index cf4e68d97..25d6d68c0 100644 --- a/setup/class_setupStep_Schema.inc +++ b/setup/class_setupStep_Schema.inc @@ -222,15 +222,13 @@ class Step_Schema extends setup_step $checks['posixGroup']['INFO'] = ""; if(isset($tmp['posixGroup'])){ - $posixGroup = $tmp['posixGroup']; - $structural = preg_match("/STRUCTURAL/i",$posixGroup); - if($rfc2307bis && $structural){ + if($rfc2307bis && isset($tmp['posixGroup']['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){ + if(!$rfc2307bis && !isset($tmp['posixGroup']['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");