Ylianst / MeshCommander

MeshCommander is a Intel(R) Active Management Technology (Intel(R) AMT) remote management tool. It's feature rich and includes a built-in remote desktop viewer for Hardware-KVM, a Serial-over-LAN terminal, IDER-Redirection support and much more. MeshCommander is built on web technologies and runs on many plaforms. In addition to being available as a stand-alone tool, MeshCommander was built to be very space efficient to that it can be uploaded into Intel AMT flash space to have it served diretly from the Intel AMT web serve.
Apache License 2.0
334 stars 72 forks source link

Unable to set IPv6 state, error 400 when configuring IPv6 from MeshCommander #10

Open zajdee opened 4 years ago

zajdee commented 4 years ago

Hello,

while attempting to change the IPv6 network configuration using MeshCommander, I only get a pop-up window with the following error: Unable to set IPv6 state, error 400

When I go to the AMT website directly, I am able to configure IPv6 there.

When capturing the session from MeshCommander to an unsecured AMT port using tcpdump, this is what I get (authentication headers redacted, XML pretty printed) when trying to disable IPv6 on an already IPv6-configured interface (it's the same HTTP result when enabling it, but probably with different data):

POST /wsman HTTP/1.1
Authorization: Digest username="admin",realm="(...)",nonce="(...)",uri="/wsman",qop="auth",response="(...)",nc="(...)",cnonce="(...)"
Host: (...):16992
Content-Length: (...)

<?xml version="1.0" encoding="utf-8"?>
<Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns="http://www.w3.org/2003/05/soap-envelope">
  <Header>
    <a:Action>http://schemas.xmlsoap.org/ws/2004/09/transfer/Put</a:Action>
    <a:To>/wsman</a:To>
    <w:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ElementSettingData</w:ResourceURI>
    <a:MessageID>205</a:MessageID>
    <a:ReplyTo>
      <a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
    </a:ReplyTo>
    <w:OperationTimeout>PT60.000S</w:OperationTimeout>
  </Header>
  <Body>
    <r:CIM_ElementSettingData xmlns:r="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ElementSettingData">
      <r:IsCurrent>2</r:IsCurrent>
      <r:IsDefault>0</r:IsDefault>
      <r:IsNext>0</r:IsNext>
      <r:ManagedElement>
        <a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
        <a:ReferenceParameters>
          <w:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_EthernetPort</w:ResourceURI>
          <w:SelectorSet>
            <w:Selector Name="CreationClassName">CIM_EthernetPort</w:Selector>
            <w:Selector Name="DeviceID">Intel(r) AMT Ethernet Port 0</w:Selector>
            <w:Selector Name="SystemCreationClassName">CIM_ComputerSystem</w:Selector>
            <w:Selector Name="SystemName">Intel(r) AMT</w:Selector>
          </w:SelectorSet>
        </a:ReferenceParameters>
      </r:ManagedElement>
      <r:SettingData>
        <a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
        <a:ReferenceParameters>
          <w:ResourceURI>http://intel.com/wbem/wscim/1/ips-schema/1/IPS_IPv6PortSettings</w:ResourceURI>
          <w:SelectorSet>
            <w:Selector Name="InstanceID">Intel(r) IPS IPv6 Settings 0</w:Selector>
          </w:SelectorSet>
        </a:ReferenceParameters>
      </r:SettingData>
    </r:CIM_ElementSettingData>
  </Body>
</Envelope>
HTTP/1.1 400 Bad Request
Date: Fri, 22 May 2020 20:32:33 GMT
Server: Intel(R) Active Management Technology 11.8.70.3626
X-Frame-Options: DENY
Content-Type: application/soap+xml; charset=UTF-8
Transfer-Encoding: chunked
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<a:Envelope xmlns:g="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" xmlns:f="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:e="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:d="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:c="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:b="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:a="http://www.w3.org/2003/05/soap-envelope" xmlns:h="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:i="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <a:Header>
    <b:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</b:To>
    <b:RelatesTo>205</b:RelatesTo>
    <b:Action a:mustUnderstand="true">http://schemas.dmtf.org/wbem/wsman/1/wsman/fault</b:Action>
    <b:MessageID>uuid:00000000-8086-8086-8086-0000000009F8</b:MessageID>
  </a:Header>
  <a:Body>
    <a:Fault>
      <a:Code>
        <a:Value>a:Sender</a:Value>
        <a:Subcode>
          <a:Value>e:InvalidSelectors</a:Value>
        </a:Subcode>
      </a:Code>
      <a:Reason>
        <a:Text xml:lang="en-US">The Selectors for the resource are not valid.</a:Text>
      </a:Reason>
      <a:Detail/>
    </a:Fault>
  </a:Body>
</a:Envelope>