Solution 1

ARTIFACTORY: How can we reset user/password for remote repositories all at once in Artifactory Edge?

AuthorFullName__c
David Shin
articleNumber
000005529
ft:sourceType
Salesforce
FirstPublishedDate
2022-12-28T08:20:43Z
lastModifiedDate
2022-12-28
VersionNumber
2
When Artifactory Edge is up and running, to update the username and password for all remote repos, we can use the api/system/configuration REST API

1. To get a current config, we can run
 curl -u admin localhost:8082/artifactory/api/system/configuration > config.xml

2. Replace the old username/password with the new username/password using your favorite Editing tool
   vi config.xml
    :%s/old_password/new_password/g

3. To update new config with new user/password, we can run
    curl -u admin  localhost:8082/artifactory/api/system/configuration -XPOST -T config.xml