This section provides a sample of configuring the quiet function for Portal authentication using the merge method.
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 |
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. |
# 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>
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>