From 037c56a9f7cc72aa444d5ade5ef9e889058717de Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 27 Apr 2007 12:37:58 +0000 Subject: [PATCH] Updated for new get_objectclasses() git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6205 594d385d-05f5-0310-b6e9-bd551577e9d8 --- setup/class_setupStep_Schema.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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"); -- 2.30.2