You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/4/modules/sqlauth.yml
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ configuration:
27
27
required: false
28
28
default: md5,sha256
29
29
description: |-
30
-
A comma-delimited list of hash algorithms to check the password against.
30
+
*Deprecated!* A comma-delimited list of hash algorithms to check the password against.
31
31
- name: kdf
32
32
type: Text
33
33
required: false
@@ -61,37 +61,38 @@ configuration:
61
61
$dhost | The public hostname of the connecting user.
62
62
$duser | The public username of the connecting user.
63
63
$host | The real hostname of the connecting user.
64
-
$md5pass | An MD5 hash of the password sent with `/PASS` by the connecting user (requires [the md5 module](/4/modules/md5)).
64
+
$md5pass | *Deprecated!* An MD5 hash of the password sent with `/PASS` by the connecting user (requires [the md5 module](/4/modules/md5)).
65
65
$nick | The nickname of the connecting user.
66
-
$pass | The password sent with `/PASS` by the connecting user.
66
+
$pass | *Deprecated!* The password sent with `/PASS` by the connecting user.
67
67
$real | The real name of the connecting user.
68
68
$server | The name of the server the connecting user connected to.
69
69
$sid | The unique identifier of the server the connecting user connected to.
70
-
$sha256pass | A SHA-256 hash of the password sent with `/PASS` by the connecting user (requires [the sha2 module](/4/modules/sha2)).
70
+
$sha256pass | *Deprecated!* A SHA-256 hash of the password sent with `/PASS` by the connecting user (requires [the sha2 module](/4/modules/sha2)).
71
71
$user | The real username of the connecting user.
72
72
$uuid | The UUID of the connecting user.
73
73
74
74
example: |-
75
-
Checks the password using the existence of a row returned from the database:
75
+
Checks the password by comparing against a database field specified in the config:
76
76
77
77
```xml
78
-
<sqlauth hash="sha256"
78
+
<sqlauth column="password"
79
+
kdf="bcrypt"
79
80
dbid="sqlauth"
80
81
killreason="Access denied"
81
-
query="SELECT * FROM users WHERE name='$nick' AND password='$sha256pass' LIMIT 1"
82
+
query="SELECT * FROM users WHERE name='$nick' LIMIT 1"
82
83
verbose="no">
83
84
```
84
85
85
-
Checks the password by comparing against a database field specified in the config:
86
+
*Deprecated!* Checks the password using the existence of a row returned from the database:
86
87
87
88
```xml
88
-
<sqlauth column="password"
89
-
kdf="bcrypt"
89
+
<sqlauth hash="sha256"
90
90
dbid="sqlauth"
91
91
killreason="Access denied"
92
-
query="SELECT * FROM users WHERE name='$nick' LIMIT 1"
92
+
query="SELECT * FROM users WHERE name='$nick' AND password='$sha256pass' LIMIT 1"
93
93
verbose="no">
94
94
```
95
+
95
96
- name: sqlexemption
96
97
description: |-
97
98
The `<sqlexemption>` tag defines nick!user@host or nick!user@ip/cidr mask which are exempt from the authentication requirement. This tag can be defined as many times as required.
0 commit comments