Skip to content

Commit 6636fa8

Browse files
author
Till Brehm
committed
Merge branch 'master' into 'master'
various fix fix ipv6 auth compatibility for `attempts_login` table and `auth.log` file (Now ipv6 is supported for attempts login verification and log file (which can be used by fail2ban unstable)) fix XMPP correct nameserver server_id for DNS RR creation/modification fix XMPP correct Jabber ID field in XMPP Account page fix XMPP anonymous -REVERT fix Let's Encrypt web domain alias support See merge request !486
2 parents 5af9425 + 7866156 commit 6636fa8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

interface/web/login/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
if(!preg_match("/^.{1,256}$/i", $_POST['password'])) $error = $app->lng('pw_error_length');
6464

6565
//** importing variables
66-
$ip = ip2long($_SERVER['REMOTE_ADDR']);
66+
$ip = md5($_SERVER['REMOTE_ADDR']);
6767
$username = $_POST['username'];
6868
$password = $_POST['password'];
6969
$loginAs = false;
@@ -262,7 +262,7 @@
262262
$app->plugin->raiseEvent('login', $this);
263263

264264
//* Save successfull login message to var
265-
$authlog = 'Successful login for user \''. $username .'\' from '. long2ip($ip) .' at '. date('Y-m-d H:i:s');
265+
$authlog = 'Successful login for user \''. $username .'\' from '. $_SERVER['REMOTE_ADDR'] .' at '. date('Y-m-d H:i:s');
266266
$authlog_handle = fopen($conf['ispconfig_log_dir'].'/auth.log', 'a');
267267
fwrite($authlog_handle, $authlog ."\n");
268268
fclose($authlog_handle);
@@ -300,7 +300,7 @@
300300

301301
$app->plugin->raiseEvent('login_failed', $this);
302302
//* Save failed login message to var
303-
$authlog = 'Failed login for user \''. $username .'\' from '. long2ip($ip) .' at '. date('Y-m-d H:i:s');
303+
$authlog = 'Failed login for user \''. $username .'\' from '. $_SERVER['REMOTE_ADDR'] .' at '. date('Y-m-d H:i:s');
304304
$authlog_handle = fopen($conf['ispconfig_log_dir'].'/auth.log', 'a');
305305
fwrite($authlog_handle, $authlog ."\n");
306306
fclose($authlog_handle);

interface/web/mail/list/xmpp_user.list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* Suchfelder
4848
*****************************************************/
4949

50-
$liste["item"][] = array( 'field' => "JID",
50+
$liste["item"][] = array( 'field' => "jid",
5151
'datatype' => "VARCHAR",
5252
'filters' => array( 0 => array( 'event' => 'SHOW',
5353
'type' => 'IDNTOUTF8')

interface/web/mail/xmpp_domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ function onAfterUpdate() {
402402
// $this->desyncMailusers($this->dataRecord['domain']);
403403
// Update DNS Records
404404
// TODO: Update gets only triggered from main form. WHY?
405-
$soa = $app->db->queryOneRecord("SELECT id AS zone, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other FROM dns_soa WHERE active = 'Y' AND `origin` = ?", $this->dataRecord['domain'].'.');
405+
$soa = $app->db->queryOneRecord("SELECT id AS zone, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other, server_id FROM dns_soa WHERE active = 'Y' AND `origin` = ?", $this->dataRecord['domain'].'.');
406406
if ( isset($soa) && !empty($soa) ) $this->update_dns($this->dataRecord, $soa);
407407
}
408408

server/conf/metronome_conf_host.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ VirtualHost "{tmpl_var name='domain'}"
5959
};
6060
</tmpl_if>
6161

62-
<tmpl_if name='use_proxy' op='==' value='true'>
62+
<tmpl_if name='use_anon_host' op='==' value='true'>
6363
VirtualHost "anon.{tmpl_var name='domain'}"
6464
enabled = true;
6565
authentication = "anonymous";

0 commit comments

Comments
 (0)