< Home

Configuring Re-authentication for Online 802.1X Authentication Users

This section provides a sample of configuring re-authentication for online 802.1X authentication users using the merge method.

Table 1 Configuring re-authentication for online 802.1X authentication users

Operation

XPATH

edit-config:merge

/huawei-nac-dot1x:dot1x-access/configure-mode/unified-mode/dot1x-access-profile/re-authenticate-function/re-authenticate-enable

/huawei-nac-dot1x:dot1x-access/configure-mode/unified-mode/dot1x-access-profile/re-authenticate-function/re-authenticate-period

Data Requirements

Table 2 Configuring re-authentication for online 802.1X authentication users

Item

Data

Description

name

d1

Configure the 802.1X access profile named d1.

re-authenticate-enable

true

Configure re-authentication for online 802.1X users.

re-authenticate-period

70

Set the re-authentication interval for online 802.1X users to 70 seconds.

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:dot1x-access-profile>
          <hw-nac-dot1x:name>d1</hw-nac-dot1x:name>
          <hw-nac-dot1x:re-authenticate-function>
            <hw-nac-dot1x:re-authenticate-enable>true</hw-nac-dot1x:re-authenticate-enable>
            <hw-nac-dot1x:re-authenticate-period>70</hw-nac-dot1x:re-authenticate-period>
          </hw-nac-dot1x:re-authenticate-function>
        </hw-nac-dot1x:dot1x-access-profile>
      </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="15">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-path>/huawei-nac-dot1x:dot1x-access/dot1x-access-profile[name='d1']/re-authenticate-function/re-authenticate-enable</error-path>
    <error-message>parse rpc config error.(Invalid value "1" in "re-authenticate-enable" element.).</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >