Allow passwords to be changed from the Zowe CLI #2358
Labels
enhancement
New feature or request
priority-medium
Not functioning - next quarter if capacity permits
Is your feature or enhancement request related to a problem or limitation? Please describe
I was asked at a customer facing conference (when giving a presentation about Zowe CLI) whether there was a feature to allow users to change their passwords.
The scenario is that when userIDs and passwords are first issued to folks on training courses they need to change it on first use. This is the only part of the course that needs the students to log into TSO and is their first experience of what is meant to be a full hands on Zowe CLI course that promotes itself on the idea of "look no green screen".
Describe your enhancement idea
z/OS 2.4 introduced the API `PUT /zosmf/authenticate' to allow passwords to be changed with the body
It looks as though this is supported from 2.4 through 3.1 so there are no issues with in-support z/OSMF releases not having the back end API.
A possible CLI syntax might be
zowe auth password change "<old>" -to "<new>"
Not sure if it makes sense to put under the auth category which is currently all about APIML auth but that'd be my preference rather than put it under z/OSMF (as FTP or RSE or another provider could implement this themselves), however it doesn't' pre-req APMLI so maybe the
zowe auth
category description needs updating to not be entirely about AIPML provided SSO.Describe alternatives you've considered
Using a 3270 terminal to log in and change the password.
Provide any additional context
It'd be good to do this in concert with the Zowe Explorer teams to ensure the SDK API calls can be used upstream.
I know in TSO login it's possible to distinguish between an invalid password and a valid password that then needs to be changed. For the scenario where a user on a course has been given a password that is valid but needs changing it would be nice if the CLI can determine that, so they are given feedback that the password needs updating, e.g.
The text was updated successfully, but these errors were encountered: