MySQL

This chapter contains an example of a basic Wheel Fudo PAM configuration, to monitor SQL queries to a remote MySQL database server.

In this scenario, the user connects to a MySQL database using individual login and password. When establishing the connection with the remote server, Wheel Fudo PAM substitutes the login and the password with the previously defined values: root/password (authorization modes are described in the User authorization modes section).

../../_images/quickstart_overview_mysql.png

Prerequisites

The following description assumes that the system has been already initiated. For more information on the initiation procedure refer to the System initiation topic.

Configuration

../../_images/data_modeling1.png

Adding a server

  1. Select Management > Servers.
  2. Click Add.
  1. Provide essential configuration parameters:
Parameter Value
Name mysql_test
Blocked fail
Protocol MySQL
Anonymous fail
Description MySQL server
Permissions  
Granted users fail
Destination host  
Address 10.0.35.52
Port 3306
Proxy  
Mode proxy
Local address 10.0.40.50
Port 3306
Bind address Any
  1. Click Save.

Adding a user

  1. Select Management > Users.
  2. Click Add.
  1. Provide essential user information:
Parameter Value
Login john_smith
Blocked fail
Account validity Indefinite
Role user
Preferred language English
Full name John Smith
Email john@smith.com
Organization fail
Phone fail
AD Domain fail
LDAP Base fail
Permissions  
Granted users fail
Connections  
Connections fail
Authentication  
Type Password
Password john11
Repeat password john11
  1. Click Save.

Adding a connection

  1. Select Management > Connections to access the connections configuration page.
  1. Click the Add button.
  2. Provide connection details:
Parameter Value
Name mysql
Blocked fail
Notifications fail
Users john_smith
Sessions recording Complete
OCR sessions fail
Delete session data after 10 days
Protocol functionality  
RDP Functionality default settings
SSH Functionality default settings
VNC Functionality default settings
Permissions  
Granted users fail
Servers  
Server mysql_test
Policy fail
Replace user ok admin
Replace secret ok Replace with password
Password password
Repeat password password
  1. Click Save.

Establishing connection with a MySQL database

  1. Launch a command line interface client.
  2. Enter mysql -h 10.0.40.50 -u john_smith -p, to connect to the database server.
  3. Enter the user’s password.
../../_images/mysql_connect.png
  1. Continue browsing the database contents using SQL queries.

Viewing user session

  1. Open a web browser and go to the Wheel Fudo PAM administration page.
  2. Enter user login and password to log in to Wheel Fudo PAM administration panel.
  1. Select Management > Sessions.
  2. Click Active.
  3. Find John Smith’s session and click i.
../../_images/mysql_ongoing.png ../../_images/player_mysql_session.png

Related topics: