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
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>
Comments
I've tried your solution but still it is asking password,
we are looking some command take password always from file or encrypt password to log in RTC, so that no one can know my password using my account. There is no really restriction my password while log-in RTC then run all other commands.
Exp:
I've log in using your solution, first I've to provide password and then next time when i try to load workspace run some other lsm commands it has to take automatically my password. i don't think this solution will help us.
I just tried this and it works for me.
Can you show the exact steps with the commands that you used?