Hi all,
I'm working with OSX Leopard Server 10.5.6 (openLDAP 2.3, PHP 5.2, perl 5.8.
.
I've create a centralized LDAP address book server using the ABxLDAP program (addressbook for LDAP) on every client, that synchronize all the users local address books with the LDAP server (openLDAP 2.3) using a custom schema (abxldap.schema). All works OK.
Now
I would like to connect the Roundcube addressbook with the centralized LDAP addressbook Server using the customized schema.
I've tried a lots of configurations...without results
The base/bind credentials are the same that I've used for succesfull connect the ABxLDAP programs to the LDAP Server.
Actually I use the 0.2.1 version of Roundcube and the LDAP section of my main.inc.php file are:
$rcmail_config['address_book_type'] = 'ldap';
$rcmail_config['ldap_public'] = array(Stancioli);
$rcmail_config['ldap_public']['Stancioli'] = array(
'name' =>MyCompanyName',
'hosts' => array('servername.my.domain.name'),
'port' => 389,
'use_tls' => false,
'user_specific' => true,
'base_dn' => 'cn=people,dc=servername,dc=my,dc=domain,dc=name',
'bind_dn' => 'uid=diradmin,cn=users,dc=servernamee,dc=my,dc=domain,dc=name',
'bind_pass' => 'mybindpassword',
'writable' => true,
'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' => '',
'fuzzy_search' => true);
$rcmail_config['autocomplete_addressbooks'] = array('Stancioli');
With this LDAP configuration, the RC addressbook appears as a horizontal 3-panels page (Groups, displayed name and details) where:
- on the groups panel appear only the first letter of my company name ("S")
- on the displayed name appears...nothing!
When I try to search something....the "no contact found" message appears.
The following messages appears on my RC error.log file:
[16-Mar-2009 10:14:46] PHP Warning: Invalid argument supplied for foreach() in /websites/roundcubemail-0.2.1/program/include/rcube_ldap.php on line 56
[16-Mar-2009 10:14:46] PHP Warning: Invalid argument supplied for foreach() in /websites/roundcubemail-0.2.1/program/include/rcube_ldap.php on line 85
[16-Mar-2009 10:14:46 -0300] LDAP Error: Could not connect to any LDAP server, tried :A last (GET /?_task=addressbook&_action=search&_q=24&_source=0&_remote=1&_ts=1237209286014)
Now...
When I mistake? What is the cause of the problem?
Any suggestion are welcome!
Thanks.