-
Notifications
You must be signed in to change notification settings - Fork 5
/
README.scripts
50 lines (39 loc) · 1.53 KB
/
README.scripts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Introduction
============
The first support for any kind of importable SQL-Dumps was introduced
in version 0.5.0 of 'pppd-sql' to simplify the installation process.
Which empty SQL-Dumps are currently included?
=============================================
The list below includes a list of included empty SQL-Dumps and an
example how to import them. All dumps are using UTF-8 as charset
encoding.
* MySQL
- File = ppp-login-mysql.sql
- Command = mysql -u root -p < ppp-login-mysql.sql
* PostgreSQL
- File = ppp-login-postgresql.sql
- Command = psql -U root -d postgres -f ppp-login-postgresql.sql
The result will be a database with the name 'ppp' and one table 'login'.
* login
- id
contains auto increment value.
- username
contains the username of the tunnel client.
- password
contains the password of the tunnel client.
- status
contains the login status of the client.
- clientip
contains the client ip address for the connection.
- serverip
contains the server ip address for the connection.
Which permissions are required for the SQL User?
================================================
The list below includes a bunch of commands which should be executed at
the SQL-Server to give the user the required privileges.
* MySQL
- GRANT SELECT, UPDATE ON
ppp.login TO '<username>'@'<ip>' IDENTIFIED BY '<password>'
* PostgreSQL
- CREATE USER '<username>' WITH PASSWORD '<password>'
- GRANT SELECT, UPDATE ON login TO '<username>'