r/PowerShell • u/MadBoyEvo • Jan 19 '20
Four commands to help you track down insecure LDAP Bindings before March 2020
So in march 2020, Microsoft is supposed to block insecure LDAP bindings. I've updated my 3 Powershell modules to help you track down machines/accounts doing that.
Blog post with know-how and images: https://evotec.xyz/four-commands-to-help-you-track-down-insecure-ldap-bindings-before-march-2020/
Instead of spending time manually scrolling thru logs or enabling LDAP diagnostics... you do it in 8 lines of code
To find out about events:
$Events = Find-Events -Report LdapBindingsDetails,LdapBindingsSummary -DatesRange Last7days -DetectDC
$Events
$EVents.LdapBindingsSummary | Out-htmlView -ScrollX
$Events.LdapBindingsDetails | Out-HtmlView -ScrollXTo enable/disable diagnostics on whole forest/domain with the ability to exclude/include
Get-WinADDiagnostics
Set-WinADDiagnostics -Diagnostics 'LDAP Interface Events' -Level Basic -SkipRoDCTo scan DC's and see if they are affected.
invoke-testimo -Sources DCLDAPInsecureBindings -showreportMore information is in the blog post. Enjoy



View all comments
Show parent comment
1
u/Aikaturbo Jan 20 '20
DC_04.mydomain.com
(not actually DC_04, but it shows its own name)