Results 1 to 7 of 7

Thread: Can't bind to zimbra's ldap, port seems to be closed

  1. #1
    penguinknight is offline Intermediate Member
    Join Date
    Feb 2007
    Posts
    18
    Rep Power
    8

    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

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

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


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    penguinknight is offline Intermediate Member
    Join Date
    Feb 2007
    Posts
    18
    Rep Power
    8

    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!

  4. #4
    penguinknight is offline Intermediate Member
    Join Date
    Feb 2007
    Posts
    18
    Rep Power
    8

    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!

  5. #5
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    penguinknight is offline Intermediate Member
    Join Date
    Feb 2007
    Posts
    18
    Rep Power
    8

    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

  7. #7
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. initializing ldap...FAILED(256)ERROR
    By manjunath in forum Installation
    Replies: 39
    Last Post: 06-07-2013, 10:27 AM
  2. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  4. Installation Problem - Possibly LDAP
    By geroshea in forum Installation
    Replies: 5
    Last Post: 03-16-2007, 04:47 AM
  5. Replies: 4
    Last Post: 11-15-2006, 12:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •