1

I want to run some script which checks for LDAP issue, and in case it found something, it sent me alert. I thought using ssh command with some generic user, but I'm not sure what is the response I'm expecting to get in case LDAP server is down. any idea?

  • How about recruiting ldapsearch (and friends) to do the job for you? All that's required is that you can get to a machine that can access the LDAP server. Some additional scripting to check whether your LDAP server is available on the relevant ports (e.g. 389 and 636) may be in order, prior to doing the LDAP query ... – 0xC0000022L Jan 15 at 9:22
  • What exactly you want to monitor? connectivity? access? permissions? you can monitor if the port is open, by default on TCP and UDP port 389 – Haim Cohen Jan 15 at 12:18
  • I will make it more simple for now. I want to sent alert for the below case: ping: ldap.corp.XXXXX.com: Name or service not known. how can I catch this response? – arielma Jan 21 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.