Crystal Reports Server 2008 - How do you create a APS Logon Token programmatically in .Net

旧巷老猫 提交于 2019-12-12 01:35:39

问题


Could some one guide me to create a APS logon token in .Net programmatically? I need to use this token for URL reporting....


回答1:


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


来源:https://stackoverflow.com/questions/1594790/crystal-reports-server-2008-how-do-you-create-a-aps-logon-token-programmatical

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!