< Home

Configuring the Switch to Re-authenticate Users When the Authentication Server Changes from Down to Up

This section provides a sample of configuring the switch to re-authenticate users when the authentication server changes from Down to Up using the merge method. You can also use the create method to configure the switch to re-authenticate users when the authentication server changes from Down to Up.

Table 1 Configuring the switch to re-authenticate users when the authentication server changes from Down to Up

Operation

XPATH

edit-config:merge

/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/re-authen-trigger-event

Data Requirement

Table 2 Configuring the switch to re-authenticate users when the authentication server changes from Down to Up

Item

Data

Description

name

lsw_auth

Configure the switch to re-authenticate users when the authentication server changes from Down to Up.

re-authen-trigger-event

authen-server-up

Request Example

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_012824316d704d43adb16b1a4245d273">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config>
   <nac-access xmlns="urn:huawei:params:xml:ns:yang:huawei-nac">
    <authentication-profile xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge">
     <name>lsw_auth</name>
     <re-authen-trigger-event>authen-server-up</re-authen-trigger-event>
    </authentication-profile>
   </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

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="62">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >