WSMan/Winrm returning error code 400

I am trying to implement NTLM sealing in Java. I have taken wireshark and analysed communications sent by powershell that were encrypted, and with the help of the microsoft documentation and http://davenport.sourceforge.net/ntlm.html, I have been able
to read the contents of the sealed messages. 
I am no attempting to send my own sealed messages, and the error that I get is rather cryptic. In the event viewer, I get
Sending HTTP error back to the client due to a transport failure.
The HTTP status code is 400
The error code is 5
As I understand it, error code 5 means access is denied. Setting AllowUnencrypted=true (Client, not service) and resending the request unsealed works.
The code that I used to decrypt the original transmissions is able to correctly decrypt my sealed message.
POST /wsman HTTP/1.1
Content-Length: 1058
Content-Type: application/soap+xml; charset=UTF-8
Host: 10.247.25.106:5985
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.3 (java 1.5)
Accept-Encoding: gzip,deflate
Authorization: Negotiate TlRMTVNTUAABAAAAMYII4gAAAAAoAAAAAAAAACgAAAAFASgKAAAADw==
HTTP/1.1 401 
WWW-Authenticate: Negotiate TlRMTVNTUAACAAAACAAIADgAAAA1goniel2IVW7JoyAAAAAAAAAAAMAAwABAAAAABgLwIwAAAA9jAG8AcgBwAAIACABjAG8AcgBwAAEAEABMAE8AUwBBAFIAMQAwADYABAAmAGMAbwByAHAALgBSAG8AbwB0AEQAbwBtAGEAaQBuAC4AYwBvAG0AAwA4AGwAbwBzAGEAcgAxADAANgAuAGMAbwByAHAALgBSAG8AbwB0AEQAbwBtAGEAaQBuAC4AYwBvAG0ABQAmAGMAbwByAHAALgBSAG8AbwB0AEQAbwBtAGEAaQBuAC4AYwBvAG0ABwAIAP0X8NqMUNABAAAAAA==
Server: Microsoft-HTTPAPI/2.0
Date: Tue, 24 Feb 2015 23:51:49 GMT
Content-Length: 0
POST /wsman HTTP/1.1
Content-Length: 1316
Content-Type: multipart/encrypted;protocol="application/HTTP-SPNEGO-session-encrypted";boundary="Encrypted Boundary"
Host: 10.247.25.106:5985
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.3 (java 1.5)
Accept-Encoding: gzip,deflate
Authorization: Negotiate TlRMTVNTUAADAAAAGAAYAEgAAADwAPAAYAAAAAgACABQAQAAGgAaAFgBAAAAAAAAcgEAABAAEAByAQAANYKI4gUBKAoAAAAPK5H7A4CT4znwzqsgO1AJkGddOmOVoUuXQH6x32O4pEqw2zxQ+4qwDAEBAAAAAAAAYBSFBo1Q0AHp69Hf7BNThQAAAAACAAgAYwBvAHIAcAABABAATABPAFMAQQBSADEAMAA2AAQAJgBjAG8AcgBwAC4AUgBvAG8AdABEAG8AbQBhAGkAbgAuAGMAbwBtAAMAOABsAG8AcwBhAHIAMQAwADYALgBjAG8AcgBwAC4AUgBvAG8AdABEAG8AbQBhAGkAbgAuAGMAbwBtAAUAJgBjAG8AcgBwAC4AUgBvAG8AdABEAG8AbQBhAGkAbgAuAGMAbwBtAAcACAD9F/DajFDQAQAAAAAAAAAAQwBPAFIAUABhAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAI7sXtx3g4lokUDZ7xrO6V8=
--Encrypted Boundary
Content-Type: application/HTTP-SPNEGO-session-encrypted
OriginalContent: type=application/soap+xml;charset=UTF-8;Length=1058
--Encrypted Boundary
Content-Type: application/octet-stream
...binary...--Encrypted Boundary--
In this context, what exactly does error code 5 mean? Do I need to set some setting on the windows host? Is it possible that the host and I are not using the same encryption key?

For anyone who encounters a similar issue: If you are using HttpClient (at the time of this v4.4 is the most recent release) to generate the NTLM messages, it does not at present support the use of the NTLM2 key flag (known as NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
according to the microsoft spec). As a result, the headers that it generates will be rejected by the windows server you attempt to connect to.

