

Installation and Upgrade Guides › Policy Server Installation Guide › Configuring SiteMinder Data Stores in a Relational Database › Configure a MySQL Policy Store
Configure a MySQL Policy Store
A MySQL policy store can also function as:
Using a single database simplifies administration tasks. The following sections provide instruction on how to configure a single database server.
Gather Database Information
Gather the following information before configuring the policy store or any other type of SiteMinder data store:
- Database host—Identify the name of the database host system.
- Database name—Identify the name of the database instance that is to function as the policy store or data store.
- Database port—Identify the port on which the database is listening.
- Administrator account—Identify the login ID of an administrator account with permission to manage objects in the database.
- Administrator password —Identify the password for the administrator account.
How to Configure the Policy Store
Complete the following procedures to configure MySQL Server as a policy store.
Note: Be sure that you have gathered the required database information before beginning. Some of the following procedures require this information.
- Be sure that MySQL is installed using the default character set (Latin1). If MySQL was not installed using the default character set, reinstall MySQL before configuring the SiteMinder data store.
- Be sure that the MySQL database that is to function as the policy store is accessible from the Policy Server host system.
- Use the vendor–specific user interface to create the database instance for the SiteMinder data store.
- Create the SiteMinder schema.
- Configure a MySQL data source for SiteMinder.
- (Windows) Create a MySQL data source.
- (UNIX) Create a MySQL data source on UNIX systems.
- (UNIX) Configure the MySQL wire protocol driver.
- Point the Policy Server to the database.
- Set the SiteMinder superuser password.
- Import the policy store data definitions.
- Import the default policy store objects.
- Restart the Policy Server.
- Prepare for the Administrative UI registration.
Create the SiteMinder Schema
You create the SiteMinder schema so that the MySQL database can store the policy, key, and audit logging information.
Follow these steps:
- Start the Query Browser and log in as the person who administers the Policy Server database.
- Select the database instance from the database list.
- Navigate to the following location:
siteminder_home\db\tier2\MySQL.
- siteminder_home
-
Specifies the Policy Server installation path.
- Open sm_mysql_ps.sql in a text editor and copy the contents of the entire file.
- Locate the following lines:
DROP FUNCTION IF EXISTS `databaseName`.`getdate` $$
CREATE FUNCTION `databaseName`.`getdate` () RETURNS DATE
- Replace each instance of 'databaseName' with the name of the database functioning as the policy store.
- Copy the contents of the entire file.
- Paste the file contents into a query and execute the query.
The policy and key store schema is added to the database.
- Navigate to the following location:
siteminder_home\xps\db\Tier2DirSupport\MySQL
- Open the following file in a text editor and copy the contents of the entire file:
MySQL.sql
- Paste the schema from MySQL.sql into the query, and execute the query.
The policy store schema is extended.
- Repeat steps three and four to use the policy store as an audit logging database. Use the following schema file:
sm_mysql_logs.sql
The database can store SiteMinder data.
Note: You are not required to configure the policy store to store more SiteMinder data. You can configure individual databases to function as a separate audit log database, key store, and session store.
Copyright © 2012 CA Technologies.
All rights reserved.
 
|
|