< Home

Configuring the Quiet Function for Portal Authentication

This section provides a sample of configuring the quiet function for Portal authentication using the merge method.

Table 1 Configuring the quiet function for Portal authentication

Operation

XPATH

edit-config:merge

/huawei-nac-portal:portal-access/quiet-function/quiet-enable

/huawei-nac-portal:portal-access/quiet-function/quiet-period

/huawei-nac-portal:portal-access/quiet-function/quiet-times

Data Requirements

Table 2 Configuring the quiet function for Portal authentication

Item

Data

Description

quiet-enable

true

Configure the quiet function for Portal authentication.

quiet-period

100

Set the quiet period for Portal authentication users who fail to be authenticated to 100 seconds.

quiet-times

5

Configure the maximum number of authentication failures within 60 seconds before the device quiets a Portal authentication user to 5.

Request Example

# Configure the quiet function for Portal authentication.

<?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-portal:portal-access xmlns:hw-nac-portal="urn:huawei:params:xml:ns:yang:huawei-nac-portal">
       <hw-nac-portal:quiet-function>
         <hw-nac-portal:quiet-enable>true</hw-nac-portal:quiet-enable>
        </hw-nac-portal:quiet-function>
      </hw-nac-portal:portal-access>
    </config>
  </edit-config>
</rpc>

# Configure the quiet period for Portal authentication users who fail to be authenticated.

<?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-portal:portal-access xmlns:hw-nac-portal="urn:huawei:params:xml:ns:yang:huawei-nac-portal">      
        <hw-nac-portal:quiet-function>
          <hw-nac-portal:quiet-period xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">100</hw-nac-portal:quiet-period>
        </hw-nac-portal:quiet-function>
      </hw-nac-portal:portal-access>
    </config>
  </edit-config>
</rpc>

# Configure the maximum number of authentication failures within 60 seconds before the device quiets a Portal authentication user.

<?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-portal:portal-access xmlns:hw-nac-portal="urn:huawei:params:xml:ns:yang:huawei-nac-portal">
        <hw-nac-portal:quiet-function>
          <hw-nac-portal:quiet-times xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="create">5</hw-nac-portal:quiet-times>
        </hw-nac-portal:quiet-function>
      </hw-nac-portal:portal-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

<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 configuration error.</error-message>
 </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >