Encrypted password is not working to connect to RTC
I've encrypted password refereed to the below IBM site
copied pass.txt to file to different location
when I try to access RTC and it is failing, something wrong with my command, can you please help.
lscm login -r http://test.xxx-xxxxx.com/ccm -u cc-adm-xxx -P "C:\RTC_Password\pass.txt" -n buildlogin
error message:
Could not log in to http://test.xxx-xxxxx.com/ccm/ as user cc-adm-xxx: CRJAZ0124
E The user name or password is invalid.
CRJAZ0124E The user name or password is invalid.
An error has occurred. Kindly check the log for more details.
2 answers
The link to the encrypted password reference is for the Jazz Build Engine. The SCM command line tool doesn't have a feature to encrypt the password.
You could create a certificate so that you're not sending a cleartext password. Details are at:
https://jazz.net/library/article/606
Hope this helps.
You can try the following:
Run 'lscm --config C:\RTC_Password login -r <repository Uri> -u <username> -c' which will prompt for the password and cache the password under C:\RTC_Password directory. Basically C:\RTC_Password will be considered as the scm cli configuration directory.
After that you can run all scm cli commands by specifying the --config option. For ex:
lscm --config C:\RTC_Password list workspaces -r <repository Uri>
or you can set the configuration directory as an environment variable: SCM_CONFIG_DIRECTORY=C:\RTC_Password and run the commands as usual: lscm list workspaces -r <repository Uri>