Код: Выделить всё
$rcmail_config['ldap_public']['domain.ru'] = array(
'name' => 'domain.ru',
'hosts' => array('192.168.1.1'),
'port' => 389,
'use_tls' => false,
'user_specific' => false,
'base_dn' => 'dc=domain,dc=ru',
'bind_dn' => 'cn=exim,ou=system,dc=domain,dc=ru',
'bind_pass' => 'пароль',
'writable' => false, // Indicates if we can write to the LDAP directory or not.
'ldap_version' => 3, // using LDAPv3
'search_fields' => array('Email' => 'mail','FIO' => 'displayName'), // fields to search in
'name_field' => 'displayname', // this field represents the contact's name
'email_field' => 'mail', // this field represents the contact's e-mail
'surname_field' => 'sn', // this field represents the contact's last name
'firstname_field' => 'givenName', // this field represents the contact's first name
'sort' => 'sn', // The field to sort the listing by.
'scope' => 'sub', // search mode: sub|base|list
'filter' => '(&(mail=*)(objectClass=dbmailUser)(accountStatus=active)(!(uid=notice)))', // used for basic listing (if not empty) and will be &'
'global_search' => true, // perform a global search for address auto-completion on compose
'fuzzy_search' => true // server allows wildcard search
);