4 posts in this topic
When I try _AD_Open() with no parameters I get this error message...
Function _AD_Open encountered a problem. @error=4, @extended = -2147023541
When I try _AD_Open($sUserIDParam = "XXXX@XXXX.com", $sPasswordParam = "XXXX", $sAD_DNSDomainParam = "", $sAD_HostServerParam = "", $sAD_ConfigurationParam = "") I get this error message....
Function _AD_Open encountered a problem. @error=4, @extended = -2147016646
The rest of my code attempts to move a computer from one OU to another. It errors out telling me that there is no such OU. My guess is that is because I am not logged in to Active Directory so I have to solve the login issue first before tackling this the move. The XXXX's above are replaced in my code with a domain admin account that "should" have permissions to do a computer move from one OU to another.
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 220.127.116.11 in AutoIt 18.104.22.168 (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?