strange yes, reposting here:

The following POST: 

curl -f -u admin:password -X POST -H 'Content-Type: application/json;
charset=UTF-8' -d '{ "password": "newpasswd" }'
http://localhost/artifactory/api/security/users/admin

does update the password, but also seems to remove the admin rights of the
admin user.   This does not seem to be implemented as a true update.   Is
this a bug? 

So it appears you will have to pass the admin key/value as well: 

curl -f -u admin:password -X POST -H 'Content-Type: application/json;
charset=UTF-8' -d '{ "password": "Art1F@ctory", "admin": true }'
http://localhost/artifactory/api/security/users/admin

hopefully above curl commands are now showing properly.



--
View this message in context: 
http://forums.jfrog.org/updating-admin-password-removes-admin-rights-tp7578741p7578744.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to