Attachmate Worldwide  |   Contact Us  |   NetIQ.com
Home » Support » Solution Library

Technical Notes

Personalizing Reflection for the Web Using the SQL Plug-in
Technical Note 1835
Last Reviewed 06-Jan-2005
Applies To
Reflection for the Web version 7.01.546 or higher
Summary

This technical note describes how to personalize Reflection for the Web sessions with information stored in an SQL Server database (or any database with a jdbc driver).

For information about personalizing Reflection for the Web sessions with information stored in a text file, see Technical Note 1807.

Note: This technical note applies to Reflection for the Web version 7.01.546 or higher. To determine your version, open the Administrative WebStation and click Resources > About Reflection for the Web.

Using the SQL Plug-in

Reflection for the Web provides an SQL plug-in. Proceed through the sections below to configure Reflection for the Web to use the SQL plug-in for personalization.

Create a Table in Your SQL Server Database

In your SQL Server database, create a table that maps clients with Reflection for the Web settings. The example provided in this technical note creates a table with two fields, my_dns_fieldname and my_devicename_fieldname, which contain client DNS names and their corresponding IBM devicenames or logical units (LUs).

Configure Reflection to use the SQL Plug-in

To enable the Personalization feature in Reflection, you must edit two files in the ReflectionData folder to identify the plug-in and to create the data source.

Identify the SQL Plug-in

  1. Edit the PropertyDS.xml file to specify that the Reflection for the Web management server use the SQL plug-in.

Open <install path>\ReflectionData\PropertyDS.xml and locate the following lines:

<CORE_PROPERTY NAME="AC.P13nPlugin">
<STRING></STRING>
</CORE_PROPERTY>
  1. Insert sql.SqlPlugin (shown in red below) between the two STRING tags to read as follows:
<CORE_PROPERTY NAME="AC.P13nPlugin">
<STRING>sql.SqlPlugin</STRING>
</CORE_PROPERTY>
  1. Save the file and then restart the Reflection Server.

Create the Data Source

Follow the steps in this section to create a customized data source. First determine the parameters and properties you want to customize; then modify the p13_sql_conf.txt file.

Determine Preferred Data Mappings

  1. Decide which parameters you want to map.

For information on valid parameters you could use in your SQL statement (such as %%DNS), see the comments in the <install path>/ReflectionData/p13n_sql_conf.txt file.

  1. Decide which properties you want to use.

Many properties can also be used with personalization. For a list of valid properties, see the Administrative WebStation > Advanced > API and Scripting > API Reference.

  1. Optional: To personalize a setting based on a user's identity, Reflection for the Web must be configured to use an authentication method that establishes user identity: LDAP, Portal, SiteMinder, X.509, or Single Sign-on.
    1. Verify the current access control method in Reflection for the Web. In the Administrative WebStation, click Access Control Setup. The Current Settings table lists the type of authentication in effect.
    2. To configure or change the access control method, click the Configure button on the Access Control Setup page.

Note: If the authentication method is None, then the identity of the end user cannot be determined.

Modify the p13_sql_conf.txt File

Open <install path>/ReflectionData/p13n_sql_conf.txt, to which you will add your data mappings. The file contains comments describing the required format. Each line that begins with a # symbol is a comment.

Add the following lines to the p13n_sql_conf.txt file, replacing the variables with the correct values for your environment. The variables are described in the table following the sample.

Sample p13n_sql_conf.txt File

View this sample p13n_sql_conf.txt to see how to connect to a Microsoft SQL Server database using Sun’s jdbc:odbc bridge and the ODBC driver included with Microsoft Windows. However, you can use any database with a jdbc driver.

            DbDriver: sun.jdbc.odbc.JdbcOdbcDriver
            DbURL: jdbc:odbc:Driver={SQL Server};server=
        <my_sql_server>;database=<my_sql_database>
            DbMngName: <my_username>
            DbMngPwd: <my_encoded_password>

            SearchStatement: SELECT * FROM <my_sql_table> 
        WHERE <my_dns_fieldname> = %%DNS

            Field_Name_0: <my_devicename_fieldname>
            Field_RWebParamName_0: deviceName
            Field_TranslationClass_0:

The variables used in this sample are defined in the following table.

    Variable
    Description
    my_sql_server
    The name of the database server.
    my_sql_database
    The SQL Server database name.
    my_username
    The SQL Server login user.
    my_encoded_password
    The Base64 encoded SQL Server login password.
    The database password is stored as a Base64 encoded string. If you do not have a Base64 encoder tool, you can easily find one by searching the web for "base64 encoder." Once you have obtained a Base64 encoder, encode your database password and then paste the results into the p13n_sql_conf.txt file.

    my_sql_table
    The SQL Server table name.
    my_dns_fieldname
    The field in your table containing the client DNS names.
    my_devicename_fieldname
    The field in your table containing the corresponding devicenames.
  1. To make the jdbc driver available to the Reflection Server, place the driver (jar file) in this folder: <install path>\ReflectionServer\jakarta-tomcat\webapps\rweb\WEB-INF\lib.
  2. Restart your Reflection Server. The Reflection Server must be restarted whenever the PropertyDS.xml or p13n_sql_conf.txt files are updated.
Related Technical Notes
1807 Using the Personalization Feature in Reflection for the Web

Did this technical note answer your question?

Yes    No    Somewhat     Not sure yet

Additional comments about this tech note:

Need further help? For technical support, please contact Support.