summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e179710)
raw | patch | inline | side by side (parent: e179710)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 23 May 2005 11:02:02 +0000 (11:02 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 23 May 2005 11:02:02 +0000 (11:02 +0000) |
include/setup_checks.inc | patch | blob | history |
index b47111888156f119c5eba194181b029361d60cd3..5dedce74791cae3e02d944fe313f35f63851ea22 100644 (file)
--- a/include/setup_checks.inc
+++ b/include/setup_checks.inc
/* 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);
$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 */
$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);