I'm on centos, and I need to check that an AD server is running (is in another host). Which is the simplest way to check ldap (AD) is running? I have an application where I need to synchronize some users account with AD, but suddenly I'm getting 0 users found. I don't know much about AD and LDAP, I just tested with:
[root@mysystem]# ldapsearch -x
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Is that enough to check that LDAP is down? Or can it be another reason?