[imp] Expanding Name woes
rharrison@hgfip.com
rharrison@hgfip.com
Fri, 13 Sep 2002 09:23:44 +0100
I'm still suffering here.
I can't be far wrong as all the lookups
work from the turba address book.
It's just expanding the names from the compose screen.
Chris thanks for the first pointer. Have made that fix.
config files below
1) imp/config/prefs.php
2) /turba/config/sources.php
--------
imp/config/prefs.php
-------
// Addressbook preferences
// addressbook selection widget
$_prefs['sourceselect'] = array('type' => 'special');
// addressbook(s) to use when expanding addresses
// You can provide default values this way (note the \t and the double quotes):
// 'value' => "source_one\tsource_two"
// refer to turba/config/sources.php for possible source values
$_prefs['search_sources'] = array(
'value' => 'hgf',
'locked' => false,
'shared' => false,
'type' => 'implicit'
);
// field(s) to use when expanding addresses
// This depends on the search_sources preference if you want to provide default
values:
// 'value' => "source_one\tfield_one\tfield_two\nsource_two\tfield_three"
// will search the fields 'field_one' and 'field_two' in source_one and
// 'field_three' in source_two.
// refer to turba/config/sources.php for possible source and field values
$_prefs['search_fields'] = array(
'value' => "hgf\tname\temail",
'locked' => false,
'shared' => false,
'type' => 'implicit'
);
-----
/turba/config/sources.php
-----
$cfgSources['hfg'] = array(
'title' => 'Harrison Goddard Foote Directory',
'type' => 'ldap',
'params' => array(
'server' => 'leeds650.leeds.hgfip.com',
'port' => 389,
'root' => 'dc=hgfip,dc=com',
'dn' => array('cn'),
'objectclass' => 'person',
'filter' => ''
),
'map' => array(
'__key' => 'dn',
'name' => 'cn',
'email' => 'mail',
'alias' => 'givenname'
),
'search' => array(
'name',
'email',
'alias'
),
'strict' => array(
'dn'
),
'public' => true,
'readonly' => true,
'export' => false
);