I kept having problems with my Active Directory scripts. I finally discovered that they work fine before being compiled but after compiling they fail. I have narrowed it down to simply testing _AD_Open. For instance, any script that includes "$iResult = _AD_Open()" works until I compile the script. The compiled script fails with @Error = 4. Please note that I only log onto the computer with my Domain account. What am I missing here? Also, I do not use SciTE, I use Notepad++ if that matters...
I am running the instructions below, and even using a username or password missing, $error always returns "The operation completed successfully."
$result = _AD_Open ( $user , $password , "dc=proxy,dc=trtsp,dc=jus,dc=br" , "proxy.trtsp.jus.br" )
If @error <> 0 Then
$error = _AD_GetlastADSIError ()
_ArrayDisplay ( $error )
Version of AD is 126.96.36.199 in AutoIt 188.8.131.52 (https://www.autoitscript.com/forum/topic/106163-active-directory-udf/).
someone could tell me why this occurs rather than showing the detailed description of an error when the login fails using _ad_open?