< Home

Configuring an Attribute in the received RADIUS Access-Accept packets to Be Checked

This section describes how to configure an attribute in the received RADIUS Access-Accept packets to be checked using the rpc method.

Table 1 Configuring an attribute in the received RADIUS Access-Accept packets to be checked

Operation

XPATH

edit-config:create

/huawei-aaa-radius:radius/radius-server/check-attribute/attribute-name

Data Requirement

Table 2 Configuring an attribute in the received RADIUS Access-Accept packets to be checked

Item

Data

Description

Name of an RADIUS attribute framed-protocol Configure the framed-protocol attribute in RADIUS Access-Accept packets to be checked.

Request Example

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
 <edit-config>
 <target>
  <running/>
 </target>
 <error-option>rollback-on-error</error-option>
 <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>test12345</name>
    <vsys>public</vsys>
    <check-attribute xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge">
     <attribute-name>framed-protocol</attribute-name>
    </check-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="123">
  <ok/>
</rpc-reply>

Sample of failed response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
 <rpc-error>
  <error-app-tag>-1</error-app-tag>
  <error-message> Failed to find the attribute.</error-message>
  <error-info>Error on node /huawei-aaa-radius:radius/radius-server[name="test12345",vsys="public"]/check-attribute[attribute-name="abc"]/attribute-name</error-info>
 </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >