[turba] Re: how to combine givenname and sn to cn ?
andreas oster
aoster at novanetwork.de
Thu Apr 8 04:37:21 PDT 2004
Jan Schneider wrote:
> Zitat von andreas oster <aoster at novanetwork.de>:
>
>> Hi List,
>>
>> for the creation of new LDAP enries I have added two
>> new attributes for givenname and surname. This works
>> well, but when adding a new contact I have to enter
>> the name twice, one time for cn and second for sn
>> and givenname. Is it possible to combine sn and givenname
>> to generate the cn ? How and where in the code can this
>> be done ?
>
>
> Turba 2.0 supports this via composite fields.
>
> Jan.
>
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - Neue Wege des Lernens
> http://www.tip4all.de - Deine private Tippgemeinschaft
Hello Jan,
I have one more question. After inserting the following
line into my sources.php the name field is propperly
combined from firstname and lastname field.
'name' => array('fields' => array('firstname', 'lastname'),
Now I have run into another problem. Before, i had an entry
'name' => 'cn',
and the ldap entry was created with a cn (the name field
content). Now this doesn't work anymore, obviously because the
name > cn mapping was removed. How can I assign the content
of the composite field to the cn for the new ldap entry ?
thank you again for your kind help
best regards
Andreas
'format' => '%s %s')
More information about the turba
mailing list