Listening por for LDAP


I would like to ask if with command netstat -nap, should appears an entry for LDAP in the column PID/ Program name.
This is my output:

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0* LISTEN -
tcp 0 0* LISTEN -

I assume that the port for ldap it´s the 389 which is the default port.
In this link SDB:LDAP server - openSUSE is mentioned the nmap command but with netstat i can get the same output and ther appears the program ldap.
I´m having some problems with my ldap server and probably it is not listening.
The ldapsearch -x -h <localhost> ‘(objectclass=*)’ woks fine and with the command getent passwd i can see the users.



Just use;

netstat -a |grep ldap

tcp        0      0 *:ldaps                 *:*                     LISTEN      
tcp        0      0 *:ldap                  *:*                     LISTEN

You would use nmap from a remote machine to see if the ports are visible eg;

nmap <your ldap server>

389/tcp  open   ldap
636/tcp  open   ldapssl

Thanks Macolm.

That was what exactly what i would like to know.