scm: why ask me password for a different id?
Look at this, RTCAdmin is the id I used to remote log in to the server. What's going on here?
Thanks
Jirong
C:\Workspace\Cognos_SSSMP_huji>scm login -r https://cyspqpvspaap001:9443/ccm -u huji -P aaaaaaa -n rtc
Logged in to https://cyspqpvspaap001:9443/ccm
C:\Workspace\Cognos_SSSMP_huji>scm status
Password (RTCAdmin @ https://localhost:9443/ccm/):
Problem running 'status':
Could not log in to https://localhost:9443/ccm/ as user RTCAdmin: CRJAZ0100I You must enter a password.
Thanks
Jirong
C:\Workspace\Cognos_SSSMP_huji>scm login -r https://cyspqpvspaap001:9443/ccm -u huji -P aaaaaaa -n rtc
Logged in to https://cyspqpvspaap001:9443/ccm
C:\Workspace\Cognos_SSSMP_huji>scm status
Password (RTCAdmin @ https://localhost:9443/ccm/):
Problem running 'status':
Could not log in to https://localhost:9443/ccm/ as user RTCAdmin: CRJAZ0100I You must enter a password.
4 answers
If you don't specify a username, I believe it uses the username logged in to your operating system. I think you can have your username and repository details saved but you'll have to consult the documentation.
OK, now I login to OS with my id "huji", but it keep on asking me the password for each command. I asked this question in the forum before, but I can't find it now.
C:\Workspace\Cognos_SSSMP_huji>lscm status
Password (huji @ https://localhost:9443/ccm/):
Workspace: (1000) "Cognos SSSMP Development Stream Workspace -huji" <1001>
Component: (1002) "Cognos_SSSMP" <1001>lscm status
Password (huji @ https://localhost:9443/ccm/):
Workspace: (1000) "Cognos SSSMP Development Stream Workspace -huji" <1001>
Component: (1002) "Cognos_SSSMP" <-> (1001) "Cognos SSSMP Development Stream"
Baseline: (1003) 1 "Initial Baseline"
Help on login
Store credentials to use when logging into a repository.
Usage: lscm login [options]
Options:
--certificate arg - The file containing the user's login certificate.
--smartCard - Use the connected smart card for authentication.
-c [--cache] - Cache the password on prompt
-n [--nickname] arg - Nickname to identify repository in future.
-P [--password] arg - Password for repository.
-r [--repository-uri] arg - URI specifying the location of repository.
-u [--username] arg - Username for repository.
The login command has an option to cache the password. I believe it is stored as a hash in a plain text file.