Installing Percona PAM Authentication Plugin for MySQL

Compiling from Source

You will need both the PAM headers and the MySQL 5.5 headers and corresponding mysql_config binary available on your system.

If you are not using one of the pre-built binary packages, you will need to compile the plugin from source. You can either use a source tarball or the source repository.

For getting a copy of the latest development bzr tree:

$ bzr branch lp:percona-pam-for-mysql

If you are building from bzr, you will need to generate the configure script:

$ ./bootstrap

You do not need to run bootstrap if you are using a source tarball.

You then need to build the plugin:

$ ./configure
$ make

To install, you can simply run (as root or using sudo or similar):

$ make install

Installing server-side plugin

The shared library that holds the plugin, auth_pam.so, needs to be stored in the plugindir directory of mysql. You can get this value via the command:

$ mysql_config --plugindir

Make sure that after installed, the library has got the appropiate permissions (file execution is required).

Most packages should do this for you, so this is likely only required with the binary tarballs.

In order to load the plugin into the working server, issue the following command:

mysql> INSTALL PLUGIN auth_pam SONAME 'auth_pam.so';

You can now create a PAM configuration for the MySQL server and create users that are authenticated by PAM.

Percona PAM authentication plugin For MySQL
Call Us
+1-888-316-9775 (USA - Sales)
+1-208-473-2904 (USA - Sales)
+44-208-133-0309 (UK - Sales)
0-800-051-8984 (UK - Sales)
0-800-181-0665 (GER - Sales)
+1-877-862-4316 (Emergency)
+1-855-55TRAIN (Training)
+1-925-271-5054 (Training)

Table Of Contents

Previous topic

About Percona PAM Authentication Plugin for MySQL

Next topic

Percona PAM authentication plugin for MySQL User Manual

This Page



© Copyright 2012, Percona Inc.
Except where otherwise noted, this documentation is licensed under the following license:
CC Attribution-ShareAlike 2.0 Generic
Created using Sphinx 1.1.3.
This documentation is developed in Launchpad as part of the Percona PAM authentication plugin For MySQL source code.
If you spotted innacuracies, errors, don't understood it or you think something is missing or should be improved, please file a bug.
]]>