Similar Messages

  • Error while receiving by HTTP (error code: 400, error text: ICM_HTTP_CONNECTION_FAILED

    Hi experts,
    I have a big issue in production server,
    the Queues are stuking in smq2 " command to tRFC/qRFC: execute LUW again"
    if i am reprocess or press F6 it is going manually.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>400</SAP:P1>
      <SAP:P2>ICM_HTTP_CONNECTION_FAILED</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText><html><head><title>Application Server Error</title> <style type="text/css"> body { font-family: arial, sans-serif;} </style> </head> <BODY text="#172972" link="#808080" vlink="#808080" alink="#8e236b" bgcolor=white leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"> <table height="61" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://xidist:8000/sap/public/icman/img/bluebar_tile.gif" height="30"><table> <tr> <td width=5></td> <td width=20% nowrap><font face=arial size="-1" color=white>SAP NetWeaver Application Server </font></td><td width=75% align="right" nowrap><font face=arial size="-1" color="white"><a href="http://help.sap.com/">Help </font></td><td width=5% nowrap></font></td> </tr></table> </td><td rowspan=2 width=122 height=61 valign=top><img src= "http://xidist:8000/sap/public/icman/img/theme.jpg" width=122 height=61 border=0 alt="SAP"></td> </tr><tr><td background="http://xidist:8000/sap/public/icman/img/graybar_tile.jpg" height="31">  </td></tr> </table> <br><br> <table width=800> <tr><td width=50 nowrap> </td><td> <H2><b>404 Resource not found</b></H2><br>Partner not reached<br><br><hr> <table border="0"> <tr><td>Error:</td><td>-20</td></tr> <tr><td>Version:</td><td>7000</td></tr> <tr><td>Component:</td><td>ICM</td></tr> <tr><td>Date/Time:</td><td>Wed May 14 15:50:24 2014 </td></tr> <tr><td>Module:</td><td>icxxconn.c</td></tr> <tr><td>Line:</td><td>2341</td></tr> <tr><td>Server:</td><td>xidist_GXI_00</td></tr> <tr><td>Error Tag:</td><td>{004654a1}</td></tr> <tr><td>Detail:</td><td>Connection request from (110/28816/0) to host: xidist, service: 50000 failed (NIESERV_USED) EX-T110, U28816, 001 PIAFUSER, 10.1.57.50, 15:50:24, M0, W1, , 1/0</td></tr> </table> <p></p> </td></tr></table> <table><tr><td width=50 nowrap></td> <td nowrap><FONT SIZE=-1><a href="http://www.sap.com/">&copy; 2001-2009, SAP AG</a></FONT> </td></tr></table> </body></html></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error while receiving by HTTP (error code: 400, error text: ICM_HTTP_CONNECTION_FAILED)</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Regards,
    Kiran polani

    Dear Sriram Ramani,
    in ths case some scenarios are working good. proxy to soap, idoc to soap and jdbc to proxy, proxy to jdbc all are working with out error.
    but my problem is in Soap to RFC case..
    for all RFC communication channels are working but some time it is throwing RFC_COMMUNICATION_ERROR and messages are stucks in smq2 with retry.
    when i check with retry error with in sxmb_moni log showing ICM_HTTP_CONNECTION_FAILED with error code 400.
    not for all signals for few signals for some time..
    Why it is happening i can't understand.
    in repository it is saying Repsitory object hmi failed and address already in use.
    is there any problem with loading IR objects.
    Please suggest me good suggestion for this type of issue what can do for this to resolve.
    Regards,
    Kiran Polani

  • Proxy issue with SCM - Error code: 400  ICM_HTTP_CONNECTION_FAILED

    We have recently added an SCM system to our landscape.  I am trying to upload data to BI within SCM.  I have set up the method and tested it and it works fine.  I am pulling the data in to XI from a flat file and converting it to XML, which works fine, I have tested the payload in the message mapping test tab.  When it trys to connect to the SCM system it looks like it hangs forever in sxmb_moni with the error message.
    Error when receiving by HTTP (error code: 400,
    error text: ICM_HTTP_CONNECTION_FAILED)
    I have also created my proxy in SCM, that seems to be fine as well when I test it.
    The communication channels are as follows...
    Transport Protocol: HTTP 1.0
    Message Protocol: XI 3.0
    Adapter Engine:     Integration Server
    Addressing Type:   URL Address
    Target Host:           <hostname>
    Service NUmber:     8000
    Path:                     /sap/xi/engine?type=receiver
    Auth Type:            Use Logon Data for SAP System
    SECOND
    I cannot see any errors on the Runtime either because my communiation is not showing up...  I have saved it and activiated it.  The adapter type is XI.
    Any help would be appreciated.
    Skip Ford

    Hi
    Error when receiving by HTTP (error code: 400,
    error text: ICM_HTTP_CONNECTION_FAILED)
    I have also created my proxy in SCM, that seems to be fine as well when I test it.
    The communication channels are as follows...
    Transport Protocol: HTTP 1.0
    Message Protocol: XI 3.0
    Adapter Engine: Integration Server
    Addressing Type: URL Address
    Target Host: <hostname>
    Service NUmber: 8000
    Path: /sap/xi/engine?type=receiver
    Auth Type: Use Logon Data for SAP System
    I think the parameter Path for the server proxy should be
    /sap/xi/engine?type=entry
    Thanks
    Gaurav

  • Error code: 400, error text: ICM_HTTP_CONNECTION_FAILED

    Every now and then we are getting the following error on a synchronous call from XI 3.0.
    Error when receiving by HTTP (error code: 400, error text: ICM_HTTP_CONNECTION_FAILED)
    Usually it is from XI to R/3 (that's where most of our synch calls take place) but occasionally it happen on a synchronous call to a JDBC comm channel.
    It is not just one interface that causes this issue and the same interface will be OK if we re-run it with same data.
    I suspect some system parameter is off, or it's just a bug in XI.  Any one else run into this ?  if so, have you found a fix ?  SAP hasn't been much help for us thus far.
    Thanks in advance for any help.

    Hi Tim,
    Can you check this thread-
    ICM_HTTP_CONNECTION_FAILED
    Also check SAP Note 824554,783515,910649,706563.
    Cache Refresh~
    https://websmp201.sap-ag.de/~sapdownload/011000358700003163902004E/HowTo_handle_XI_30_Caches.pdf
    Hope this helps,
    Regards,
    Moorthy

  • Getting an error code 400..

    I have used photoshop elements 10 for over 2 years. now i am getting an error code that says Photoshop.com services are currently not available. Please try again later or contact your network services. Error code 400!

    The answer is still the same as it was in your other thread:
    http://forums.adobe.com/thread/1282443?tstart=0

  • Attempting to activate WatchABC, get error code 400-1.

    I've successfully (according to Charter) activated my AppleTV device but receive error code 400-1 (not authorized).  How do I correct this?

    Hi JGinLSL,
    If you are having issues with the Watch ABC app on your Apple TV, you may find the following page helpful:
    Apple TV: Third-party content provider information
    http://support.apple.com/kb/HT4799
    Regards,
    - Brenden

  • Abc wont work error code 400-1

    Abc wont work error code 400-1

    Hey xoxokt,
    Thanks for the question. The following resource outlines troubleshooting information for third-party content providers on Apple TV:
    Apple TV: Troubleshooting third-party content providers
    http://support.apple.com/kb/HT200072
    If you have playback issues with a content provider's services
    In most cases, you can isolate playback issues to your home network, your broadband connection, or a possible outage with a content provider. To see if your issue is affecting multiple services or a specific content provider, try another service. For example, play a movie trailer from the main menu.
    - If the issue is affecting multiple services on your Apple TV, see how to troubleshoot playback performance.
    - If the issue is affecting a single content provider on your Apple TV, restart your Apple TV by going to Settings > General > Restart. If the issue continues, you might need to contact the content provider.
    Thanks,
    Matt M.

  • Error code 400-1 when trying to access abc family

    When trying to watch shows on abc family online, I log in with my provider and still get the error code 400-1. Does anyone know what this means or how to help fix it?

    http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/erro r-code-2343-message-when-trying-to/996dc521-9a03-4914-b2f6-dbf2b5293730

  • HTTP Error Code 400 Bad Request error when connecting to SQL db

    I realized I should move this to a new post since it was a new question...
    I am trying to connect to a distributed SQL database from CS4.
    Let me show you how the connection is built... and then maybe someone can tell me what I am doing wrong...
    First I go to the database panel:
    I click on the '+' sign to add an MS SQL Server Connection:
    That brings up the SQL Server Connection window where I am supposed to replace the placeholders with my server values:
    After I enter the correct values and click test, I get the error (HTTP Error Code 400 Bad Request)... These values work from SQL Server Management Studio on the same PC.
    Just as a side note... I tried one other thing that makes me think SOMETHING is wrong here:
    If I choose as OLE DB Connection instead... and click the 'Build...' button and then enter the values in the Data Link Properties Window (OLE DB Provider for SQL Server, and then the connection info on the Connection tab) and then click Test Connection on the Data Link Properties window, it says my test succeeded. Then I click 'ok' which takes me back to the OLE DB Connection windows with the connection string pre-filled, and click test on THAT window and I get the same HTTP Error Code 400 Bad Request error...
    Hopefully that is enough detail that someone can can tell me what I have broken?
    Thanks,
    Mike

    You will get a better response if you ask this question on the DW Application Dev forum. This forum mainly covers client-side issues.

  • Native SQL - Runtime Error: DBIF_DSQL2_SQL_ERROR (OCI returned error code)

    Hi,
    I have sometimes a problem with a NATIVE SQL-Statement.
    Runtime Error text:
    Database error text........: "OCI returned error code -2."
    Database error code........: "-2"
    Triggering SQL statement...: "FETCH NEXT "
    Internal call code.........: "DBDS/NEW DSQL"
    Sometimes it works and sometimes we have this error.
    Can anyone help me on this error?
    Best Regards
    André

    Hi !
    also a my job that runs every day, gets the same error in the production system at least once a month ! and nobody could help me to find out why.
    Regards
    Graziano Cortese

  • ::getpeername() returns error code 10057 (on a connected socket)

    Hi, I am blocked on this issue and cannot find a solution by myself. Maybe someone has encountered a similar issue and could provide some hints.
    Calling ::getpeername() (Win 7 x64) on an accepted (and open!) socket connection returns error code 10057 (for code details, please see the code snippet attached):
    "A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied."
    Any ideas why ::getpeername() fails with 10057 although ::getsockopt() says the socket is connected?
    Best regards, M.
    --- sample code snippet - begin - error handling left out for simplicity ---
        //accept call looks like this (call is asynchronous!):
        BOOL res = ::AcceptEx(_listenSocket, _socket, &_addrBuffer[0],0, 16+sizeof(SOCKADDR_STORAGE), 16+sizeof(SOCKADDR_STORAGE), &transfered, (LPOVERLAPPED)&_ov);
        // wait until the (previously accepted) socket is connected:
        INT seconds = 0;
        INT bytes = sizeof(seconds);
        int iResult = 0;
        do
          iResult = ::getsockopt(_socket, SOL_SOCKET, SO_CONNECT_TIME, (char *)&seconds, (PINT)&bytes);
        } while (seconds == -1 && iResult != SOCKET_ERROR);
        // now the socket should be connected, let's call ::getpeername():
        sockaddr remoteAddr = { 0 };
        socklen_t peeraddrlen = sizeof(remoteAddr);
        if (::getpeername(_socket, &remoteAddr, &peeraddrlen) == SOCKET_ERROR)
           int errno = getLastSocketError(); // this errno is 10057
    --- code snippet - end ---

    You also have to set the SO_UPDATE_ACCEPT_CONTEXT  option on the socket before you can use getpeername.  Mike L [MSFT] has provided a
    community addition note (entitled "Does not work on accepted sockets without calling setsockopt() first") to
    the documentation of getpeername to this effect.
    The details of this particular quirk are described in the documentation for AcceptEx.
    [See also GetAcceptExSockaddrs]

  • I cannot share photos with anyone ,for i select someone i get error code 400.

    I cannot share photoss with anyone for when ii try to select someone i get a error code 400.

    Version  9
    "domnic.rj23" <[email protected]> wrote:
    domnic.rj23 http://forums.adobe.com/people/domnic.rj23 created the discussion
    "Re: I cannot share photos with anyone ,for i select someone i get error code 400."
    To view the discussion, visit: http://forums.adobe.com/message/5781697#5781697

  • Error compiling FPGA VI: ERROR:Xflow - Program xst returned error code 6.

    When I use the Linear Interpolation function in my FPGA VI i get the compilation error:
    ERROR:Xflow - Program xst returned error code 6. Aborting flow execution...
    the Compile Server also gives the more detailed information:
    ERROR:Xst:1749 - "C:/NIFPGA85/srvrTmp/LOCALH~1/TRAPCO~2/NiLvFxpFloor.vhd" line 68: error: The output for the floor function should not have any fractional bits.
    I'll be happy for any suggestions how to solve this.

    Hello!
    Could you compile a program with only the Linear Interpolation.vi and only some constants and indicator as input and output?
    I tried on my PC and compile a simple VI containing only the Linear Interpolation.vi
    Which Version of NI-RIO do you use?
    Do you also placed the FPGA VI in library? If yes put out all FPGA VIs from the library and check that they aren't reentrant.
    This could cause problems to the compiling of FPGA VI.
    Try to create a new project with only a VI with the linear interpolation and check if it is compiled.
    Best regards
    Ken

  • Failed software update returns error code 0x87D00668

    We are using Secunia CSI to create and publish 3rd party software update packages to SCCM 2012.  I have one client computer running Windows 7 Pro x64 that is having a problem with one update.  When the user tries to install the Adobe Reader update
    in Software Center it fails and returns the following error.
    The software change returned error code 0x87D00668(-2016410008).
    I haven't been able to find any information on this error code.  I was just wondering if anyone else has encountered this error and might have any information on it??

    The item it's referring to in that error would seem to be the task that can't be found. No?
    The issue that needs to be addressed is that the updates aren't needed - they are installed on the server. I've installed the updates manually, rebooted, Software Center should not even be reporting that the updates need to be installed.  And back to
    the second post above, "Software update still detected as actionable after being applied" seems to be saying that it DOES see that the patch is installed.  The question is then, why is it still "actionable"?
    Thanks
    Why do you think that they are not needed? Have you force CM to scan again for SU? Are they show as being applied in CM12? What does the Windowsupdate.log say about that SU?
    I don't think it is a task that can't be found based on that single line from the log file.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ
    I don't think the updates are needed because they are installed on the server. You will see in my above posts my reasoning for concluding that the updates are installed: "I have two security updates that are indeed installed (according to Windows Update,
    the Windows Update log, and Add/remove programs), yet Software Center shows "failed" and with that exact same error of "Software update still detected as actionable after being applied".
    Yes, I've forced multiple rescans (before and after reinstalling the client) over the course of a few days. Software Center still shows failed.
    The Windows update log shows that it installed successfully. Here's one of lines in the log for one of the updates (in fact as far as the log goes back, 7-3, it's been saying this):
    WindowsUpdate    Success    Content Install    Installation Successful: Windows successfully installed the following update: Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows
    XP x86 (KB2729450)
    I think, again, we're back to the fact that is is installed but the issue is: "Software update still detected as actionable after being applied" seems to be saying that it DOES see that the patch is installed.  The question is why is it still
    "actionable"?  The client sees that it's installed but ... why is it saying it's still "actionable"? 
    I realize that this issue might be a little tougher to track down since I couldn't find ANY other reference to it online.
    Lastly, Config Manager shows "failed to install update" which is exactly what Software Center reports.
    Thanks again, am happy to upload/copy/paste any logs you think would be helpful.

  • When I try to sign into photoshop elements I keep getting error code 400 connection error. I am connected to wifi and have no connection problems anywhere else. How do I fix this?

    When I try to sign into photoshop elements I keep getting error code 400 connection error. I am connected to wifi and have no connection problems anywhere else. How do I fix this?

    FRANK M
    What computer operating system is your Premiere Elements 9 running on? I will assume Windows 7, 8, or 8.1 64 bit for now.
    As for the Help Menu/Update way for updating, are you doing that with antivirus and firewall(s) disabled? If not, please do so.
    Do you have the 9.0.1 Update of the program installed? What version of Camera Raw do you have installed?
    Premiere Elements 9 is an older program where you can still do manual installs for that one and only Update. And, Camera Raw for 9 is no longer being updated.
    For the 9.0.1 Update
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4929
    Camera Raw (last update possible for 9) is 6.5
    Camera Raw-compatible Adobe applications
    Adobe - Adobe Camera Raw and DNG Converter : For Windows : Camera Raw 6.5 update
    Please review and consider the above, and then let us know the outcome.
    Thank you.
    ATR

