[turba] Composite fields

Chuck Hagenbuch chuck at horde.org
Tue Nov 18 14:57:12 PST 2003


Quoting Richard Heggs <richard.heggs at nottinghamcity.gov.uk>:

> I'm trying to create a composite search/display field for my LDAP backend.
> I want to make the 'name' field map to a composite of the LDAP 'dn' and
> 'givenName' attributes.

Something like this, but you'll need to adapt it to your backend:

        'name' => array('fields' => array('firstname', 'lastname'),
                        'format' => '%s %s'),
        'firstname' => 'object_firstname',
        'lastname' => 'object_lastname',

Also, I don't think I ever tested composite fields with LDAP, so while it
*should* work, you might run into a thing or two.

> Could someone point to the appropriate place in TFM[L]? that I should R,
> please? :)

There isn't one for HEAD yet. I think you just volunteered to write this bit. ;)

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"I'm really... I'm not too fascinated by green food." - Average Joe


More information about the turba mailing list