< Home

Configuring the Format of User Names in RADIUS Packets to Be Sent to a RADIUS Server

This section describes how to configure the format of user names in RADIUS packets to be sent to a RADIUS server using the rpc method.

Table 1 Configuring the format of user names in RADIUS packets to be sent to a RADIUS server

Operation

XPATH

edit-config:create

/huawei-aaa-radius:radius/radius-server/options/user-name/format

Data Requirement

Table 2 Configuring the format of user names in RADIUS packets to be sent to a RADIUS server

Item

Data

Description

Whether to configure the device not to modify the user names entered by users in the packets sent to a RADIUS server original Configure the device not to modify the user names entered by users in the packets sent to a RADIUS server.

Request Example

<rpc message-id="123" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <hw-aaa-radius:radius xmlns:hw-aaa-radius="urn:huawei:params:xml:ns:yang:huawei-aaa-radius">
        <hw-aaa-radius:radius-server>
          <hw-aaa-radius:name>rds</hw-aaa-radius:name>
          <hw-aaa-radius:vsys>public</hw-aaa-radius:vsys>
          <hw-aaa-radius:options>
            <hw-aaa-radius:user-name>
              <hw-aaa-radius:format>original</hw-aaa-radius:format>
            </hw-aaa-radius:user-name>
          </hw-aaa-radius:options>
        </hw-aaa-radius:radius-server>
      </hw-aaa-radius: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-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 >