Pages

Pages - Menu

Tuesday, August 17, 2010

External Table Authentication

1) First create a table with username, password, and group_name

Fig( 1) : Data base table login_auth


Open your rpd
  1. Select Manage > Variables to open the Variable Manager.
  1. Select Initialization Blocks on the left tree pane.
  1. Right-click on white space in the right pane, and then click on New Initialization Block from the right-click menu.
  1. In the Initialization Block dialog box, type the name for the initialization block.
  1. Select Database from the Data Source Connection drop-down list.
  1. Click Browse to search for the name of the connection pool this block will use.

Fig (2): Initialization block SQL
  1. In the Initialization String area, type the SQL statement that will be issued at authentication time

Create a USER System session variable, Right click on white space in the right pane
Fig (3) : Creating a System Session variable

Assign the USER session variable to Authentication Initialization block



Fig (4) : Variable USER to Authentication Initialization block



   

No comments:

Post a Comment

.