It's all about the answers!

Ask a question

How to pass an encrypted password file to SCM cli


Riccardo Rossi (3187) | asked Apr 02 '12, 11:38 a.m.
Hi,
is there any way to pass to a scm command a password from an encrypted password file? In a way like we do with the jazz engine start.

I'm working with scm 3.0.0

One answer



permanent link
Ralph Schoon (63.5k33646) | answered Apr 03 '12, 2:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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 itfor 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.

Comments
kanjbala jawahar commented Jun 05 '13, 11:29 p.m.

So did anybody find a solution to this. The links mentioned above did not help me.
Steps:
--ran scm login with --cache
--now how/what do I pass to the -P option in the cmd. below
scm list projectareas -r <repo> -u <userlogin> -P (what?)

Do I create a password file using the jbe createPasswordFile cmd? And use that file?
If so, I tried and it did not work.
Or, do I use the repositories.txt file somehow? If yes, how?
Or is there something else altogether?
What am I missing?

Thanks in advance!


Alexa Nafke commented Oct 24 '13, 5:37 p.m.

Hi Ralph,  I think what we are looking for is described best in this post:

https://jazz.net/forum/questions/115922/rtc-command-line-interface-password-encryption

We want to be able to pass scm an encrypted password file the same way we do for jbe.  It appears there is currently no way to call scm login without either interactively giving it your password or using the -P option in a script context. It looks like the -c option and the repositories.txt file make it so you don't have to login repeatedly until you logout but that isn't the same as avoiding putting in an unencrypted password in the first place.  Is there a WI for this feature yet?

Thanks,

Alexa 

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.