$rcmail_config['address_book_type'] = 'ldap';
$rcmail_config['ldap_public']['Addbook'] = array(
'hosts' => array('localhost'),
'port' => 389,
'use_tls' => false,
'user_specific' => false,
'base_dn' => 'dc=mail,dc=foo,dc=com',
'LDAP_Object_Classes' => array("top", "inetOrgPerson"),
'required_fields' => array("cn", "sn", "mail"),
'LDAP_rdn' => 'mail',
'search_fields' => array('mail', 'cn'),
'name_field' => 'cn',
'email_field' => 'mail',
'surname_field' => 'sn',
'firstname_field' => 'gn',
'sort' => 'cn',
'fuzzy_search' => true,
'sizelimit' => '0',
'timelimit' => '0',
);
$rcmail_config['autocomplete_addressbooks'] = array('ldap','
foo.com');
$rcmail_config['autocomplete_min_length'] = 1;