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-27-2007, 06:27 PM
Intermediate Member
 
Posts: 18
Default Can't bind to zimbra's ldap, port seems to be closed

I am following the guide
UNIX and Windows Accounts in Zimbra LDAP and Zimbra Admin UI - ZimbraWiki
and I have had a working samba server up and I get cannot bind, cannot contact LDAP server errors in log.smbd

When I run
nmap -sT -O email

I get
Not shown: 1689 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
110/tcp open pop3
143/tcp open imap
465/tcp open smtps
993/tcp open imaps
995/tcp open pop3s

Which shows that nothing is listening on 389

All ports should be accepting by default so I guess just nothing is listening.

Any help would be appreciated

Info:
Zimbra 4.5.5 Open Source
Ubuntu 6.10, updated before install of ZCS
New install
Samba server was a ubuntu 6.10 Virtual machine (that could communicate with the host on every other port so it's not a limitation of the VMware networking.

Let me know if any other information would help.

Thanks
Reply With Quote
  #2 (permalink)  
Old 05-28-2007, 12:19 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Is there anything in the logs indicating why LDAP hasn't started? Have you tried the troubleshooting tips from the wiki?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 05-28-2007, 12:39 AM
Intermediate Member
 
Posts: 18
Default

There are only two additional entries in the log file when starting it from a stopped state. I ran the command grep slapd /var/log/syslog as advised from another site to get the slapd log.

May 28 00:34:35 email slapd[26229]: @(#) $OpenLDAP: slapd 2.3.34 (Apr 2 2007 10:28:20) $ ^Iroot@build-ubuntu:/home/build/p4/main/ThirdParty/openldap/openldap-2.3.34/servers/slapd
May 28 00:34:35 email slapd[26230]: slapd starting

And zimbra works just fine. The only part of LDAP that isn't working is accessing it from another machine on the network.

And yes, I checked the wiki briefly but will have another look.

Thanks!

UPDATE: Whoops! I should have clicked first, you sent me directly to what I needed to read! Thank you

I still don't have it fixed but this tells me that is should be listening to my hostname :-/
zimbra 26230 0.0 0.7 17992 4024 ? Ssl 00:34 0:00 /opt/zimbra/openldap/libexec/slapd -l LOCAL0 -4 -u zimbra -h ldap://email.domain.com:389 -f /opt/zimbra/conf/slapd.conf
zimbra 27660 0.0 0.1 1664 516 pts/0 S+ 00:40 0:00 grep slapd

output of hostname:
email
output of hostname -f:
email.domain.com

Last edited by penguinknight; 05-28-2007 at 01:15 AM.. Reason: I jumped the gun!
Reply With Quote
  #4 (permalink)  
Old 05-28-2007, 01:14 AM
Intermediate Member
 
Posts: 18
Default

Figured it out (that's to that wonderful link, thank you) but haven't fixed it

sudo /opt/zimbra/openldap/libexec/slapd -l LOCAL0 -4 -u zimbra -h ldap://email.domain.com:389 -f /opt/zimbra/conf/slapd.conf

the domain name being there, or anything being there, actually causes a problem with listening.
I removed it and manually launched it...so for now I'm just not going to restart my server.

in /opt/zimbra/bin/ldap there is the command that is ran but it includes a variable $my_url ...should I just remove the variable and hard-code that part of the file with what I need to be running?

Is there is nicer way of doing this?

Thanks!
Reply With Quote
  #5 (permalink)  
Old 05-28-2007, 02:24 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

As mentioned in the wiki, the usual reason for LDAP problems is resolving DNS to the hostname. Are your DNS records correct? What does the following return:

Code:
host `hostname` - backticks not quotes
dig yourdomain.com any
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 05-28-2007, 02:35 AM
Intermediate Member
 
Posts: 18
Default

Ah, I had tried
host ldap-hostname
which produced it's IP, 10.107.8.30
dig seems to say the same and the server queried is my router at 10.107.8.1 which holds a single A record for it as it doesn't have MX capabilities in the web interface (and it doesn't hurt anything as far as I can tell).

dig email.domain.com any

; <<>> DiG 9.3.4 <<>> email.domain.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61632
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;email.domain.com. IN ANY

;; ANSWER SECTION:
email.domain.com. 0 IN A 10.107.8.30

;; Query time: 1 msec
;; SERVER: 10.107.8.1#53(10.107.8.1)
;; WHEN: Mon May 28 02:29:08 2007
;; MSG SIZE rcvd: 61
Reply With Quote
  #7 (permalink)  
Old 05-28-2007, 03:26 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

You do need a DNS server behind the NAT with an MX record (as well as the A record) for correct DNS resolution and it's probably the cause of this problem.
__________________
Regards


Bill
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.