Author Topic: Ldap Configuration  (Read 4388 times)

Offline june_c21

  • Newbie
  • *
  • Posts: 4
Ldap Configuration
« on: December 07, 2008, 08:58:39 PM »
Hi,
I just install roundcube mail into my server. I want the address book to link with my Ldap. How to do so ?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Ldap Configuration
« Reply #1 on: December 08, 2008, 08:51:07 AM »
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ā€¦

Offline june_c21

  • Newbie
  • *
  • Posts: 4
Ldap Configuration
« Reply #2 on: December 09, 2008, 02:54:33 AM »
i had check and edit the code but i having error and i not sure how to solve it

Code: [Select]

$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');



Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Ldap Configuration
« Reply #3 on: December 09, 2008, 09:24:58 AM »
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
__________________
MyRoundcube Project (commercial)

Offline june_c21

  • Newbie
  • *
  • Posts: 4
Ldap Configuration
« Reply #4 on: December 09, 2008, 11:03:21 PM »
when i click the directory on the webmail address book. It doesn't display all the name and address.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Ldap Configuration
« Reply #5 on: December 10, 2008, 01:04:01 AM »
This is no error ... It does only display the address list after a search request!
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline Sava

  • Newbie
  • *
  • Posts: 3
Ldap Configuration
« Reply #6 on: December 10, 2008, 05:29:32 PM »
Just set key "'filter'        => 'mail=*'," (by default 'filter' => '')
Where "mail=*" is your 'LDAP_rdn'.