Koozali.org: home of the SME Server

can't get LDAP working in Roundcube

Offline axessit

  • *****
  • 213
  • +0/-0
can't get LDAP working in Roundcube
« on: November 04, 2010, 04:34:00 AM »
New install SME 8.0beta6

downloaded roundcube rpm and smeserver-roundcube from SME7 contribs folder and installed locally no problem.

Roundcube works, but want to get it to use LDAP. Put the following in my /opt/roundcube/config/main.inc.php.dist

Code: [Select]
$rcmail_config['ldap_public']['Local_LDAP'] = array('hosts' => array('192.168.2.10'),
                                        'port'          => 389,
                                        'base_dn'       => 'dc=mycompany,dc=co,dc=nz',
                                        'search_fields' => array('Email' => 'mail', 'Name' => 'cn'),
                                        'name_field'    => 'cn',
                                        'mail_field'    => 'mail',
                                        'scope'         => 'sub',
                                        'fuzzy_search'  => 1);


But when I go to address book, the LDAP button is dead (greyed out) and I can't search the local address directory. I can access the LDAP via thunderbird, so i know that's working.

Have rebooted to be sure.
« Last Edit: November 04, 2010, 04:46:49 AM by axessit »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: can't get LDAP working in Roundcube
« Reply #1 on: November 05, 2010, 10:50:03 AM »
AFAIR ldap is listening only on localhost, so you can't use 192.x.y.z address

try 127.0.0.1 or localhost

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: can't get LDAP working in Roundcube
« Reply #2 on: November 05, 2010, 11:16:25 AM »
AFAIR ldap is listening only on localhost, so you can't use 192.x.y.z address

try 127.0.0.1 or localhost

No, LDAP also listen on the local interface, but requires SSL (clear text connections are only allowed on the loopback)

Regards
C'est la fin du monde !!! :lol:

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: can't get LDAP working in Roundcube
« Reply #3 on: November 05, 2010, 11:19:45 AM »
thank you for the clarification.. I hope this will help OP :-)

Offline axessit

  • *****
  • 213
  • +0/-0
Re: can't get LDAP working in Roundcube
« Reply #4 on: November 07, 2010, 09:41:00 PM »
Have tried both localhost and 127.0.0.1 as the server address, none work. Rebooted in between times too for good measure.

Should i raise a bug against this ? I am using SME8b6.

Offline axessit

  • *****
  • 213
  • +0/-0
Re: can't get LDAP working in Roundcube
« Reply #5 on: November 07, 2010, 09:42:45 PM »
I should add that it works under Horde, just not Roundcube.