Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 05-18-2008, 03:11 AM
thwint thwint is offline
Junior Member
 
Join Date: May 2008
Posts: 2
thwint is on a distinguished road
Default [SOLVED] ldap can't connect

Hi all,
I just wanted to install zimbra 5.0.5 on my ubuntu 8.04 server and configure it to use ldap for system and samba log on.

I followed the instructions to get zimbra ldap working together with samba and pam as described in:
UNIX and Windows Accounts in Zimbra LDAP and Zimbra Admin UI - Zimbra :: Wiki

So far everything seems to work. From Zimbra I can see and configure samba and posix options. When trying to log on as a new user it is not possible.

From the command line of the server getent passwd and grout return all the defined users and groups. Also these defined in Zimbra.

but ldapsearch -x returns
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

Adding some additional debug info I found out, that this command is always using localhost.
Code:
root@srvhqbat23:/etc# ldapsearch -x -d5
ldap_create
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
ldap_close_socket: 3
ldap_err2string
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
In this case the problem is that it is using localhost:389 instead of myhost.mydomain.com:389

ldapsearch -x -h myhost.mydomain.com

returns all the requested information.

In which file I can change ldap to search my my fqdn by default?
/etc/ldap.conf doesn't seem to be the correct location and I didn't found any other ldap related file containing localhost or 127.0.0.1 as uri.
Reply With Quote
  #2 (permalink)  
Old 05-19-2008, 08:12 AM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,335
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

Welcome to the forums

If you want to specify a different URI it can be set via global or local configuration files, or even via environment variables.
Code:
man ldap.conf
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running on Xen 3.2 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
  #3 (permalink)  
Old 05-19-2008, 09:04 AM
thwint thwint is offline
Junior Member
 
Join Date: May 2008
Posts: 2
thwint is on a distinguished road
Default

In the meantime I was able to solve this problem.

I only configured the server part of ldap, but forgot to configure the client part.

I also had some other problems resulting in the fact, that it was not possible to logon the system and using samba.

Finally everything works as it should.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Install Problem in Ubuntu 6.06 Server xtimox Installation 16 03-27-2008 09:36 AM
zmclamdctl is not running after upgrade Darren Installation 21 02-26-2008 06:48 AM
server dropped connection ferra Installation 19 10-24-2007 05:30 PM
Can't send or receive mails from Zimbra ppurama Administrators 4 11-14-2005 09:17 AM
Zimbra fails after working for 2 weeks Linsys Administrators 9 10-20-2005 01:26 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0