Код: Выделить всё
// ----------------------------------
// ADDRESSBOOK SETTINGS
// ----------------------------------
// This indicates which type of address book to use. Possible choises:
// 'sql' (default) and 'ldap'.
// If set to 'ldap' then it will look at using the first writable LDAP
// address book as the primary address book and it will not display the
// SQL address book in the 'Address Book' view.
$rcmail_config['address_book_type'] = 'ldap';
// In order to enable public ldap search, configure an array like the Verisign
// example further below. if you would like to test, simply uncomment the example.
//$rcmail_config['ldap_public'] = array();
$rcmail_config['ldap_public']['ISKER.KZ'] = array(
'name' => 'ISKER.KZ',
'hosts' => array('192.168.15.2'),
'port' => 389,
'use_tls' => false,
'user_specific' => false,
'base_dn' => 'DC=ISKER,DC=KZ',
'bind_dn' => 'CN=administrator,DN=ISKER,DC=KZ',
'bind_pass' => '******',
'writable' => false,
'LDAP_Object_Classes' => array("top", "inetOrgPerson"),
'required_fields' => array("cn", "sn", "mail"),
'LDAP_rdn' => 'mail',
'ldap_version' => 3,
'search_fields' => array('mail', 'cn'),
'name_field' => 'cn',
'email_field' => 'mail',
'surname_field' => 'sn',
'firstname_field' => 'givenName',
'sort' => 'cn',
'scope' => 'sub',
'filter' => '(mail=*)',
'fuzzy_search' => true
//'sizelimit' => '0',
//'global_search' => true,
//'timelimit' => '0',
);
// An ordered array of the ids of the addressbooks that should be searched
// when populating address autocomplete fields server-side. ex: array('sql','Verisign');
$rcmail_config['autocomplete_addressbooks'] = array('ldap');