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.
Operation |
XPATH |
---|---|
edit-config:create |
/huawei-aaa-radius:radius/radius-server/options/user-name/format |
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. |
<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>
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>