2 Replies Latest reply on Aug 31, 2012 1:51 PM by Sarah Zaleski

    trusted authentication fails in V 7.05

      We upgraded to V7.05 last night. Afterwards, the tableau server is returning -1 when using trusted authentication.  We have tried to reset the list of trusted IP addresses, and also checked usernames in tableau. The code on the webpage that connects using trusted authentication has not changed.

       

      Anyone have any ideas?

       

      Thanks.

       

      Tom Wieleba

        • 1. Re: trusted authentication fails in V 7.05

          We have been using the original sample code supplied by Tableau:

           

          Dim buffer As Byte() = Encoding.ASCII.GetBytes("username=" & ConnectAs & "&client_ip=" & ClientIP)
          Dim myReq As HttpWebRequest = WebRequest.Create("http://" & ServerName & "/trusted")

           

          myReq.Method = "Post"
          myReq.ContentLength = buffer.Length
          Dim PostData As Stream = myReq.GetRequestStream()
          PostData.Write(buffer, 0, buffer.Length)
          PostData.Close()


          Dim myResp As HttpWebResponse = myReq.GetResponse()

          Dim Answer As Stream = myResp.GetResponseStream
          Dim _Answer As StreamReader = New StreamReader(Answer)
          UniqueID = (_Answer.ReadToEnd)

           

          After the upgrade to 7.05, the Tableau server was not receiving the username.


          This is the final modified code, appending the querystring to the end of the HttpWebRequestURL:

           

          Dim myReq As HttpWebRequest = WebRequest.Create("http://" & ServerName & "/trusted?username=" & ConnectAs & "&client_ip=" & ClientIP)
          myReq.Method = "Post"

          Dim myResp As HttpWebResponse = myReq.GetResponse()

                   
          Dim Answer As Stream = myResp.GetResponseStream
          Dim _Answer As StreamReader = New StreamReader(Answer)
          UniqueID = (_Answer.ReadToEnd)

          • 2. Re: trusted authentication fails in V 7.05
            Sarah  Zaleski

            Where would I get that original sample code supplied by Tableau from?  We are using c#...