Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

Can someone provide me an example of logging into RTC using SCM with the smartcard option?

I am using RTC 6.0.5 and we are required to use a smartcard/CAC when we login.

When I start the eclipse client and login, everything works great.

However when I try scm or lscm it does not.  The following is the command I enter:

lscm login -r https://happydays.are.here.mil/ccm -n GATOR -P smartcard

When I do I get the following response:

Problem running 'login':
--password cannot be used without --username or --certificate. Try 'lscm help login' for more information.

I do not know if the syntax is correct for using a smart card (e.g. the way  I selected to use smartcard). 

I do not know what to put in the command, both username and certificate require an argument.

I do not know what that argument would be. 

Could someone provide me an example of logging into a repository via scm/lscm using the smartcard option?

0 votes


Accepted answer

Permanent link

 This works for me 6.0.5.


lscm login -r "https://clm.example.com/ccm" --smartCard --username somebody

note it is --smartCard and not --smartcard . The help is consistent. I did not spot the capital C.

Bob Ferguson selected this answer as the correct answer

0 votes


One other answer

Permanent link

 I don't have a smartcard, but the documentation: https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/login.html&scope=null


states to use --smartCard and not smartCard. The option explanation for smartcard would be

--smartCard -u/--username <arg>


-P is a different writing for --password and is not used for smartcard. The documentation seems to indicate that you have to provide your user name. So you should try  

lscm login -r https://happydays.are.here.mil/ccm -n GATOR --smartCard -u <your user name>

0 votes

Comments

If I remember it correctly you need to provide the smart card alias to the -u option. You can find the aliases registered with the smart card by running 'lscm list smartcard-aliases'

 I tried to enter the command the way you suggested and I received the following error:
Argument syntax error:
Subcommand "login" does not support option "--smartcard". Try 'lscm help login' for more information.

The error message is still showing the option as "--smartcard". It should be "--smartCard" (with a capital 'C'). Can you cut and paste your command here?

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
× 12,059

Question asked: Feb 11 '19, 2:49 p.m.

Question was seen: 2,222 times

Last updated: Mar 26 '19, 1:52 a.m.

Confirmation Cancel Confirm