1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 07:43:13 +02:00

Mention password hashing in the example.conf itself.

Suggested by rafaelgrether in https://bugs.unrealircd.org/view.php?id=6303
This commit is contained in:
Bram Matthys
2023-07-15 08:58:57 +02:00
parent 5688825ebd
commit b3995f48ff
5 changed files with 49 additions and 5 deletions
+12 -1
View File
@@ -156,7 +156,18 @@ allow {
oper bobsmith {
class opers;
mask *@*;
password "test";
/* Technically you can put oper passwords in plaintext in the conf
* but this is HIGHLY DISCOURAGED. Instead, on *NIX in the shell run:
* ./unrealircd mkpasswd
* ...to generate a password hash and paste the result here:
*/
password "$argon2id..etc..";
/* See https://www.unrealircd.org/docs/Authentication_types for
* more information, including even better authentication types
* such as 'certfp', and how to generate hashes on Windows.
*/
/* Oper permissions are defined in an 'operclass' block.
* See https://www.unrealircd.org/docs/Operclass_block
* UnrealIRCd ships with a number of default blocks, see
+12 -1
View File
@@ -145,7 +145,18 @@ allow {
oper bobsmith {
class opers;
mask *@*;
password "test";
/* Technically you can put oper passwords in plaintext in the conf
* but this is HIGHLY DISCOURAGED. Instead, on *NIX in the shell run:
* ./unrealircd mkpasswd
* ...to generate a password hash and paste the result here:
*/
password "$argon2id..etc..";
/* See https://www.unrealircd.org/docs/Authentication_types for
* more information, including even better authentication types
* such as 'certfp', and how to generate hashes on Windows.
*/
/* Los permisos de operación se definen en un bloque 'operclass'.
* Ver https://www.unrealircd.org/docs/Operclass_block
* UnrealIRCd se envía con una serie de bloques predeterminados, consulte
+12 -1
View File
@@ -158,7 +158,18 @@ allow {
oper bobsmith {
class opers;
mask *@*;
password "test";
/* Technically you can put oper passwords in plaintext in the conf
* but this is HIGHLY DISCOURAGED. Instead, on *NIX in the shell run:
* ./unrealircd mkpasswd
* ...to generate a password hash and paste the result here:
*/
password "$argon2id..etc..";
/* See https://www.unrealircd.org/docs/Authentication_types for
* more information, including even better authentication types
* such as 'certfp', and how to generate hashes on Windows.
*/
/* Les permissions Oper sont définies dans un bloc 'operclass'.
* Voir https://www.unrealircd.org/docs/Operclass_block
* UnrealIRCd est fourni avec des classes par défaut, voir la doc
+12 -1
View File
@@ -157,7 +157,18 @@ allow {
oper bobsmith {
class opers;
mask *@*;
password "test";
/* Technically you can put oper passwords in plaintext in the conf
* but this is HIGHLY DISCOURAGED. Instead, on *NIX in the shell run:
* ./unrealircd mkpasswd
* ...to generate a password hash and paste the result here:
*/
password "$argon2id..etc..";
/* See https://www.unrealircd.org/docs/Authentication_types for
* more information, including even better authentication types
* such as 'certfp', and how to generate hashes on Windows.
*/
/* Oper izinleri bir "operclass 'bloğunda tanımlanır.
* Görmeniz için: https://www.unrealircd.org/docs/Operclass_block
* UnrealIRCd varsayılan bloklar makalesi için,
+1 -1
View File
@@ -4222,7 +4222,7 @@ int _test_oper(ConfigFile *conf, ConfigEntry *ce)
if (ce->value && cep->value &&
!strcmp(ce->value, "bobsmith") &&
!strcmp(cep->value, "test"))
(!strcmp(cep->value, "test") || !strcmp(cep->value, "$argon2id..etc..")))
{
config_error("%s:%i: please change the the name and password of the "
"default 'bobsmith' oper block",