OpenLdap question - solved

From: Darryl Hoar (darryl_at_osborne-ind.com)
Date: 04/29/04

  • Next message: Doug Lee: "How do you keep track of what's been merged in CVS?"
    To: <freebsd-questions@freebsd.org>
    Date: Thu, 29 Apr 2004 10:20:22 -0500
    
    

    >>Greetings,
    >>I am trying to setup OpenLdap 2.0.25 from ports,
    >>on Freebsd 5.1-release. everything is installed no
    >>problem. openldap is started and shows running
    >>in the process list.
    >>
    >>when I try to ldapadd, I get the error:
    >>
    >>ldap_bind: Can't contact LDAP server.

    >>I have started and stopped it, with no change in
    >>the error. The log shows clean without error.
    >>
    >>when I netstat -a, I see:
    >>
    >>Proto Recv-Q Send-Q Local Address Foreign Address (state)
    >>tcp6 0 0 *.ldap *.* LISTEN
    >>
    >>among other entries. this is the only one for ldap though.
    >>
    >>It appears to only be listening for tcp6 protocol, not tcp4. How do I
    >>change this ?
    >>
    >>thanks,
    >>Darryl

    Well,
    I hate to answer my own question , but to help others that
    might search later, here it it.

    The problem ( if it is one), is that the startup script located
    in /usr/local/etc/rc.d called slapd.sh has a configurable
    argument that launches slapd either listening for tcp4, tcp6
    or both. The default script ( the one installed as part of the
    port make, make install routine) is set with no arguments
    specified. The result is that slapd only listens for tcp6
    traffic. The comments in the code show examples of
    arguments to get it to listen to tcp4. Once I set the argument
    string properly in the slapd.sh file, it listens for tcp4 and thus
    responds when queried.

    Sorry for the wasted bandwith.

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Doug Lee: "How do you keep track of what's been merged in CVS?"

    Relevant Pages

    • Re: ports close & open
      ... is for LAN, but I think email server has to serve both LAN and WAN. ... eth0 is to the Internet, ... How can I specify which service listens to which eth. ... >> How can I close these ports for security purpose. ...
      (linux.redhat)
    • Re: Stealth TCP
      ... >> " Stealth mode listens to the ports at socket level instead of binding ... The sentence might have intended to say that in stealth mode, ... comes from some kind of portscan reporter, or a program that listens on many ... "at socket level" should have been "below socket ...
      (comp.os.linux.security)
    • Re: Radius with 2 network interface
      ... Go to IAS properties dialog. ... Select the ports tab. ... By default IAS listens on the ports listed on ALL ... running RRAS on the same box your route cmd-line tool to add routes using ...
      (microsoft.public.internet.radius)
    • RE: [Full-Disclosure] ISS Security Brief: "MS Blast" MSRPC DCOM Worm Propagation (fwd)
      ... svchost.exe listens on several ports on windows xp. ... > of crap like MS RPC to the Internet? ... Do you Yahoo!? ...
      (Full-Disclosure)