Re: [phpldapadmin] [ phpldapadmin-Bugs-2959419 ] Schema error when combining overlays
Aleph <[email protected]> Tue, 11 Oct 2011 08:45:33 +0000 (UTC)
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <[email protected]> |
In OpenLDAP (2.4.23 at least), the attribute "olmDbURIList" inherits from
"managedInfo".
managedInfo is defined in monitor but is marked as HIDDEN attributetype.
--- /server/slapd/back-monitor/init.c - 1717 --------------------------
{ "( 1.3.6.1.4.1.4203.666.1.55.1 "
"NAME 'monitoredInfo' "
"DESC 'monitored info' "
/* "SUP name " */
"EQUALITY caseIgnoreMatch "
"SUBSTR caseIgnoreSubstringsMatch "
"SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} "
"NO-USER-MODIFICATION "
"USAGE dSAOperation )", SLAP_AT_HIDE,
offsetof(monitor_info_t, mi_ad_monitoredInfo) },
olmDbURIList inherits from it and is not marked as HIDDEN.
--- /server/slapd/back-ldap/monitor.c - 1717 --------------------------
{ "( olmLDAPAttributes:1 "
"NAME ( 'olmDbURIList' ) "
"DESC 'List of URIs a proxy is serving; can be modified run-time' "
"SUP managedInfo )",
&ad_olmDbURIList },
{ NULL }
OpenLDAP would not start without the superior attribute type defined. But it
should at least complain about one "public" attribute type inheriting from a
hidden attribute type.
When PHPLDAPAdmin retrieves the schema from the LDAP, it blocks on the problem
and does nothing more.
To solve this, edit the lib/ds_ldap.php file, go to the line 1690 and modify it
as follows:
if (! isset($attrs[strtolower($sup_attr_name)])){
# error(sprintf('Schema error: attributeType "%s"
inherits from "%s", but attributeType "%s" does not exist.',
#
$attr->getName(),$sup_attr_name,$sup_attr_name),'error','index.php');
$sup_attr = '';
$sup_attr_name = '';
# return;
}
else {
+ add the closing } at the end of the section.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/