Quantcast
Channel: Lync 2010 and OCS - Address Book and User Replicator forum
Viewing all articles
Browse latest Browse all 347

Lync Server 2010 RTM WebTicket Service

$
0
0

When I try this script

$x = get-credential "localdomain\user"
Test-CsAddressBookService -TargetFqdn lync-01.localdomain.local -external  -usercredential $x -usersipaddress "sip:user@domain.ru"

The script is executedwith an error

Connecting to web service : https://lync.domain.ru:443/WebTicket/WebTicketService.svc
        Using IWA authentication
        Successfully created connection proxy and website bindings
        Requesting new web ticket
        Sending Web-Ticket Request: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue</Action>
  </s:Header>
  <s:Body>
    <RequestSecurityToken xmlns="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
      <TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</TokenType>
      <RequestType>http://schemas.xmlsoap.org/ws/2005/02/trust/Issue</RequestType>
      <AppliesTo xmlns="http://schemas.xmlsoap.org/ws/2004/09/policy">
        <EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
          <Address>https://lync.softmagazin.ru/WebTicket/WebTicketService.svc</Address>
        </EndpointReference>
      </AppliesTo>
      <Entropy>
        <BinarySecret>v+NJNNL8ghGxHn7cXeyh2Hj3H03ySyUb7z2QT0SClWo=</BinarySecret>
      </Entropy>
      <KeyType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey</KeyType>
    </RequestSecurityToken>
  </s:Body>
</s:Envelope>
        ERROR communicating with GetWebTicket() service
System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'NTLM'. The authentication header received from server was "NTLM". ---> System.Net.WebException:The remote server returned an error: (401) Unauthorized.

   в System.Net.HttpWebRequest.GetResponse()
   в System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChan
nelRequest.WaitForReply(TimeSpan timeout)
   --- Конец трассировки внутреннего стека исключений ---

Server stack trace:
   в System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(Ht
tpWebRequest request, HttpWebResponse response, WebException responseException,
HttpChannelFactory factory)
   в System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyRespo
nse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory
, WebException responseException, ChannelBinding channelBinding)
   в System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChan
nelRequest.WaitForReply(TimeSpan timeout)
   в System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSp
an timeout)
   в System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message
, TimeSpan timeout)
   в System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean one
way, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan time
out)
   в System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallM
essage methodCall, ProxyOperationRuntime operation)
   в System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   в System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqM
sg, IMessage retMsg)
   в System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDat
a, Int32 type)
   в IWebTicketService.IssueToken(Message request)
   в Microsoft.Rtc.SyntheticTransactions.WebServicesHelper.GetWebTicket()


TargetUri  : https://lync.domain.ru:443/abs/handler
TargetFqdn : lync-01.localdomain.local
Result     : Failure
Latency    : 00:00:00
Error      : ERROR - No response received for Web-Ticket service.


Viewing all articles
Browse latest Browse all 347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>