Hide password for scm login with tomcat
Accepted answer
Hi Anders,
I have seen some discussions around this and this post https://jazz.net/forum/questions/74823/how-to-pass-an-encrypted-password-file-to-scm-cli contains an answer, where I collected posts that discussed this.
<quote>According to several posts, you can use the -c option and the file repositories.txt. I haven't tried. Apparently the daemon encrypts user and password and stores that in a file. You can keep the file and use it for login, as far as I understand.
See:
https://jazz.net/forums/viewtopic.php?t=12096
https://jazz.net/forums/viewtopic.php?t=20364
https://jazz.net/forums/viewtopic.php?t=6613
for more details and try out the advanced search to find more information.</quote>
I have seen some discussions around this and this post https://jazz.net/forum/questions/74823/how-to-pass-an-encrypted-password-file-to-scm-cli contains an answer, where I collected posts that discussed this.
<quote>According to several posts, you can use the -c option and the file repositories.txt. I haven't tried. Apparently the daemon encrypts user and password and stores that in a file. You can keep the file and use it for login, as far as I understand.
See:
https://jazz.net/forums/viewtopic.php?t=12096
https://jazz.net/forums/viewtopic.php?t=20364
https://jazz.net/forums/viewtopic.php?t=6613
for more details and try out the advanced search to find more information.</quote>
One other answer
I want to avoid entering the password, too. Therefor I have created the repository.txt file throug using the login command
lscm --config data login -r <repository> - u <user> -P <password> -c -n rtc
Now I want to use this stored password. I tried this with following command
lscm --config data load -r rtc -u <user> <Repository Workspace Name>
But he still wants my user credential. Does anybody see what I do wrong?
PS: I use the -u option because I want to login with a user that differs from my window user. Otherwise he always take my windows user.