Chapter 3 Setting Up a Card Reader (Tasks)
This chapter describes the procedures for setting up and
maintaining card readers.
This is a list of the step-by-step instructions in this chapter.
Setting Up a Card Reader (Task Map)
The following table describes all the tasks needed to set up and maintain
a card reader.
Table 3-1 Setting Up a Card Reader (Task Map)
Setting Up a Card Reader
Solaris Smart Cards supports two external card readers, the iButton
and the Sun SCRI External Reader 1, and an internal card reader, the Sun SCRI
Internal Card Reader 1.
The following table shows the supported card readers and the corresponding
values you need to supply to add them: card terminal factory
name and reader model name.
Table 3-2 Card Readers Supported
|
Reader Type
|
Card Terminal Factory Name
|
Reader Model Name
|
|
Sun SCRI External Card
Reader 1
|
com.sun.opencard.terminal.scm.SCMStc.SCMStcCardTerminalFactory
|
SunSCRI
|
|
iButton
|
com.ibutton.oc.terminal.jib.iButtonCardTerminalFactory
|
DS1402
|
|
Sun SCRI Internal Card Reader 1
|
com.sun.opencard.terminal.scm.SCMI2c.SCMI2cCardTerminalFactory
|
SunISCRI
|
Adding a Card Reader (Console)
With the SmartCard Console, you set
up a card reader by selecting Card Readers from the Navigation pane. This
option lets you:
How to Add a New Card Reader (Console)
See "How to Start the SmartCard Console (Command Line)" for help on starting the
SmartCard Console.
-
(Optional) Ensure that you have already physically attached the external
card reader to the system.
Physically attach the external smart card reader to the serial port,
following instructions in the card reader documentation.
-
Click Card Readers on the Navigation pane.
-
Double-click Add Reader.
-
Double-click the type of card reader you want to add.
The CardReaders: SunCardReader dialog box is displayed.
-
Select the Basic Configuration folder tab.
-
Click the down arrow under Device Port.
-
Click the port that the card reader is attached to.
-
Click OK.
-
Restart ocfserv, if prompted.
Viewing or Modifying Card Reader Properties (Console)
The Basic Configuration folder for your card reader includes these properties:
-
Unique Card Terminal Name -
Contains a unique name to identify the card reader (called the user_friendly_reader name in the command-line procedures for
adding a card reader)
-
Model Name - Contains
the manufacturer's model name for the card reader you selected from the Add
Reader dialog box (called the card_reader_model
name in Table 3-2)
-
Device Port - Contains
the fully-qualified device name for the port where the reader is attached,
for example /dev/cua/b for serial port b
The Advanced Configuration folder contains the card_terminal_factory_name for the card reader, as supplied by the manufacturer. You do
not need to change this name unless the manufacturer changes the name for
a newer release of the card reader.
How to View or Modify Card Reader Properties (Console)
Use this procedure to view or modify basic properties for your card
reader.
-
Type a unique name for your card reader in the Unique Card Terminal
Name field, or accept the default name.
If you have more than one card reader of the same type attached to the
system, you must type a unique card terminal name for each reader.
-
Type the Model Name for the card reader, only if you are using a newer
version of the card reader than the one with the Model Name displayed.
-
Click on the arrow and select the appropriate device path.
-
Restart ocfserv, if prompted.
Adding a Card Reader (Command Line)
You add a card reader by using the smartcard -c admin
command with the following syntax:
smartcard -c admin -t terminal -j card_terminal_factory_name -x add -d device_pathname -r user_friendly_reader_name -n card_reader_model
|
-c admin
|
Indicates that you are viewing or modifying
OCF properties.
|
|
-t terminal
|
Indicates that you are about to configure
a card reader.
|
|
-j card_terminal_factory_name
|
Defines the card terminal factory name of the card reader
type. See the specific Card Terminal Factory Name in the procedures below.
|
|
-x add
|
Indicates that you want to add a card reader.
|
|
-d device_pathname
|
Specifies the
device port where you have plugged in the card reader.
|
|
-r user_friendly_reader_name
|
Specifies a unique
name for the reader.
|
|
-n reader_model_name
|
Designates the
model name of the card reader. See the specific card reader model name in
the procedures below.
|
Refer to the smartcard(1M) man page for more information.
How to Add an iButton Reader (Command Line)
-
Become superuser on the system where you are attaching the card reader.
-
Ensure that you have already physically attached the external card reader
to the system.
Physically attach the external smart card reader to the serial port,
following instructions in the card reader documentation.
-
Add the iButton reader by typing the following command on one line.
For example:
# smartcard -c admin -t terminal
-j com.ibutton.oc.terminal.jib.iButtonCardTerminalFactory
-x add -d /dev/cua/b -r MyButtonReader -n DS1402
|
|
-c admin
|
Indicates that you are viewing or modifying
OCF properties.
|
|
-t terminal
|
Indicates you are configuring a card
reader.
|
|
-j com.ibutton.oc.terminal.jib.iButtonCardTerminalFactory
|
Identifies
the card terminal factory name of the iButton reader.
Be careful
to type the card terminal factory name following -j option
exactly as shown in the procedure above, with no spaces or returns between
characters.
|
|
-x add
|
Indicates that you want to add a card
reader.
|
|
-d /dev/cua/b
|
Defines the device port where the card reader
is attached.
|
|
-r MyButtonReader
|
Specifies a unique
name for the iButton reader.
|
|
-n DS1402
|
Indicates the model name for the iButton card
reader.
|
-
Stop ocfserv.
The ocfserv process is restarted the next time you
use the SmartCard Console or the smartcard command.
How to Add a Sun SCRI External Card Reader 1 (Command Line)
-
Become superuser on the system where you are attaching the card reader.
-
Ensure that you have already physically attached the external card reader
to the system.
Physically attach the external smart card reader to the serial port,
following instructions in the card reader documentation.
-
Add the Sun SCRI External Card Reader 1 by typing the following command
on one line. For example:
# smartcard -c admin -t terminal
-j com.sun.opencard.terminal.scm.SCMStc.SCMStcCardTerminalFactory
-x add -d /dev/cua/b -r MyExternalReader -n SunSCRI
|
|
-c admin
|
Indicates that you are viewing or modifying
OCF properties.
|
|
-t terminal
|
Indicates you are configuring a card
reader.
|
|
-j
com.sun.opencard.terminal.scm.SCMStc.SCMStcCardTerminalFactory
|
Is the card terminal factory name of
the Sun SCRI External Card Reader 1.
Be careful to type the card
terminal factory name following -j option exactly as shown
in the procedure above, with no spaces or returns between characters.
|
|
-x add
|
Indicates that you want to add a card reader.
|
|
-d /dev/cua/b
|
Defines the device port where the card reader
is attached.
|
|
-r MyExternalReader
|
Specifies a unique
name for the SCRI External Card Reader 1.
|
|
-n SunSCRI
|
Indicates the model name for the SCRI External
Card Reader 1.
|
-
Stop ocfserv.
The ocfserv process is restarted the next time you
use the SmartCard Console or the smartcard command.
How to Add a Sun SCRI Internal Card Reader 1 (Command Line)
-
Become superuser on the system where you are attaching the card reader.
-
Add the Sun SCRI Internal Card Reader 1 by typing the following command
on one line. For example:
# smartcard -c admin -t terminal
-j com.sun.opencard.terminal.scm.SCMI2c.SCMI2cCardTerminalFactory
-x add -d /dev/scmi2c1 -r MyInternalReader -n SunISCRI
|
|
-c admin
|
Indicates that you are viewing or modifying
OCF properties.
|
|
-t terminal
|
Indicates you are configuring a card
reader.
|
|
-j com.sun.opencard.terminal.scm.SCMI2c.SCMI2cCardTerminalFactory
|
Is the card terminal factory name of the Sun SCRI Internal Card Reader 1.
Be careful to type the card terminal factory name following -j option exactly as shown in the procedure above, with no spaces
or returns between characters.
|
|
-x add
|
Indicates that you want to add a card
reader.
|
|
-d /dev/scmi2c1
|
Defines the device port where the card reader
is attached. For example, /dev/scmi2cn,
where n in scmi2cn is the nth SunISCRI reader on the
system.
|
|
-r MyInternalReader
|
Specifies a unique
name for the SCRI Internal Card Reader 1.
|
|
-n SunISCRI
|
Indicates the model name for the SCRI Internal
Card Reader 1.
|
-
Stop ocfserv.
The ocfserv process is restarted the next time you
use the SmartCard Console or the smartcard command.
Removing a Card Reader
You might need to remove an external card reader from a system, for
example, when a user no longer needs to use a smart card, or when you want
to move the reader to another system. Before unplugging the reader, you first
must logically remove the reader.
How to Remove a Card Reader (Console)
See "How to Start the SmartCard Console (Command Line)" for help on starting the
SmartCard Console.
-
Click Card Readers on the Navigation pane.
-
Select the card reader in the Console pane that you want to remove.
-
Select Remove Terminal from the Action menu.
-
Click OK to remove the card reader.
-
Restart ocfserv, if prompted.
How to Remove a Card Reader (Command Line)
-
Become superuser on the system with the card reader to be removed.
-
Remove the card reader.
# smartcard -c admin -t terminal -r user_friendly_reader_name -x delete
|
-
(Optional) Unplug the external card reader from the port.
-
Stop ocfserv.
The ocfserv process is restarted the next time you
use the SmartCard Console or the smartcard command.