< Home

Disabling the Portal Authentication Redirection Function

This section provides a sample of disabling the Portal authentication redirection function using the merge method.

Table 1 Disabling the Portal authentication redirection function

Operation

XPATH

edit-config:merge

/huawei-aaa-portal/portal/portal-server/web-redirection-disable

Data Requirement

Table 2 Disabling the Portal authentication redirection function

Item

Data

Description

web-redirection-disable

true

Disable the Portal authentication redirection function.

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>test</hw-aaa-portal:name>
     <hw-aaa-portal:web-redirection-disable>true</hw-aaa-portal:web-redirection-disable>
    </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="0">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >