Roundcube Community Forum

 

Ldap Configuration

Started by june_c21, December 07, 2008, 08:58:39 PM

Previous topic - Next topic

june_c21

Hi,
I just install roundcube mail into my server. I want the address book to link with my Ldap. How to do so ?

JohnDoh

Hi, If you look in config/main.inc.php you will see an example of how to configure LDAP addressbooks.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

june_c21

i had check and edit the code but i having error and i not sure how to solve it


$rcmail_config['ldap_public']['135.27.130.61'] = array (
   'name'          => 'KEV DIR',
   'hosts'         => array('135.27.130.61'),
   'port'          => 389,
  // 'use_tls'    => false,
   // 'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
   // %fu - The full username provided, assumes the username is an email
   //       address, uses the username_domain value if not an email address.
   // %u  - The username prior to the '@'.
   // %d  - The domain name after the '@'.
   'base_dn'       => 'ou=people,dc=kev,dc=com,dc=my');



rosali

Which errors do you get? Maybe your php is not compiled with ldap support or ldap extension is not enabled in php.ini ...
Regards,
Rosali

june_c21

when i click the directory on the webmail address book. It doesn't display all the name and address.

rosali

This is no error ... It does only display the address list after a search request!
Regards,
Rosali

Sava

Just set key "'filter'        => 'mail=*'," (by default 'filter' => '')
Where "mail=*" is your 'LDAP_rdn'.