How to tell if LDAP is listening

  • 7010851
  • 28-Sep-2012
  • 28-Sep-2012

Environment

Novell Open Enterprise Server 11 (OES 11) Linux
Novell Open Enterprise Server 11 (OES 11) Linux Support Pack 1
eDir 8.8.6
eDir 8.8.7

Situation

How to tell if LDAP is listening

Resolution

Check the ndsd is running
ndsdstat or /etc/init.d/ndsd status

Use netstat to tell if the LDAP ports are listening
netstat -tualpn -A inet| grep 'LISTEN' |egrep "636|389"

Should return the following:
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN      8263/ndsd
tcp        0      0 0.0.0.0:636             0.0.0.0:*               LISTEN      8263/ndsd