[turba] Add a own attribute to the Turba source and make it searchable
Jan Schneider
jan at horde.org
Wed Nov 11 07:08:21 UTC 2009
Zitat von Flavio Wächter <chuehbueb at gmail.com>:
> Hello list,
>
> I try to add some ldap-attribute to my turba. The attribute has the
> following format:
>
> homeDirectory: /home/stud/e1e/test.user
>
> So I add this to the attributes.php:
>
> $attributes['myownatt'] = array(
> 'label' => _("MyOwnAtt"),
> 'type' => 'text',
> 'required' => true,
> 'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
> );
>
> (i copied this from the 'name' attribute)
>
> Then i added the following to the following to the sources.php:
>
> 'map' => array(
> '__key' => 'dn',
> 'name' => 'cn',
> 'klasse' => 'homeDirectory',
> [...]
>
> 'search' => array(
> 'name',
> 'klasse',
> [...]
>
> It appears in the dropdown and looks like it's searchable. But when i
> search for e1e there is no result. Can i solve this with some regex?
There is no mapping between the (Turba) attribute and the LDAP field.
You call the attribute "myownatt", but the field "klasse".
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the turba
mailing list