Using Access REST API
Before proceeding, verify if you have a local admin user token generated previously and if it's still accessible. This token is crucial for enabling Basic Authentication through the Artifactory REST API.
If you have a valid local admin user token, you can re-enable Basic Authentication using the Access REST API endpoint: Enable or Disable Basic Authentication - JFrog REST APIs.
This method is straightforward and recommended for those who have the necessary token.
Modifying Access Configuration File
In cases where the local admin user token is not available, you'll need to modify the access configuration file directly. Follow these steps carefully
1. Backup Access Configuration File: Navigate to the $JFROG_HOME/artifactory/var/etc/access/ directory and make a backup of the access.config.latest.yml file so you can revert to it in case of any issues.
2. Edit Basic Auth Configuration: Edit the access.config.latest.yml and add or modify the following configuration (this configuration explicitly enables Basic Authentication): Security:
4. Restart Artifactory: Finally, restart the Artifactory application for the new configuration to take effect.
Before proceeding, verify if you have a local admin user token generated previously and if it's still accessible. This token is crucial for enabling Basic Authentication through the Artifactory REST API.
If you have a valid local admin user token, you can re-enable Basic Authentication using the Access REST API endpoint: Enable or Disable Basic Authentication - JFrog REST APIs.
This method is straightforward and recommended for those who have the necessary token.
Modifying Access Configuration File
In cases where the local admin user token is not available, you'll need to modify the access configuration file directly. Follow these steps carefully
1. Backup Access Configuration File: Navigate to the $JFROG_HOME/artifactory/var/etc/access/ directory and make a backup of the access.config.latest.yml file so you can revert to it in case of any issues.
2. Edit Basic Auth Configuration: Edit the access.config.latest.yml and add or modify the following configuration (this configuration explicitly enables Basic Authentication): Security:
authentication: basic-authentication-enabled: true3. Rename for Import: After editing, rename the file from access.config.latest.yml to access.config.import.yml. Access recognizes the .import.yml suffix and will automatically import this configuration upon restart.
4. Restart Artifactory: Finally, restart the Artifactory application for the new configuration to take effect.