/build/static/layout/Breadcrumb_cap_w.png

Check what LDAP ports are available in a Domain Controller Server.

Here again your favorite Random Dude in ITNinja,


It has been a while since my last post. Lately, I had a pretty odd issue with KACE and LDAPS. My IS team requested me to check every single DC and find the ones that had the regular LDAP port open (389). I was going one by one but after an hour or so I found this great option to do it via a PS1 script.


TESTING LDAP AND LDAPS CONNECTIVITY WITH POWERSHELL | Evotec

With that in mind, all credit to whoever wrote that script.


To use it is super simple. Copy the script, paste it in a notepad (or notepad++) save it as ps1, and execute it from PowerShell.

Test-LDAP -ComputerName 'AD1','AD2' | Format-Table
AD1 and AD2 are going to be your DCs. The result will look a bit like this:

img_5d40a795526d9.png

I hope this information is helpful to others.


Thanks for reading!


See you in my next post!



Comments

This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