How can I prevent the scm status subcommand from always requesting a password?
I'm finding that I'm always being requested for a password when I use the scm status subcommand. I've tried to use scm, lscm and lscm.bat, using the login -n and -c commands in various combinations with no luck.
Here's what I see.
E:\RtcProdSandBoxes\SF>lscm login -r "https://tjts1.tsysdev.net/ccm/" -n local -u "mbxxxxkxxx"
Password (mbxxxxkxxx @ https://tjts1.tsysdev.net/ccm/):
Logged in to https://tjts1.tsysdev.net/ccm/
E:\RtcProdSandBoxes\SF>lscm --show-uuid yes status --no-local-refresh
Password (mbxxxxkxxx @ https://jts1.tsysdev.net/ccm1/):
Workspace: (1000:_2Y9C8PXDEeSGz_LVb03HhA) "TCI_CTI_Dev_mbxxxxkxxx_wk" <->(1001>
Component: (1002:_7gaFR7w5EeSd3KYw5xOn4Q) "TCI_CTI_SF_comp"
Baseline: (1003:_nlHXUrxAEeSd3KYw5xOn4Q) 2 "Snapshot for loading SF to Rele>
E:\RtcProdSandBoxes\SF>scm--show-uuid yes status --no-local-refresh
Password (mbxxxxkxxx @ https://jts1.tsysdev.net/ccm1/):
Workspace: (1000:_2Y9C8PXDEeSGz_LVb03HhA) "TCI_CTI_Dev_mbxxxxkxxx_wk" <->(1001>
Component: (1002:_7gaFR7w5EeSd3KYw5xOn4Q) "TCI_CTI_SF_comp"
Baseline: (1003:_nlHXUrxAEeSd3KYw5xOn4Q) 2 "Snapshot for loading SF to Rele>
At some point earlier today after reading that case mismatches on a username might be a problem, I logged in using a mixed case version of my userid. Subsequently, I've received a number of errors saying my lowercase name cannot login as the mixed case version is already logged in.
E:\RtcProdSandBoxes\SF>lscm login -r "https://tjts1.tsysdev.net/ccm/" -n local -u "mbxxxxkxxx" -c
Password (mbxxxxkxxx @ https://tjts1.tsysdev.net/ccm/):
Problem running
'login':Could not login tohttps://tjts1.tsysdev.net/ccm/ as "mbxxxxkxxx". Already logged in as
"MBxxxxKxxx". Run "lscm logout" and retry.
One answer
Comments
Thanks for confirming that the login subcommand's -c option is supposed to cache the password for subsequent uses of lscm commands.
I have tried the -c option but it didn't solve the problem. When I used login -c, the scm status subcommand still prompts for the password each time I use it.
We're using version 5.0.2.
Do you have any further suggestions?
Thanks
Can you paste the output of 'lscm list cred' command? If you have cached the credentials you should see the line with repo uri, username and the password as <password stored>.