Bug 1012157

Summary: Enrolling a token using ESC with externalReg disabled, ESC displays status "Logged In" and Format is disabled
Product: Red Hat Enterprise Linux 5 Reporter: Roshni <rpattath>
Component: escAssignee: Jack Magne <jmagne>
Status: CLOSED WONTFIX QA Contact: Asha Akkiangady <aakkiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.10CC: rrelyea
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1012154 Environment:
Last Closed: 2013-10-30 20:54:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1012154    
Bug Blocks:    

Description Roshni 2013-09-25 20:42:20 UTC
+++ This bug was initially created as a clone of Bug #1012154 +++

Description of problem:
 Enrolling a token using ESC with externalReg disabled, ESC displays status "Logged In" and Format is disabled. 

Version-Release number of selected component (if applicable):
esc-1.1.0-26.el6

How reproducible:
always

Steps to Reproduce:
1. Setup a machine with CS packages, DS packages and TPS key recovery builds.
2. Create and configure CA, KRA, TKS and TPS.
3. Enroll a smart card with the TPS server.
4. Notice the "Logged In" status on ESC and Format button is disabled.

This can be fixed with a workaround as follows:

Check if the token name label of the coolkey module is empty. If so,
Stop ESC process
Run: $export PKCS11_LOGIN_TOKEN_NAME=test
Run ESC from the terminal


Actual results:
Coolkey module has empty token name. "Logged In" status on ESC and Format button is disabled.

Expected results:
The token name of the coolkey module should should not be empty. ESC should display status "Enrolled" and format butoon should be enabled after smart card enrollment.

Additional info:

Comment 1 Jack Magne 2013-10-30 20:54:30 UTC
This is not really a bug for esc. We had a condition in the TPS creates tokens with a null token name. That issue has been addressed. The client COULD be adjusted to react better to a null token name, but I don't think this is crucial.