< Home

Configuring the Aging Time for Entries of the Users Who Fail to be Authenticated

This section provides a sample of configuring the aging time for entries of the users who fail to be authenticated using the merge method.

Table 1 Configuring the aging time for entries of the users who fail to be authenticated

Operation

XPATH

edit-config:merge

/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/timer/aging-period/authen-fail

Data Requirements

Table 2 Configuring the aging time for entries of the users who fail to be authenticated

Item

Data

Description

name

p1

Configure the authentication profile named p1.

authen-fail

1000

Set the aging time for entries of the users who fail to be authenticated to 1000 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:nac-access xmlns:hw-nac="urn:huawei:params:xml:ns:yang:huawei-nac">
        <hw-nac:authentication-profile>
          <hw-nac:name>p1</hw-nac:name>
          <hw-nac:timer>
            <hw-nac:aging-period>
              <hw-nac:authen-fail>1000</hw-nac:authen-fail>
            </hw-nac:aging-period>
          </hw-nac:timer>
        </hw-nac:authentication-profile>
      </hw-nac:nac-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="DEVICECONFIG_012824316d704d43adb16b1a4245d273">
 <ok/>
</rpc-reply>

Sample of failed response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="19">
  <rpc-error>
    <error-app-tag>-1</error-app-tag>
    <error-message>Wrong parameter.</error-message>
    <error-info>Error on node /huawei-nac:nac-access/authentication-profile[name="xuan"]/timer/aging-period/authen-fail</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >