WebFOCUS Reporting Server Authentication

When running a request against a secured server, you must supply a valid user ID, password and server name. These credentials are then stored in the IBIC_user, IBIC_pass, and IBIC_server parameters in the WF_COOKIE respectively. A default user ID, password and server name can be specified using the IBI_REPORT_USER, IBI_REPORT_PASS, and IBI_REPORT_SERVER parameters stored in the ibi/webfocus77/client/wfc/etc/cgivars.wfs configuration file. Otherwise, the IBIC_user IBIC_pass, and IBIC_server parameters can be used directly.

Also, an application can automatically prompt for server credentials by setting the WF_AUTOSIGNON parameter to YES or PREPROMPT using the WebFOCUS Administration Console or adding the parameter and its value to the WebFOCUS variable table using the WFApplicationRequest.addParameter() method.

For more information on the different server security modes, see the WebFOCUS Security and Administration manual.

Request Parameter

Value

Description

IBIC_user

WebFOCUS Reporting server ID

Required. Overrides the default user specified by the IBI_REPORT_USER parameter in cgivars.wfs.

IBIC_pass

WebFOCUS Reporting server password

Optional. Overrides the default password specified by the IBI_REPORT_PASS parameter in cgivars.wfs. The value is encrypted in the WF_COOKIE.

IBIC_server

WebFOCUS Reporting Server

The credentials supplied will be applied to the server specified by the IBIC_server parameter.

Overrides the default server specified in cgivars.wfs.



Example: WebFOCUS Server Authentication Usage
String cgiLocation = 
application.getInitParameter("webfocus_client_root")+File.separator+"web"
+File.separator+"cgi";
    WFServletVariableTableExtension wfSVTExtension = new 
WFServletVariableTableExtension( request, application );
    WFApplicationRequest workerReq = new WFApplicationRequest();
    WFResponse workerResp = new WFServletResponse( response );
    workerReq.addParameter( "IBIWF_action", "WF_SIGNON" );
    workerReq.addParameter( "IBIC_user", "admin" );
    workerReq.addParameter( "IBIC_pass", "admin" );
    workerReq.addParameter("IBIWF_format", "XML");
    WFWorkerUtil.processRequest( cgiLocation, workerReq, workerResp, 
wfSVTExtension, null ,null, null ); 

Top of page

Example: WebFOCUS Server Authentication Sample Output
<?xml version="1.0" encoding="ISO-8859-1" ?> 
- <ibwfrpc name="WF_SIGNON">
  <returncode>1000</returncode>
  </ibwfrpc> 

WebFOCUS