ODBC (odbcqa)
The odbcqa
external security questions plugin program retrieves external question and answer information from an ODBC connection, including Oracle and Microsoft SQL Server.
To use this program:
Configure an ODBC connection DSN.
Configure the database server (SQL or Oracle).
Edit the odbcqa.psl file to suit your environment .
Add a NULL target system.
Optionally, add an external question set, and set the External program to odbcqa .
Enable odbcqa as an authentication method.
These steps are detailed below.
To configure an ODBC connection DSN:
Open ODBC Data Source Administrator.
From a 32-bit Windows server, go to Start > Administrative Tools > Data Sources (ODBC).
From a 64-bit Windows server, run C:\windows\SysWOW64\odbcad64.exe to open the 64-bit ODBC Data Source Administrator.
Select the System DSN tab.
Click Add to add a new DSN.
Select one of the listed data sources (SQL Server Native Client, or Oracle client).
If you selected SQL Server Native Client:
Provide the Name of the data source, for example EXTQA_DSN, and select a server from the drop-down list to choose a server to connect to, then click Next .
Select With SQL Server authentication using a login ID and password entered by the user. Provide a valid login for the SQL Server you are connecting to, and click Next .
Click Next to use Default database.
click Next to use default language.
Click Finish to finish adding the data source.
Click Test Data Source to test if the login provided is valid on the database server and then click OK to quit the program.
If you selected Oracle Client:
Provide a Data Source Name (any name), Description (any string), a valid TNS Service Name, and a valid User ID on the database server.
Click Test Connection button to test if the connection to the server with provided credential is valid;
Click OK to finish adding the Data Source.
To configure the database server (SQL or Oracle):
Create two new tables on the server with the following table name and fields:
Table name
Fields
allowedquestions
question
userqa
profileguid/profilename, question, answer
allowedquestions
stores all questions that available for the user to authenticate.userqa
stores questions and answers for individual users with profileid/profilename specified. Which column, profileguid or profilename, you add to userqa depends on which script you copied over.
Insert the questions into the
allowedquestions
table.
Configure the odbcqa plugin using a file called odbcqa.psl
. Copy the odbcqa_guid.psl
file or odbcqa_name.psl
file from the samples\ directory to the \<instance>\script\ directory, rename it to odbcqa.psl, and edit it to suit your environment.
odbcqa_guid.psl
uses profileguid to identify user. Profileguid never changes once it is assigned to a user.odbcqa_name.psl
uses profilename to identify user. Profilename is more user-friendly but it does not stay constant. You will have to manually change the entries for any user that has had a profilename change
The file is written using the PSLang language. For more information, see the PSLang Manual ( pslang.pdf ) .
The following function must be included in the script:
getQuestions
Retrieve questions from the database servergetQuestionsAndAnswers
Retrieve questions and answers from the database servertargetid
return the target system ID for the ODBC databasevalidateAnswer
validate that user’s answer is correct compared with the answer in the database.
Add a target system with the following configuration:
Target type: NULL target system
Target ID: by default, EXTQATARGET is defined in the odbcqa.psl file
Address : same ID as the system DSN ID; for example, EXTQA_DSN
List accounts : unselected (disabled);
Credentials: The valid database access ID/password provided when creating the system DSN.
The rest of the settings can be left as default.
Add an external question set with the following configuration:
Click Manage the system > Policies > Question sets .
Click External questions.
If Bravura Security Fabric displays a list of existing question sets, click Add new… at the bottom of the list.
Set appropriate options for the new question set.
External program:
odbcqa.exe
.External program provides questions along with answers: deselected.
Ask user to answer questions from this set: selected.
Click Add.
Click Add new at the bottom of the page
Add questions to the external question set.
Enable the authentication method:
By adding a security question authentication module to an authentication chain.
This method provides more flexible configuration options.
Or,
By configuring the default authentication menu (Manage the system > Modules> Front-end (PSF) ):
Set PSF EXT to
Security questions
orUser selectable
.Ensure that PSFEXT VALUES includes
response.pss
.