I have created an application that used ldap login.
Below is my sample code
boolean ls_val
jsonpackage lnv_pack1,lnv_pack2
jsonparser lnv_jsonparser
lnv_pack1 = create jsonpackage
lnv_pack2 = create jsonpackage
HttpClient lnv_HttpClient
lnv_HttpClient = Create HttpClient
ls_json = '{"user":"'+gs_userid +'", "password": "'+s_pass +'"}'
// Constructs a POST request (supports all headers)
lnv_HttpClient.SetRequestHeader("Content-Type", "application/json;charset=UTF-8")
// Content-Length header set by SendRequest
// Sends request using POST method (to add the string data to the body and set to the Content-Length header)
li_rc = lnv_HttpClient.SendRequest("POST", "http://www.sample.com/ldap/ldap.asmx/ldap", ls_json)
// Obtains the response data
if li_rc = 1 and lnv_HttpClient.GetResponseStatusCode() = 200 then
lnv_HttpClient.GetResponseBody(ls_ReturnJson)
end if
lnv_pack1.loadstring(ls_ReturnJson)
ls_value = lnv_pack1.getvalue("d")
lnv_pack2.loadstring(ls_value)
ls_val = lnv_pack2.getvalueboolean("Status")
if ls_val then
open(w_main)
end if
Above is my shortcut sample codes. Everything is working fine and I was able to login successfully using ldap.
But when I created an installer using inno setup and try to install it to other pc (that pc don't have any pb application installed) the user cannot login. My guess is that im missing a DLL. Attached the screenshot of my .iss setup for my installer.
Thank you so much.