Crystal Reports Server 2008 - Hoe kan jy skep 'n APS Logon gebrand programmaties in Net
-
22-09-2019 - |
Vra
Kan iemand my gids tot 'n APS aanteken teken in Net programmaties skep? Ek nodig het om hierdie teken gebruik vir URL verslagdoening ....
Oplossing
Public Shared Function Authenticate (account As String, password As String, serverName As String, authenticationType As String) As String
Dim sessionManager As New SessionMgr
Dim enterpriseSession As EnterpriseSession
Try
enterpriseSession = sessionManager.Logon(account, password, serverName, authenticationType)
'any client computer, 120 minutes, 1000 logons
Return enterpriseSession.LogonTokenMgr.CreateLogonTokenEx("", 120, 1000)
Catch ex As Exception
Throw ex
End Try
End Function
Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow