From abf7f29fcc0606c898888d9b4c7d733f7c015cc9 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 23 May 2005 11:02:02 +0000 Subject: [PATCH] Fixed problem when no schema retrieval is possible git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@346 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/setup_checks.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/setup_checks.inc b/include/setup_checks.inc index b47111888..5dedce747 100644 --- a/include/setup_checks.inc +++ b/include/setup_checks.inc @@ -65,7 +65,7 @@ function schema_check($server, $admin, $password,$aff=0) /* Build LDAP connection */ $ds= ldap_connect ($server); if (!$ds) { - return (array(_("Can't bind to LDAP. No schema check possible!"))); + return (array(array("msg" => _("Can't bind to LDAP. No schema check possible!"), "status" => FALSE))); } ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); $r= ldap_bind ($ds, $admin, $password); @@ -74,7 +74,7 @@ function schema_check($server, $admin, $password,$aff=0) $sr = @ldap_read ($ds, "", "objectClass=*", array("subschemaSubentry")); $attr= @ldap_get_entries($ds,$sr); if (!isset($attr[0]['subschemasubentry'][0])){ - return (array(_("Can't get schema information from server. No schema check possible!"))); + return (array(array("msg" => _("Can't get schema information from server. No schema check possible!"), "status" => FALSE))); } /* Get list of objectclasses */ @@ -83,7 +83,7 @@ function schema_check($server, $admin, $password,$aff=0) $sr= ldap_read ($ds, $nb, "objectClass=*", array("objectclasses")); $attrs= ldap_get_entries($ds,$sr); if (!isset($attrs[0])){ - return (array(_("Can't get schema information from server. No schema check possible!"))); + return (array(array("msg" => _("Can't get schema information from server. No schema check possible!"), "status" => FALSE))); } foreach ($attrs[0]['objectclasses'] as $val){ $name= preg_replace("/^.* NAME\s+\(*\s*'([^']+)'\s*\)*.*$/", '\\1', $val); -- 2.30.2