We currently use csp to auto-authenticate a user using WindowsAD, query for the folder requested and open the Crystal Folder in the web page(using default aspx supplied by Cystal enterprise installation). We would like to migrate this csp to aspx. Please suggest the aspx code equivalent to this csp code. Just changing the extension to aspx didn't work.
For those users where accounts are created on Crystal server do not need to login to Crystal to view reports.
Environment: Crystal Enterprise 11.5 (Business Objects XI).
Usage:
https://crystalrep11.abc.org/businessobjects/Enterprise115/admin/en/RedirectCsps/login.csp?fldURL="testingFolder"
<StartcspCode>
Code in login.csp
Set SessionManager = Server.CreateObject("CrystalEnterprise.SessionMgr")
Set Sess = SessionManager.Logon("", "", "WCS_NAME_SERVER", "secWinAD")
Set LogonTokenMgr = Sess.LogonTokenMgr
LogonToken = LogonTokenMgr.CreateLogonToken(("WCS_HOST_NAME", 60, 100)
Response.Cookies("IdentityCookie")=LogonToken
IF(request("fldURL")="testingFolder") THEN
Qry= "Select SI_ID, SI_NAME,SI_PATH from CI_INFOOBJECTS where SI_PROGID = 'CrystalEnterprise.Folder' and SI_INSTANCE=0 and SI_NAME = 'testingFolder'"
end if;
Set OResult = iStore.query(Qry)
if (OResult.Item(i).Properties("SI_PATH").Properties("SI_FOLDER_NAME1")="TEST") then
Set DirID = OResult.Item(i).Properties("SI_ID")
end if
Response.Redirect("https://crystalrep11.abc.org/businessobjects/Enterprise115/InfoView/infoviewfolder.aspx?pID="&DirID)

<EndcspCode>