[Tickets #9826] Re: Schema checking broken in Turba_Driver_Ldap

bugs at horde.org bugs at horde.org
Fri Apr 15 15:11:25 UTC 2011


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/9826
------------------------------------------------------------------------------
  Ticket           | 9826
  Aktualisiert Von | heinz at htl-steyr.ac.at
  Zusammenfassung  | Schema checking broken in Turba_Driver_Ldap
  Warteschlange    | Turba
  Version          | 3.0
  Typ              | Bug
  Status           | Feedback
  Priorität        | 2. Medium
  Milestone        |
  Patch            |
  Zuständige       | Jan Schneider
+Neue Anlage      | patch_horde_turba_ldap.diff
------------------------------------------------------------------------------


heinz at htl-steyr.ac.at (2011-04-15 15:11) hat geschrieben:

I don't use checksyntax, so I have appied your patch to the function
_checkRequiredAttributes

The schema is now retrieved, but:
- if an objectclass (like turbacontacts) has no MUST attribute, the
function must() in Horde_Ldap_Schema throws an Exception
I've added an empty array entry as a workaround in the parse() function for
must, may and sup attributes if the are not set yet.

- if an objectclass (like inetorgperson) has no MUST attribute but  
MUST attributes
are defined in superior objectclasses we shout recurse to get all  
required attributenames. I have implemented this (quick and dirty)  
only in the function must().
Should be done also in may().

With this changes the Turba_Driver_Ldap works now fine for me.







More information about the bugs mailing list