Hi,
I belive this patch can help other people with RoundCube and LDAP. At the logon time, RoundCube query an ldap server, getting name and e-mail from user (In my case, the users logon with an unique code). The information got from LDAP is saved in mysql database (identities table).
How to install:
1. Copy the file main.inc.patch (attach in this post - remove .txt extension) to directory program/include of roundcube;
2. execute: patch < main.inc.patch
3. In the config/main.inc.php file, insert:
$rcmail_config['virtuser_ldap'] = array('hosts' => 'your.ldap.server',
'port' => 389,
'base_dn' => 'ou=users,dc=domain,dc=com',
'name_field' => 'cn',
'mail_field' => 'mail',
'scope' => 'sub');
4. Run tests. Rember, only new users (with no identities record) will be with correct name and e-mail.
There is a ticket (#1310442) requesting something like this...(I belive).
Enjoy!
Neto.