< Home

Configuring the URL Redirection for 802.1X Authentication

This section provides a sample of configuring the URL redirection for 802.1X authentication using the merge method.

Table 1 Configuring the URL redirection for 802.1X authentication

Operation

XPATH

edit-config:merge

/huawei-nac-dot1x:dot1x-access/url

Data Requirements

Table 2 Configuring the URL redirection for 802.1X authentication

Item

Data

Description

url

http://www.***.com.cn

Configure the URL redirection.

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-nac-dot1x:dot1x-access xmlns:hw-nac-dot1x="urn:huawei:params:xml:ns:yang:huawei-nac-dot1x">
        <hw-nac-dot1x:url>http://www.***.com.cn</hw-nac-dot1x:url>
      </hw-nac-dot1x:dot1x-access>
    </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="7">
  <rpc-error>
    <error-app-tag>-1</error-app-tag>
    <error-message>Wrong parameter.</error-message>
    <error-info>Error on node /huawei-nac-dot1x:dot1x-access/url</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >