Powershell
From Wildsong
Test a login
Create a function in PS
Function Test-ADAuthentication { param($username,$password) (new-object directoryservices.directoryentry "",$username,$password).psbase.name -ne $null }
Apply it
Test-AdAuthentication "MYDOMAIN\brian" "password123" True