[dev] Horde/Kolab: Can't contact LDAP server

Tobias Brunner tobias.brunner at gmx.ch
Mon May 29 13:28:57 PDT 2006


Hi Everybody

I solved this problem. I found the same problem in the mailinglist of kolab... see
http://www.kolab.org/pipermail/kolab-users/2006-March/004599.html

Regards
Tobias


Saturday, May 27, 2006, 7:18:46 PM, you wrote:

> Hi everyone

> I try to install the horde webclient (cvs version) on my server for using it with kolab 2.
> For this, I installed a fresh opensuse 10.1, then installed kolab 2 as
> described here: http://en.opensuse.org/Kolab (this works perfectly,
> mails are accepted and delivered to the right mailbox, I can send
> mails, read mails etc, all via imap) and last I installed the horde
> application as described here
> http://wiki.kolab.org/index.php/Kolab2_Installation_-_Horde and here
> http://www.kolab.org/webclient.html.
> After the configuration of the horde framework, a strange error
> appears:

> Warning: ldap_search() [function.ldap-search]: Search: Can't contact
> LDAP server in /usr/share/php5/PEAR/Horde/Prefs/ldap.php on line 218
> Warning: ldap_search() [function.ldap-search]: Search: Can't contact
> LDAP server in /usr/share/php5/PEAR/Horde/Prefs/ldap.php on line 218
> Notice: Failed to retrieve user's DN: [-1] Can't contact LDAP server in
> /usr/share/php5/PEAR/PEAR.php on line 879
> Failed to retrieve user's DN: [-1] Can't contact LDAP server

> I can't login proper to horde anymore. The ldap server is up and
> running (I can logon to the web admin and mails are accepted
> correctly). When I try to login to horde with a user that does not
> exist in the ldap directory, then the right message appears (without
> any errors): "Login failed because your username or password was
> entered incorrectly." But with a correct username/password, the above error appears.

> At the end of this mail is my horde conf.php, perhaps anyone sees a
> problem ore a wrong configuration entry.

> Thanks
> Tobias

> conf.php:
> <?php
> /* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
> // $Horde: horde/config/conf.xml,v 1.147 2006/05/22 04:07:08 chuck Exp
> $
> $conf['debug_level'] = E_ALL;
> $conf['max_exec_time'] = 0;
> $conf['use_ssl'] = 2;
> $conf['server']['name'] = $_SERVER['SERVER_NAME'];
> $conf['server']['port'] = $_SERVER['SERVER_PORT'];
> $conf['compress_pages'] = true;
> $conf['umask'] = 077;
> $conf['session']['name'] = 'Horde';
> $conf['session']['cache_limiter'] = 'nocache';
> $conf['session']['timeout'] = 0;
> $conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];
> $conf['cookie']['path'] = '/horde';
> $conf['sql']['persistent'] = true;
> $conf['sql']['username'] = 'horde';
> $conf['sql']['password'] = 'horde';
> $conf['sql']['hostspec'] = 'localhost';
> $conf['sql']['port'] = 3306;
> $conf['sql']['protocol'] = 'tcp';
> $conf['sql']['database'] = 'horde';
> $conf['sql']['charset'] = 'iso-8859-1';
> $conf['sql']['splitread'] = false;
> $conf['sql']['phptype'] = 'mysql';
> $conf['auth']['admins'] =
> array('Administrator','tobias','tobruadmin');
> $conf['auth']['checkip'] = true;
> $conf['auth']['checkbrowser'] = true;
> $conf['auth']['alternate_login'] = false;
> $conf['auth']['redirect_on_logout'] = false;
> $conf['auth']['params']['login_block'] = false;
> $conf['auth']['params']['login_block_count'] = 3;
> $conf['auth']['params']['login_block_time'] = 5;
> $conf['auth']['driver'] = 'kolab';
> $conf['signup']['allow'] = false;
> $conf['log']['priority'] = PEAR_LOG_DEBUG;
> $conf['log']['ident'] = 'HORDE';
> $conf['log']['params'] = array();
> $conf['log']['name'] = '/tmp/horde.log';
> $conf['log']['params']['append'] = true;
> $conf['log']['type'] = 'file';
> $conf['log']['enabled'] = true;
> $conf['log_accesskeys'] = false;
> $conf['prefs']['driver'] = 'kolab';
> $conf['prefs']['hostspec'] = 'iffigenia.tobru.ch';
> $conf['datatree']['params']['driverconfig'] = 'horde';
> $conf['datatree']['driver'] = 'sql';
> $conf['group']['driver'] = 'datatree';
> $conf['cache']['default_lifetime'] = 1800;
> $conf['cache']['params']['dir'] = Horde::getTempDir();
> $conf['cache']['params']['sub'] = 0;
> $conf['cache']['params']['gc'] = 86400;
> $conf['cache']['driver'] = 'file';
> $conf['token']['driver'] = 'none';
> $conf['mailer']['params']['auth'] = '0';
> $conf['mailer']['type'] = 'smtp';
> $conf['vfs']['params']['vfsroot'] = '/tmp';
> $conf['vfs']['type'] = 'file';
> $conf['sessionhandler']['type'] = 'none';
> $conf['problems']['email'] = 'webmas... at example.com';
> $conf['problems']['maildomain'] = 'example.com';
> $conf['problems']['tickets'] = false;
> $conf['menu']['apps'] = array();
> $conf['menu']['always'] = false;
> $conf['menu']['links']['help'] = 'all';
> $conf['menu']['links']['help_about'] = true;
> $conf['menu']['links']['options'] = 'authenticated';
> $conf['menu']['links']['problem'] = 'all';
> $conf['menu']['links']['login'] = 'all';
> $conf['menu']['links']['logout'] = 'authenticated';
> $conf['hooks']['permsdenied'] = false;
> $conf['hooks']['username'] = false;
> $conf['hooks']['preauthenticate'] = false;
> $conf['hooks']['postauthenticate'] = false;
> $conf['hooks']['authldap'] = false;
> $conf['portal']['fixed_blocks'] = array();
> $conf['accounts']['driver'] = 'null';
> $conf['user']['verify_from_addr'] = false;
> $conf['imsp']['enabled'] = false;
> $conf['kolab']['ldap']['server'] = 'iffigenia.tobru.ch';
> $conf['kolab']['ldap']['port'] = 389;
> $conf['kolab']['ldap']['basedn'] = 'dc=tobru,dc=ch';
> $conf['kolab']['ldap']['binddn'] =
> 'cn=manager,cn=internal,dc=tobru,dc=ch';
> $conf['kolab']['ldap']['bindpw'] = 'secret';
> $conf['kolab']['imap']['server'] = 'iffigenia.tobru.ch';
> $conf['kolab']['imap']['port'] = 143;
> $conf['kolab']['imap']['sieveport'] = 2000;
> $conf['kolab']['imap']['maildomain'] = 'tobru.ch';
> $conf['kolab']['imap']['adminuser'] = 'manager';
> $conf['kolab']['imap']['adminpw'] = 'secret';
> $conf['kolab']['imap']['virtdomains'] = true;
> $conf['kolab']['smtp']['server'] = 'localhost';
> $conf['kolab']['smtp']['port'] = 25;
> $conf['kolab']['misc']['multidomain'] = false;
> $conf['kolab']['enabled'] = true; 


> -- 
> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org





-------------------------------------
Tobias Brunner
im Heidenkeller 4
8902 Urdorf
+41 (0)44 734 34 28
+41 (0)79 435 58 38
tobias.brunner at gmx.ch
-------------------------------------



More information about the dev mailing list