Maybe you are looking for

  • How to open a window in full screen mode using lf_fpm_navigation?

    Hi Guys For the following applications ESS Application: HAP_START_PAGE_POWL_UI_ESS MSS Application: HAP_START_PAGE_POWL_UI_MSS When the user clicks on the appraisal document name, a seperate window(not full screen) is generated to display the Apprais

  • My Iphone doesn't want to pre-order.

    One week ago I wanted to pre-order new Daft Punk album in Itunes. pushed the button, but I didn't have money on the card, so I couldn't do it. Today I put some money to the card, pushed the "pre-order" button on the Random Access Memories album and..

  • How can use a script to separate data into separate sheets?

    For example sake, I have three columns: Food Eaten (lbs), Date, and Pet (Fido, Penny, Whiskers). I'd like to tease the data apart such that the data for the first two columns for Penny, Fido, and Whiskers all appear on different sheets. Thanks in adv

  • Cascading/Dependant LOV's

    I'm confused on how to write the sql code for this cascading LOV. I have create a List of Value table that has the following columns: LOOKUP_ID LOOKUP_TYPE LOOKUP_CODE DESCRIPTION START_DATE END_DATE ATTRIBUTE When I select one of the types, 'LF_CATE

  • GPS Toggle for Xoom

    Is there a way to see if gps is turned on? Is there a way to toggle gps on and off to save battery power? Thanks