I have LDAP configured and generally it works. But I can't get RoundCube to write to the LDAP address book. This is kinda of a must if I am to switch to roundcube from squirrelmail.
I would settle for LDAP Global Address Book, and MySQL address book for personal Address books and Groups.. if thats possible.
Here is my openLDAP config from Webmin
Root DN for LDAP Database : dc=foxlakecreenation,dc=com
Administration Login DN : cn=Manager,dc=foxlakecreenation,dc=com
Administration Password Unix Encrypted : XXXXXXXXXXXXXX
Here is my RoundCube LDAP config from main.inc.php
$rcmail_config['address_book_type'] = 'ldap';
$rcmail_config['ldap_public']["foxlakecreenation"] = array(
'name' => 'foxlakecreenation.com',
'user_specific' => false,
'hosts' => array("127.0.0.1"),
'port' => 389,
'base_dn' => "dc=foxlakecreenation,dc=com",
'bind_dn' => "cn=Manager,dc=foxlakecreenation,dc=com",
'bind_pass' => "*************",
'writable' => true,
'ldap_version' => "3", // using LDAPv3
'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' => 'givenName', // this field represents the contact's first name
'scope' => 'sub', // search mode: sub|base|list
'fuzzy_search' => true); // server allows wildcard search
// An ordered array of the ids of the addressbooks that should be searched
// when populating address autocomplete fields server-side. ex: array('sql','Verisign');
$rcmail_config['autocomplete_addressbooks'] = array('foxlakecreenation');
// don't allow these settings to be overriden by the user
$rcmail_config['dont_override'] = array();
When I try to add a contact I get his in the error log.
PHP Warning: Invalid argument supplied for foreach() in /usr/share/roundcubemail/program/include/rcube_ldap.php on line 424
which is this line.
424 foreach ($this->prop["required_fields"] as $fld) {
What does all this mean? and how can I fix it?
Travis Harper