< Home

Configuring the Device to Allow Users to Submit the User Name and Password to the Device in GET Mode During Portal Authentication

This section provides a sample of configuring the device to allow users to submit the user name and password to the device in GET mode during Portal authentication using the merge method.

Table 1 Configuring the device to allow users to submit the user name and password to the device in GET mode during Portal authentication

Operation

XPATH

edit-config:merge

/huawei-aaa-portal:portal/portal-server/http-method-parameters/get-method-enable

Data Requirements

Table 2 Configuring the device to allow users to submit the user name and password to the device in GET mode during Portal authentication

Item

Data

Description

name

huawei

Configure the Portal server template named huawei.

get-method-enable

true

Configure the device to allow users to submit the user name and password to the device in GET mode during Portal authentication.

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <hw-aaa-portal:portal xmlns:hw-aaa-portal="urn:huawei:params:xml:ns:yang:huawei-aaa-portal">
        <hw-aaa-portal:portal-server>
          <hw-aaa-portal:name>huawei</hw-aaa-portal:name>
          <hw-aaa-portal:http-method-parameters>
            <hw-aaa-portal:get-method-enable>true</hw-aaa-portal:get-method-enable>
          </hw-aaa-portal:http-method-parameters>
        </hw-aaa-portal:portal-server>
      </hw-aaa-portal:portal>
    </config>
  </edit-config>
</rpc>

Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
 <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-path>/huawei-aaa-portal:portal/portal-server[name='huawei']/http-method-parameters/get-method-enable</error-path>
    <error-message>parse rpc config error.(Invalid value "1" in "get-method-enable" element.).</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >