1 |
auth-mysql (c) 2005 by Torben H. Nielsen |
2 |
|
3 |
this is a openvpn authentication plugin, which reads the user info from a |
4 |
mysql database. |
5 |
|
6 |
For this plugin, please use the table structure as defined in vpnauth.sql. |
7 |
|
8 |
The plugin can be configured with the following parameters, which describes |
9 |
how the plugin should connect to mysql (with default values in parenthesis) |
10 |
- host (localhost) |
11 |
- username (vpnauth) //This user should have select and update rights on the |
12 |
table |
13 |
- password (vpnauth) |
14 |
- db (vpnauth) |
15 |
- table (vpnauth) |
16 |
- port (3306) |
17 |
|
18 |
|
19 |
Usage examples: |
20 |
;connect with the default values: |
21 |
plugin /usr/lib/openvpn/auth-mysql.so |
22 |
|
23 |
;Override some of the values; |
24 |
plugin /usr/lib/openvpn/auth-mysql.so "host=mysqlserver01 password=secret" |