locked
ADFS rejects the incoming SAML request RRS feed

  • General discussion

  • Hi All,

    We have a web site configured for SSO in ADFS and everything works fine including WIA authentication (in IE and Chrome).

    But, we are doing a performance testing of the same web site using Jmeter tool.

    We provide ADFS URL, User name, password and domain info in the Jmeter tool which will be used for ADFS authentication.

    When we run the tool to perform test, we receive an error on tool stating that "Sign in failed".

    Also we can see the below error in ADFS admin logs.

    Encountered error during federation passive request. 

    Additional Data 

    Protocol Name: 
     

    Relying Party: 
     

    Exception details: 
    System.Xml.XmlException: Name cannot begin with the '' character, hexadecimal value 0x0F. Line 1, position 339.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.ParseAttributes()
       at System.Xml.XmlTextReaderImpl.ParseElement()
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
       at System.Xml.XmlReader.MoveToContent()
       at System.Xml.XmlReader.IsStartElement(String localname, String ns)
       at Microsoft.IdentityServer.Protocols.Saml.SamlProtocolSerializer.ReadSamlMessage(XmlReader reader, NamespaceContext context)
       at Microsoft.IdentityServer.Protocols.Saml.HttpSamlBindingSerializer.ReadProtocolMessage(String encodedSamlMessage)
       at Microsoft.IdentityServer.Protocols.Saml.HttpSamlBindingSerializer.CreateFromNameValueCollection(Uri baseUrl, NameValueCollection collection)
       at Microsoft.IdentityServer.Protocols.Saml.HttpPostSamlBindingSerializer.ReadMessage(Uri requestUrl, NameValueCollection form)
       at Microsoft.IdentityServer.Web.Protocols.Saml.HttpSamlMessageFactory.CreateMessage(WrappedHttpListenerRequest httpRequest)
       at Microsoft.IdentityServer.Web.Protocols.Saml.SamlContextFactory.CreateProtocolContextFromRequest(WrappedHttpListenerRequest request, ProtocolContext& protocolContext)
       at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolHandler.CreateProtocolContext(WrappedHttpListenerRequest request)
       at Microsoft.IdentityServer.Web.PassiveProtocolListener.GetProtocolHandler(WrappedHttpListenerRequest request, ProtocolContext& protocolContext, PassiveProtocolHandler& protocolHandler)
       at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)

    Not sure what is getting wrong here. Your inputs will be really helpful.

    Thanks.!

    • Changed type Rakesh NS Monday, March 18, 2019 9:03 AM Expecting a resolution
    Thursday, March 14, 2019 4:53 PM