Modifying an existing user account – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 208

Advertising
background image

176

Network OS NETCONF Operations Guide

53-1003231-02

User accounts

15

<name>brcdUser2</name>

<user-password>Broom6fielD</user-password>

<role>user</role>

</username>

<username xmlns="urn:brocade.com:mgmt:brocade-aaa">

<name>brcdUser3</name>

<user-password>Esoj3naS</user-password>

<role>user</role>

</username>

</rpc-reply>

Include the <name> element in the input under the <username> node to return information about
a specific user.

To return information about only enabled users, include the <enable>TRUE</enable> element
under the <username> node.

Modifying an existing user account

The RPCs for the account create and modify operations look alike. The difference is that no
mandatory parameters exist for modifying an existing account. The system recognizes internally
whether a new account is created or an existing account is modified by checking whether the user
account is already present in the configuration database.

The following example adds a description to the previously created “brcdUser” account.

1. Issue the <edit-config> RPC to configure the <username> node in the

urn:brocade.com:mgmt:brocade-aaa namespace.

2. Under the <username> node, include the following leaf elements.

a. In the <name> element, identify the user whose account information is to be changed.

b. In the <desc> element, provide an account description.

c. In the <date> element, provide an expiration date for the account. The default value is

“never”.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="802" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<username xmlns="urn:brocade.com:mgmt:brocade-aaa">

<name>brcdUser</name>

<desc>Brocade guest account</desc>

<date>never</date>

</username>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="802" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

The following example changes the password for the account “testUser”. All active login sessions of
a user are terminated if the user’s password or role is changed.

Advertising