[RCD] [RCU] testing ldap addressbook

Andreas Dick andudi at gmx.ch
Mon Feb 27 10:16:29 CET 2012


Am 2012-02-27 04:21, schrieb Nelson Serafica:
> Im currently studying roundcube with ldap as its DEFAULT addressbook.
> I have a running ldap for addressbook and it is working fine in an
> email client such as Thunderbird. Below is my setup in TB
>
> Base DN : dc=mail,dc=foo,dc=com
> Port 388
>
> Port 388 is being forward to 389 of my ldap server. However, I cannot
> configure Roundecube to query on ldap. Below is my config in ldap
> settings in main.inc.php.
>
> $rcmail_config[address_book_type] = ldap;
>
> $rcmail_config[ldap_public][Addbook] = array(
> name          => foo.com [1],
> hosts         => array(localhost),
> port          => 389,
> use_tls       => false,
> user_specific => false,
> base_dn       => dc=mail,dc=foo,dc=com,
> LDAP_Object_Classes => array("top", "inetOrgPerson"),
>  required_fields     => array("cn", "sn", "mail"),
> LDAP_rdn      => mail,
> search_fields => array(mail, cn),
> name_field    => cn,
> email_field   => mail,
> surname_field => sn,
> firstname_field => gn,
>  sort          => cn,
> fuzzy_search  => true,
> sizelimit     => 0,
> timelimit     => 0,
> );
>
> $rcmail_config[autocomplete_addressbooks] = array(ldap,foo.com [2]);
>
> $rcmail_config[autocomplete_min_length] = 1;
>
> After saving main.inc.php, I can no longer access Addressbook Tab.
> Probably of the wrong settings in my ldap. I can query ldap when I
> do ldapsearch -x -b dc=mail,dc=foo,dc=com. The settings above is
> based on the default file main.inc.php. I just followed the
> procedures.
>
> Can anyone give a hint? 
config seems to be ok. can you turn on ldap logging and publish 
logs/ldap?

Andreas

>
>  TIA,
>
> Nelson
>
> Links:
> ------
> [1] http://foo.com
> [2] http://foo.com

_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80


More information about the Dev mailing list