Disabling a user account – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 209

Advertising
background image

Network OS NETCONF Operations Guide

177

53-1003231-02

User accounts

15

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 <user-password> element, provide the new password.

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

<rpc message-id="803" 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>testUser</name>

<user-password>hellothere</user-password>

</username>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Disabling a user account

You can disable a user account by setting the enable parameter to “false”. All active login sessions
for a user are terminated when a user account is disabled.

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 is to be disabled.

b. In the <enable> element, specify “FALSE”.

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

<rpc message-id="804" 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>testUser</name>

<enable>FALSE</enable>

</username>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Advertising