SightMax Live Chat - The Premier Installable and Hosted Live Chat Solution...

How do I login

rated by 0 users
This post has 1 Reply | 1 Follower

Top 25 Contributor
Posts 5
danp129 Posted: 04-22-2009 2:44 PM | 70.254.224.126

Does the password need to be encrypted to something before being converted to bytes?  Using a packet sniffer I can tell that the password isn't being sent by my program is not the same as the Operator Console. The following gives me "Incorrect username or password." when I use the same login information as I do when using the SightMax console. 

 

Private Sub btnOperator_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOperator.Click

      Dim OpClient As RemotedOperatorClient = New RemotedOperatorClient()

      Dim OpAgentSharedData As SightMax.OperatorAgentSharedData

      Dim accountName As String = "SAME AS SIGHTMAX OPERATOR CONSOLE"

      Dim userName As String = "SAME AS SIGHTMAX OPERATOR CONSOLE"

      Dim encoding As New System.Text.ASCIIEncoding()

      Dim password() As Byte = encoding.GetBytes("SAME AS SIGHTMAX OPERATOR CONSOLE")

     

      Dim initialDataSpool As SightMax.SyncDataSpool = New SightMax.SyncDataSpool

      Dim sid As SightMax.SecurityIdentifier = New SightMax.SecurityIdentifier

      Dim serverVersion As System.Version = New System.Version

      Dim accountCannedResponses As SightMax.CannedResponseSharedDataCollection = New SightMax.CannedResponseSharedDataCollection

      Dim accountCannedResponseAssociations As SightMax.AccountCannedResponseAssociationCollection = New SightMax.AccountCannedResponseAssociationCollection

      Dim operatorCannedResponses As SightMax.CannedResponseSharedDataCollection = New SightMax.CannedResponseSharedDataCollection

      Dim operatorCannedResponseShortcuts As SightMax.CannedResponseSharedDataCollection = New SightMax.CannedResponseSharedDataCollection

      Dim operatorTimeoutSeconds As Integer

      Dim previouslyLoggedIn As Boolean

      Dim whiteboxversion As Boolean

      Dim guiVersion As System.Version = New Version(6, 0, 0, 0)

 

      Try

            OpAgentSharedData = OpClient.Login(initialDataSpool, sid, _

             serverVersion, accountCannedResponses, _

             accountCannedResponseAssociations, operatorCannedResponses, _

             operatorCannedResponseShortcuts, operatorTimeoutSeconds, _

             previouslyLoggedIn, whiteboxversion, guiVersion, userName, _

             password, accountName)

      Catch ex As Exception

            Debug.Print(ex.Message)

      End Try

End Sub

Also,
Is there any examples for using the API (that actually do something)?
  • Filed under:
Top 10 Contributor
Posts 12
Mike G replied on 04-22-2009 3:11 PM | 64.207.249.76

Hi Dan,

I posted a C# example of logging in here:

http://cs.sightmax.com/forums/p/413/7383.aspx#7383

 

Let me know if you need a little more.

Page 1 of 1 (2 items) | RSS
Copyright 2006-2009, SmartMax Software, Inc. All Rights Reserved.