[turba] Composite field, firstname, lastname

Charles AMPEAU luma at galeo.net
Tue Jan 3 01:09:06 PST 2006


>From Robert :

"See bug 2529 for the solution. The patch extends the composite
definition using third array member which maps the composite field to
ldap attribute (in your case composite name <> cn), example

'name' => array('fields' => array('firstname', 'lastname'),
               'format' => '%s %s',
               'attr' => 'cn')

IMO the patch is not commited yet and for me it is working only when
inserting new entry, update fails.

Regards
Robert"


Gianluca Bosco a écrit :
> Hi,
> 
>> I'm using Turba 2.0.5 with LDAP and I'd like to submit contact with
>> firstname and lastname.
>>
>> [...]
>> 'map' => array(
>>        '__key' => 'dn',
>>        '__uid' => 'uid',
>>        //'name' => 'cn',
>>        'name' => array('fields' =>
>> array('firstname','lastname'),'format' => '%s %s'),
>>        'lastname' => 'object_lastname',
>>        'firstname' => 'object_firstname',
>>        'email' => 'mail',
>> [...]
> 
> I´m also interested in the solution of this problem. Can anybody help? :)
> 
> /Gian
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 



More information about the turba mailing list