Bug 491003

Summary: CS 8.0 Alpha -- ESC phone home specification from preds files doesn't work
Product: [Retired] Dogtag Certificate System Reporter: Sean Veale <sean.veale>
Component: ESCAssignee: Jack Magne <jmagne>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: high Docs Contact:
Priority: urgent    
Version: unspecifiedCC: aakkiang, alee, benl, bob.lord, mharmsen
Target Milestone: ---Keywords: TechPreview
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Technology Preview
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-22 23:33:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 443788    

Description Sean Veale 2009-03-18 20:48:03 UTC
Description of problem:

According to the guide for the ESC 
http://www.redhat.com/docs/manuals/cert-system/7.3/pdf/Enterprise_Security_Client_Guide.pdf

You are able to specify a phone home URL through the global pref file(Section 3.2.2) 

This feature does not work as after you have done that (and restarted the esc) inserting a blank card still has the form when you can manually enter the Phone home URL pops up instead of using the one in from the prefs file.

Looking through the ESC.js file I don't see(with my admittedly short glance) where this preference is ever read in. 

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Stop the ESC if it is running. Modify the prefs file as specified in section 3.2.2 of the manual.

2.Plug in the blank card. See the Phone home dialog.

3.
  
Actual results:
Dialog pops up asking to input a phone home url. 

Expected results:
Prefs file is read for the phone home url as per the manual.

Additional info:

Using safenet 330J tokens

Comment 1 Jack Magne 2009-03-18 22:26:11 UTC
Thanks. This is something that was in 7.3 that perhaps did not make it into the alpha.

Comment 2 Jack Magne 2009-03-29 00:28:52 UTC
Changes to implement this feature:

Index: src/app/xul/esc/chrome/content/esc/ESC.js
===================================================================
RCS file: /cvs/dirsec/esc/src/app/xul/esc/chrome/content/esc/ESC.js,v
retrieving revision 1.21
diff -r1.21 ESC.js
56a57
> const  ESC_GLOBAL_PHONE_HOME_URL= "esc.global.phone.home.url";
295c296,301
<   //Check for special key since we have no phone home info.
---
>   //Check for optional global phone home url.
>
>
>   if(!home)   {
>       home = GetGlobalPhoneHomeUrl(keyType,keyID);
>   }
317a324,336
> //Get global phone home url if pref is set
>
> function GetGlobalPhoneHomeUrl(keyType,keyID)
> {
>
>    var globalIssuerURL=null;
>
>    globalIssuerURL = DoCoolKeyGetConfigValue(ESC_GLOBAL_PHONE_HOME_URL);
>
>    return globalIssuerURL;
>
> }
>

===================================================================
RCS file: /cvs/dirsec/esc/src/app/xul/esc/defaults/preferences/esc-prefs.js,v
retrieving revision 1.6
diff -r1.6 esc-prefs.js
32,34d31
< #Do we disable the password prompt ?
<
< pref("esc.disable.password.prompt","yes");
42c39
< #pref("esc.security.url","https://test.host.com:7889/cgi-bin/sow/welcome.cgi")
;
---
> #pref("esc.security.url","https://test.host.com:7889/cgi-bin/sow/wel
come.cgi");
46a44,49
>
>
> #Use this if you absolutely want a global phone home url for all tokens
> #Not recommended!
>
> #pref("esc.global.phone.home.url","http:/test.host.com:7888/cgi-bin/home/index
.cgi");

Comment 3 Matthew Harmsen 2009-03-29 00:34:25 UTC
Comment #2 +mharmsen

Comment 4 Jack Magne 2009-03-29 00:38:23 UTC
$ cvs -d :ext:jmagne.redhat.com/cvs/dirsec commit -m "Fix for #49100
3, global phone home pref." ESC.js
Enter passphrase for key '/home/jack/.ssh/id_rsa':
Checking in ESC.js;
/cvs/dirsec/esc/src/app/xul/esc/chrome/content/esc/ESC.js,v  <--  ESC.js
new revision: 1.22; previous revision: 1.21
done
Running syncmail...
Mailing relnotes...
...syncmail done.
Running syncmail...
Mailing cvsdirsec...
...syncmail done.

Comment 5 Jack Magne 2009-03-29 00:55:52 UTC
cvs commit: Examining .
Enter passphrase for key '/home/jack/.ssh/id_rsa':
Checking in esc-prefs.js;
/cvs/dirsec/esc/src/app/xul/esc/defaults/preferences/esc-prefs.js,v  <--  esc-pr
efs.js
new revision: 1.7; previous revision: 1.6
done
Running syncmail...
Mailing relnotes...
...syncmail done.
Running syncmail...
Mailing cvsdirsec...
...syncmail done.

Comment 6 Asha Akkiangady 2009-05-28 19:04:35 UTC
Verified. esc-prefs.js file has esc.global.phone.home.url parameter, when you enter value for this and restart esc, dialog to manually enter the Phone
home URL does not pop up.