[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Can only ldapsearch localhost but NOT the actual server name

On Thursday, 12 July 2007, Kelly Choo wrote:
> Hi
> I'm running openldap-2.3.35 on HPUX 11.11
> and I can ldapsearch localhost


> but not when I use the actual server name chief.math.uvic.ca
> ldapsearch -H ldap://chief.math.uvic.ca/ -b dc=math,dc=uvic,dc=ca -x
> I get
> ldap_result: Can't contact LDAP server (-1)
> The same happens if I use the IP address instead of chief.math.uvic.ca

Can you telnet to port 389 on this IP/hostname? If you can't, there can be at 
least two reasons for this:

1)Is slapd listening on the IP address for chief.math.uvic.ca (under 
Linux, 'netstat -plnt|grep :389' would help you check, the command/options 
may be different - or not available - under HPUX)? 

If slapd isn't listening on the relevant IP address, check the arguments that 
slapd was started with, e.g. I would expect this behaviour if slapd had been 
started with something like '-h ldap:///localhost' or '-h ldap:///'

2)Is there a host-level firewall in place (I guess this is unlikely under 
HPUX, but still worth asking)?


Buchan Milne
ISP Systems Specialist - Monitoring/Authentication Team Leader

Attachment: pgpczyWul5iUM.pgp
Description: PGP signature