[Tickets #2379] Re: Add support for handling binary objects

bugs at horde.org bugs at horde.org
Mon Apr 2 09:10:58 UTC 2012


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

Ticket-URL: http://bugs.horde.org/ticket/2379
------------------------------------------------------------------------------
  Ticket           | 2379
  Aktualisiert Von | kd at tu-cottbus.de
  Zusammenfassung  | Add support for handling binary objects
  Warteschlange    | Turba
  Version          | HEAD
  Typ              | Enhancement
  Status           | Accepted
  Priorität        | 1. Low
  Milestone        |
  Patch            |
  Zuständige       |
+Neue Anlage      | _getResults.php
------------------------------------------------------------------------------


kd at tu-cottbus.de (2012-04-02 09:10) hat geschrieben:

> General support has been added to Turba, but not for the LDAP driver  
> yet. A patch for LDAP would be nice.
ok,
here is a replacement for the _getResults method in Ldap.php.
It replaces the main-loop by an first_entry - next_entry loop.
The tricky part is how to tell, whether or not an attribute has to be  
retrieved
by ldap_get_values_len (is binary). This is done in  
_isBinaryValue($atrribute).
If schema-checking is available, the 'certificate' and 'jpeg' syntaxes  
are selected.
Otherwise an additional server configuration option is needed.
e.g. 'binary' => array('jpegPhoto','userCertificate;binary').







kd at tu-cottbus.de (2012-04-02 09:10) hat hochgeladen: _getResults.php

http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=_getResults.php&ticket=2379&fn=%2F_getResults.php





More information about the bugs mailing list