My config for the access to my LDAP
$rcmail_config['ldap_public']['domain.net'] = array(
'name' => 'Addressbook',
'user_specific' => true,
'hosts' => array('localhost'),
'port' => 389,
'base_dn' => 'ou=%u,ou=addressbook,dc=domain,dc=net',
'bind_dn' => 'cn=admin,dc=domain,dc=net',
'bind_pass' => '<password>',
'writeable' => true,
'LDAP_Object_Classes' => array('top','inetOrgPerson'),
'search_fields' => array('cn', 'mail'),
'required_fields' => array('cn', 'sn', 'mail'),
'LDAP_rdn' => 'mail',
'ldap_version' => 3,
'name_field' => 'cn',
'firstname_field' => 'gn',
'surname_field' => 'sn',
'email_field' => 'mail',
'scope' => 'sub',
'filter' => '',
'fuzzy_search' => true);