It's all about the answers!

Ask a question

What does the password file for the lscm login option --password-file have to look like?

Balz Guenat (1513) | asked Oct 10 '18, 9:26 a.m.
retagged Oct 23 '18, 4:17 p.m. by Ken Tessier (84117)
I can't find any documentation on this.

I tried just writing the PW into the file. That gives me a decoding error because of a `$` character in the PW.

I tried generating a password file as described here. That also resulted in a decoding error.

I then tried only using the PW string from aforementioned file. That didn't work either.

I saw that the decoding error came from Base64.decode() so I tried to encode the PW in Base64. That also didn't work.

Accepted answer

permanent link
David Lafreniere (4.8k7) | answered Oct 10 '18, 10:06 a.m.
edited Oct 11 '18, 10:00 a.m.
-You would use 'scm login --generatePasswordFile <path_to_file>' to first generate the password file.
-Then once generated, this file can be re-used at any time using 'scm login --password-file <path_to_file>'.

This password file is encrypted, and thus we do not allow users to create it by 'hand' (which would defeat the purpose of encoding it in the first place).

Balz Guenat selected this answer as the correct answer

Balz Guenat commented Oct 11 '18, 3:21 a.m.

Thank you! Your second link seems broken but I found the documentation of the --generatePasswordFile option here. I guess I just looked at the documentation of the wrong version. (Maybe a prominent hint in outdated documentation would be a good idea.)

Your answer

Register or to post your answer.