Как прикрутить в Roundcube адресную книгу из LDAP? Редактируем файлик /usr/local/www/roundcube/config/mail.inc.php //$rcmail_config['address_book_type'] = 'sql'; $rcmail_config['address_book_type'] = 'ldap'; $rcmail_config['ldap_public']['public'] = array( 'name' => 'LDAP Addressbook', 'hosts' => array('localhost'), 'port' => 389, 'user_specific' => false, 'base_dn' => 'ou=addressbook,dc=company,dc=local', 'bind_dn' => 'cn=root,dc=company,dc=local', 'bind_pass' => 'xxxxx', 'filter' => '(objectclass=*)', 'search_fields' => array('mail', 'cn'), // fields to search in 'name_field' => 'cn', // 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' => 'gn', // this field represents the contact's first name 'sort' => 'cn', // The field to sort the listing by. // 'scope' => 'sub', // search mode: sub|base|list 'fuzzy_search' => true, // server allows wildcard search 'sizelimit' => '0', // Enables you to limit the count of entries fetched. // Setting this to 0 means no limit. 'timelimit' => '0', // Sets the number of seconds how long is spend on the // search. Setting this to 0 means no limit. );
Источник: http://www.arg.su/ru-RU/Roundcube-LDAP |