8
Install instructions go here.
11
You will need both the PAM headers and the MySQL 5.5 headers and corresponding `mysql_config` binary available on your system.
13
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.
15
For getting a copy of the latest development bzr tree: ::
17
$ bzr branch lp:percona-pam-for-mysql
19
If you are building from bzr, you will need to generate the configure script: ::
23
You do not need to run `bootstrap` if you are using a source tarball.
25
You then need to build the plugin: ::
30
To install, you can simply run (as root or using sudo or similar): ::
34
Installing server-side plugin
35
=============================
37
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: ::
39
$ mysql_config --plugindir
41
Make sure that after installed, the library has got the appropiate permissions (file execution is required).
43
Most packages should do this for you, so this is likely only required with the binary tarballs.
45
In order to load the plugin into the working server, issue the following command: ::
47
mysql> INSTALL PLUGIN auth_pam_server SONAME 'auth_pam.so';
50
You can now create a PAM configuration for the MySQL server and create users that are authenticated by PAM.