Hello everybody,
First, many thanks for your work, it seems to be promising...
I'm currently uses two versions of Roundcube on the same machine : 0.2 and the svn branch as test. Both versions uses the same config file. If it's better to have two different config files, I can.
Since I have updated to the last SVN branch three days ago, something is broken into my LDAP config. The LDAP autocomplete and add address is working as usually, and the list of contact still appear into the address book page. However, when I click on a contact, I have an error message "The requested contact was not found".
Here my LDAP configuration:
$rcmail_config['ldap_public']['shared'] = array(
'name' => 'Red2 Shared',
'writable' => true,
'LDAP_Object_Classes' => array("top", "inetOrgPerson"),
'LDAP_rdn' => 'mail',
'sort' => 'cn',
'hosts' => array('ldap.red2.co.uk'),
'port' => 389,
'base_dn' => 'ou=addressbook,dc=red2,dc=co,dc=uk',
'bind_dn' => 'cn=Red2 Team,ou=people,dc=red2,dc=co,dc=uk',
'bind_pass' => '*****',
'ldap_version' => 3, // using LDAPv3
'search_fields' => array('cn', 'sn', 'givenName', 'mail'), // fields to search in
'required_fields' => array('cn', 'sn', 'mail'),
'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' => 'givenName', // this field represents the contact's first name
'scope' => 'sub', // search mode: sub|base|list
'filter' => '(mail=*)',
'fuzzy_search' => true,
'user_specific' => false
); // server allows wildcard search
Also, I'd like to add some fields into the address book. I know roundcube use an abstract base class for the address book, but the implementation seems to be very flexible. Is it possible to use this implementation to add new fields in r/w mode, like phone numbers, postal address, etc? In this case, can I modify the rcube_ldap.php file and send you a patch, or it's better to write a plugin ?
Thanks again.
PS for Alec : Спасибо !
André Rodier.