Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to pass an encrypted password file to SCM cli

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

0 votes



One answer

Permanent link
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.

1 vote

Comments

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!

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 02 '12, 11:38 a.m.

Question was seen: 8,901 times

Last updated: Oct 24 '13, 5:37 p.m.

Confirmation Cancel Confirm