[imp] Expanding Name woes

Robert rharrison@hgfip.com
Thu, 12 Sep 2002 16:40:48 +0100


This is a multi-part message in MIME format.

---------------------- multipart/alternative attachment
All,
 
I have a working LDAP directory set up under turba but I can't get the
expand names working from imp.
 
Any ideas out there.
 
If I'm being dim then I applogise now.
 
Robert
 
--------
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' => '',
    '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
);


Robert Harrison 
IT Manager 
______________________________ 

Harrison Goddard Foote 
Belgrave Hall 
Belgrave Street 
Leeds 
LS2 8DD 

T +44 113 233 0110 
F +44 113 233 0101 
M +44 774 094 7814 

http://www.hgfip.com <http://www.hgfip.com/>  

A Streetmap is available at 
http://www.streetmap.co.uk/streetmap.dll?grid2map?X=430276
<http://www.streetmap.co.uk/streetmap.dll?grid2map?X=430276&Y=433962&arr
ow=Y&zoom=0> &Y=433962&arrow=Y&zoom=0 

 

---------------------- multipart/alternative attachment--