Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: axessit on November 04, 2010, 04:34:00 AM

Title: can't get LDAP working in Roundcube
Post by: axessit 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.
Title: Re: can't get LDAP working in Roundcube
Post by: Stefano 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
Title: Re: can't get LDAP working in Roundcube
Post by: Daniel B. 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
Title: Re: can't get LDAP working in Roundcube
Post by: Stefano on November 05, 2010, 11:19:45 AM
thank you for the clarification.. I hope this will help OP :-)
Title: Re: can't get LDAP working in Roundcube
Post by: axessit 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.
Title: Re: can't get LDAP working in Roundcube
Post by: axessit on November 07, 2010, 09:42:45 PM
I should add that it works under Horde, just not Roundcube.