Skip to content

Commit 6d7634e

Browse files
committed
Fix dovecot auth bug, enable special characters for password and fix a dns issue. Thanks to @HueyGeek!
1 parent 2e9512f commit 6d7634e

File tree

7 files changed

+9
-4
lines changed

7 files changed

+9
-4
lines changed

bin/v-rebuild-dns-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if [ -e '/etc/bind/named.conf' ]; then
6161
fi
6262

6363
# Deleting old user's zone
64-
sed -i "/\/$user\/conf\/dns\/$domain/d" $dns_conf
64+
sed -i "/\/$user\/conf\/dns\/$domain.db\"/d" $dns_conf
6565

6666
# Updating zone serial
6767
if [ "$update_serial" != 'no' ]; then
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
disable_plaintext_auth = no
2+
auth_username_format = %u
23
auth_verbose = yes
34
auth_mechanisms = plain login
45
!include auth-passwdfile.conf.ext
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
disable_plaintext_auth = no
2+
auth_username_format = %u
23
auth_verbose = yes
34
auth_mechanisms = plain login
45
!include auth-passwdfile.conf.ext
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
disable_plaintext_auth = no
2+
auth_username_format = %u
23
auth_verbose = yes
34
auth_mechanisms = plain login
45
!include auth-passwdfile.conf.ext
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
disable_plaintext_auth = no
2+
auth_username_format = %u
23
auth_verbose = yes
34
auth_mechanisms = plain login
45
!include auth-passwdfile.conf.ext
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
disable_plaintext_auth = no
2+
auth_username_format = %u
23
auth_verbose = yes
34
auth_mechanisms = plain login
45
!include auth-passwdfile.conf.ext

web/edit/server/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
$v_backup_host = escapeshellarg($_POST['v_backup_host']);
274274
$v_backup_type = escapeshellarg($_POST['v_backup_type']);
275275
$v_backup_username = escapeshellarg($_POST['v_backup_username']);
276-
$v_backup_password = escapeshellarg($_POST['v_backup_password']);
276+
$v_backup_password = escapeshellcmd($_POST['v_backup_password']);
277277
$v_backup_bpath = escapeshellarg($_POST['v_backup_bpath']);
278278
exec (HESTIA_CMD."v-add-backup-host '". $v_backup_type ."' '". $v_backup_host ."' '". $v_backup_username ."' '". $v_backup_password ."' '". $v_backup_bpath ."'", $output, $return_var);
279279
check_return_code($return_var,$output);
@@ -298,7 +298,7 @@
298298
$v_backup_host = escapeshellarg($_POST['v_backup_host']);
299299
$v_backup_type = escapeshellarg($_POST['v_backup_type']);
300300
$v_backup_username = escapeshellarg($_POST['v_backup_username']);
301-
$v_backup_password = escapeshellarg($_POST['v_backup_password']);
301+
$v_backup_password = escapeshellcmd($_POST['v_backup_password']);
302302
$v_backup_bpath = escapeshellarg($_POST['v_backup_bpath']);
303303
exec (HESTIA_CMD."v-add-backup-host '". $v_backup_type ."' '". $v_backup_host ."' '". $v_backup_username ."' '". $v_backup_password ."' '". $v_backup_bpath ."'", $output, $return_var);
304304
check_return_code($return_var,$output);
@@ -320,7 +320,7 @@
320320
$v_backup_host = escapeshellarg($_POST['v_backup_host']);
321321
$v_backup_type = escapeshellarg($_POST['v_backup_type']);
322322
$v_backup_username = escapeshellarg($_POST['v_backup_username']);
323-
$v_backup_password = escapeshellarg($_POST['v_backup_password']);
323+
$v_backup_password = escapeshellcmd($_POST['v_backup_password']);
324324
$v_backup_bpath = escapeshellarg($_POST['v_backup_bpath']);
325325
exec (HESTIA_CMD."v-add-backup-host '". $v_backup_type ."' '". $v_backup_host ."' '". $v_backup_username ."' '". $v_backup_password ."' '". $v_backup_bpath ."'", $output, $return_var);
326326
check_return_code($return_var,$output);

0 commit comments

Comments
 (0)