< Home

Disabling a RADIUS Attribute

This section describes how to disable a RADIUS attribute using the rpc method.

Table 1 Disabling a RADIUS attribute

Operation

XPATH

edit-config:create

/huawei-aaa-radius:radius/radius-server/disable-attribute

Data Requirement

Table 2 Disabling a RADIUS attribute

Item

Data

Description

Name of the RADIUS attribute to be disabled HW-Exec-Privilege

Set the RADIUS attribute to be disabled to HW-Exec-Privilege.

Type of packets in which the RADIUS attribute is to be disabled receive Disable the RADIUS attribute for received packets.

Request Example

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="cf1228d1-c9bc-4e95-9578-4e7d0cd90e25">
 <edit-config>
 <target>
  <running/>
 </target>
 <config>
  <radius xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-radius">
   <radius-server xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">
    <name>rds</name>
    <vsys>public</vsys>
    <disable-attribute xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">
     <attribute-name>HW-Exec-Privilege</attribute-name>
     <option>receive</option>
    </disable-attribute>
   </radius-server>
  </radius>
 </config>
 </edit-config>
</rpc>

Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="cf1228d1-c9bc-4e95-9578-4e7d0cd90e25">
  <ok/>
</rpc-reply>

Sample of failed response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="cf1228d1-c9bc-4e95-9578-4e7d0cd90e25">
 <rpc-error>
  <error-app-tag>-1</error-app-tag>
  <error-message>Process radius-attribute return error</error-message>
  <error-info>Error on node /huawei-aaa-radius:radius/radius-server[name="rds",vsys="public"]/disable-attribute[attribute-name="HW-Exec-Privilege1"]</error-info>
 </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >