Reset an user password from cmd or through a script

Hello everyone, 

I would like to know if there is any way to change (or reset) a user password through a command line or through a DXL script

It would be nice to have something like: -resetpassword server@port adminUser adminPassword username newPassword

 

Thanks


friendlyUser - Fri Jun 17 04:46:16 EDT 2016

Re: Reset an user password from cmd or through a script
kourosh - Wed Jun 29 15:42:01 EDT 2016

You can do this with DXL. For example:

User u = find("user1")
u.password = "password"
saveDirectory()

 

FYI the DXL forum is located at...

https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000001527&ps=25