Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-2008, 03:11 AM
Starter Member
 
Posts: 2
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
Moderator
 
Posts: 7,928
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
__________________
Reply With Quote
  #3 (permalink)  
Old 05-19-2008, 09:04 AM
Starter Member
 
Posts: 2
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 Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.