[turba] Add a own attribute to the Turba source and make it searchable
Flavio Wächter
chuehbueb at gmail.com
Tue Nov 10 14:25:53 UTC 2009
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?
Best regards
More information about the turba
mailing list