Author Topic: Roundcube and ldap (read/write)  (Read 8063 times)

Offline madal

  • Jr. Member
  • **
  • Posts: 23
Roundcube and ldap (read/write)
« Reply #15 on: January 13, 2011, 05:44:10 AM »
I am having address book issue from LDAP. here is my config for address book and the error:

$rcmail_config['address_book_type'] = 'ldap';
$rcmail_config['ldap_public']['offaddress'] = array(
  'name'          => 'offaddress',
  'hosts'         => array('myldaphost'),
  'port'          => 389,
  'use_tls'       => false,
  'user_specific' => false,
  'base_dn'       => 'dc=hi,dc=is',
  'bind_dn'       => 'uid=test,ou=People,dc=domain,dc=com',
  'bind_pass'     => 'mypassword',
  'writable'      => false,
  'LDAP_Object_Classes' => array("top","inetOrgPerson"),
  'required_fields'     => array("cn", "mail"),        
  'LDAP_rdn'      => 'mail',
  'ldap_version'  => 3,
  'search_fields' => array('mail', 'cn'),
  'email_field'   => 'mail',
  'displayname_field => 'displayName',
  'sort'          => 'cn',
  'scope'         => 'sub',
  'filter'        => 'cn',
  'global_search' => true,
  'fuzzy_search'  => true,
   );

$rcmail_config['autocomplete_addressbooks'] = array('offaddress');

so I am always getting this error :
PHP Fatal error:  Call to a member function set_pagesize() on a non-object in /var/www/html/roundcube/program/steps/addressbook/func.inc on line 35

What i am doing wrong here, LDAP is an open LDAP. any hints ?

Madal

Offline madal

  • Jr. Member
  • **
  • Posts: 23
Roundcube and ldap (read/write)
« Reply #16 on: January 13, 2011, 07:56:29 AM »
Hello all,

I made this working - some configuration mismatch.

Is there a way to allow user to have their Personal Addressbook and LDAP address book ? if i choose ldap address book then users personal address are not listed in ldap. how can i do that ?

PS: Now the problem is if i type username on compose To: it comes the full address from LDAP i.e Joe Smith , and hit the send now button it comes up with error like this :
PHP Error: Invalid compose ID in /var/www/html/roundcube/program/steps/mail/sendmail.inc on line 33 (POST /roundcube/?_unlock=loading1294928059503?_task=mail&_action=send)

so I cannot send email to this user as using like above however if i use only username@domain.com the mail sends successfully. Is there a workaround ?



M
« Last Edit: January 13, 2011, 09:17:56 AM by madal »