NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/web/inc/functions.auth.inc.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

functions.auth.inc.php on main
Author Date Commit Line Code
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
2
function check_login($user, $pass, $extra = null) {
Open commit View diff
2 function check_login($user, $pass, $extra = null) {
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
3
  global $pdo;
Open commit View diff
3 global $pdo;
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
4
  global $redis;
Open commit View diff
4 global $redis;
FreddleSpl0it almost 2 years ago f9304dc

[Web] check if $iam_provider is null on ldap_mbox_login

Full commit hash
f9304dcd9befcbcae3c1ffdbd4c9cfecad722f2b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
5
Open commit View diff
5
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
6
  $is_internal = $extra['is_internal'];
Open commit View diff
6 $is_internal = $extra['is_internal'];
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
7
  $role = $extra['role'];
Open commit View diff
7 $role = $extra['role'];
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
8
  $extra['service'] = !isset($extra['service']) ? 'NONE' : $extra['service'];
Open commit View diff
8 $extra['service'] = !isset($extra['service']) ? 'NONE' : $extra['service'];
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
9
Open commit View diff
9
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
10
  // Try validate admin
Open commit View diff
10 // Try validate admin
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
11
  if (!isset($role) || $role == "admin") {
Open commit View diff
11 if (!isset($role) || $role == "admin") {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
12
    $result = admin_login($user, $pass);
Open commit View diff
12 $result = admin_login($user, $pass);
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
13
    if ($result !== false){
Open commit View diff
13 if ($result !== false){
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
14
      return $result;
Open commit View diff
14 return $result;
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
15
    }
Open commit View diff
15 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
16
  }
Open commit View diff
16 }
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
17
Open commit View diff
17
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
18
  // Try validate domain admin
Open commit View diff
18 // Try validate domain admin
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
19
  if (!isset($role) || $role == "domain_admin") {
Open commit View diff
19 if (!isset($role) || $role == "domain_admin") {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
20
    $result = domainadmin_login($user, $pass);
Open commit View diff
20 $result = domainadmin_login($user, $pass);
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
21
    if ($result !== false) {
Open commit View diff
21 if ($result !== false) {
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
22
      return $result;
Open commit View diff
22 return $result;
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
23
    }
Open commit View diff
23 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
24
  }
Open commit View diff
24 }
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
25
Open commit View diff
25
FreddleSpl0it over 1 year ago 62f816e

[Web] Check app password before user password on web login

Full commit hash
62f816e64a964a0eb3c9243595b6ffedff897cc6
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
26
Open commit View diff
26
same change 62f816e

[Web] Check app password before user password on web login

Full commit hash
62f816e64a964a0eb3c9243595b6ffedff897cc6
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
27
  // Try validate app password
Open commit View diff
27 // Try validate app password
same change 62f816e

[Web] Check app password before user password on web login

Full commit hash
62f816e64a964a0eb3c9243595b6ffedff897cc6
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
28
  if (!isset($role) || $role == "app") {
Open commit View diff
28 if (!isset($role) || $role == "app") {
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
29
    $result = apppass_login($user, $pass, $extra);
Open commit View diff
29 $result = apppass_login($user, $pass, $extra);
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
30
    if ($result !== false) {
Open commit View diff
30 if ($result !== false) {
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
31
      $real_rip = ($_SERVER['HTTP_X_REAL_IP'] ?? $_SERVER['REMOTE_ADDR']);
Open commit View diff
31 $real_rip = ($_SERVER['HTTP_X_REAL_IP'] ?? $_SERVER['REMOTE_ADDR']);
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
32
      set_sasl_log($user, $real_rip, $extra['service'], $pass);
Open commit View diff
32 set_sasl_log($user, $real_rip, $extra['service'], $pass);
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
33
      return $result;
Open commit View diff
33 return $result;
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
34
    }
Open commit View diff
34 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
35
  }
Open commit View diff
35 }
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
36
Open commit View diff
36
FreddleSpl0it over 1 year ago 62f816e

[Web] Check app password before user password on web login

Full commit hash
62f816e64a964a0eb3c9243595b6ffedff897cc6
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
37
  // Try validate user
Open commit View diff
37 // Try validate user
same change 62f816e

[Web] Check app password before user password on web login

Full commit hash
62f816e64a964a0eb3c9243595b6ffedff897cc6
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
38
  if (!isset($role) || $role == "user") {
Open commit View diff
38 if (!isset($role) || $role == "user") {
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
39
    $result = user_login($user, $pass, $extra);
Open commit View diff
39 $result = user_login($user, $pass, $extra);
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
40
    if ($result !== false) {
Open commit View diff
40 if ($result !== false) {
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
41
      $real_rip = ($_SERVER['HTTP_X_REAL_IP'] ?? $_SERVER['REMOTE_ADDR']);
Open commit View diff
41 $real_rip = ($_SERVER['HTTP_X_REAL_IP'] ?? $_SERVER['REMOTE_ADDR']);
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
42
      set_sasl_log($user, $real_rip, $extra['service']);
Open commit View diff
42 set_sasl_log($user, $real_rip, $extra['service']);
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
43
      return $result;
Open commit View diff
43 return $result;
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
44
    }
Open commit View diff
44 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
45
  }
Open commit View diff
45 }
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
46
Open commit View diff
46
FreddleSpl0it over 3 years ago dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
47
  // skip log and only return false if it's an internal request
Open commit View diff
47 // skip log and only return false if it's an internal request
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
48
  if ($is_internal == true) return false;
Open commit View diff
48 if ($is_internal == true) return false;
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
49
Open commit View diff
49
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
50
  if (!isset($_SESSION['ldelay'])) {
Open commit View diff
50 if (!isset($_SESSION['ldelay'])) {
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
51
    $_SESSION['ldelay'] = "0";
Open commit View diff
51 $_SESSION['ldelay'] = "0";
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
52
    $redis->publish("F2B_CHANNEL", "mailcow UI: Invalid password for " . $user . " by " . $_SERVER['REMOTE_ADDR']);
Open commit View diff
52 $redis->publish("F2B_CHANNEL", "mailcow UI: Invalid password for " . $user . " by " . $_SERVER['REMOTE_ADDR']);
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
53
    error_log("mailcow UI: Invalid password for " . $user . " by " . $_SERVER['REMOTE_ADDR']);
Open commit View diff
53 error_log("mailcow UI: Invalid password for " . $user . " by " . $_SERVER['REMOTE_ADDR']);
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
54
  }
Open commit View diff
54 }
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
55
  elseif (!isset($_SESSION['mailcow_cc_username'])) {
Open commit View diff
55 elseif (!isset($_SESSION['mailcow_cc_username'])) {
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
56
    $_SESSION['ldelay'] = $_SESSION['ldelay']+0.5;
Open commit View diff
56 $_SESSION['ldelay'] = $_SESSION['ldelay']+0.5;
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
57
    $redis->publish("F2B_CHANNEL", "mailcow UI: Invalid password for " . $user . " by " . $_SERVER['REMOTE_ADDR']);
Open commit View diff
57 $redis->publish("F2B_CHANNEL", "mailcow UI: Invalid password for " . $user . " by " . $_SERVER['REMOTE_ADDR']);
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
58
    error_log("mailcow UI: Invalid password for " . $user . " by " . $_SERVER['REMOTE_ADDR']);
Open commit View diff
58 error_log("mailcow UI: Invalid password for " . $user . " by " . $_SERVER['REMOTE_ADDR']);
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
59
  }
Open commit View diff
59 }
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
60
  $_SESSION['return'][] =  array(
Open commit View diff
60 $_SESSION['return'][] = array(
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
61
    'type' => 'danger',
Open commit View diff
61 'type' => 'danger',
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
62
    'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
62 'log' => array(__FUNCTION__, $user, '*'),
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
63
    'msg' => 'login_failed'
Open commit View diff
63 'msg' => 'login_failed'
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
64
  );
Open commit View diff
64 );
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
65
Open commit View diff
65
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
66
  sleep($_SESSION['ldelay']);
Open commit View diff
66 sleep($_SESSION['ldelay']);
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
67
  return false;
Open commit View diff
67 return false;
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
68
}
Open commit View diff
68 }
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
69
Open commit View diff
69
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
70
function admin_login($user, $pass){
Open commit View diff
70 function admin_login($user, $pass){
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
71
  global $pdo;
Open commit View diff
71 global $pdo;
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
72
Open commit View diff
72
FreddleSpl0it almost 3 years ago 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
73
  if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
Open commit View diff
73 if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
74
    if (!$is_internal){
Open commit View diff
74 if (!$is_internal){
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
75
      $_SESSION['return'][] =  array(
Open commit View diff
75 $_SESSION['return'][] = array(
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
76
        'type' => 'danger',
Open commit View diff
76 'type' => 'danger',
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
77
        'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
77 'log' => array(__FUNCTION__, $user, '*'),
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
78
        'msg' => 'malformed_username'
Open commit View diff
78 'msg' => 'malformed_username'
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
79
      );
Open commit View diff
79 );
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
80
    }
Open commit View diff
80 }
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
81
    return false;
Open commit View diff
81 return false;
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
82
  }
Open commit View diff
82 }
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
83
Open commit View diff
83
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
84
  $user = strtolower(trim($user));
Open commit View diff
84 $user = strtolower(trim($user));
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
85
  $stmt = $pdo->prepare("SELECT `password`, `attributes` FROM `admin`
Open commit View diff
85 $stmt = $pdo->prepare("SELECT `password`, `attributes` FROM `admin`
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
86
      WHERE `superadmin` = '1'
Open commit View diff
86 WHERE `superadmin` = '1'
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
87
      AND `active` = '1'
Open commit View diff
87 AND `active` = '1'
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
88
      AND `username` = :user");
Open commit View diff
88 AND `username` = :user");
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
89
  $stmt->execute(array(':user' => $user));
Open commit View diff
89 $stmt->execute(array(':user' => $user));
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
90
  $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
90 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
91
Open commit View diff
91
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
92
  // verify password
Open commit View diff
92 // verify password
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
93
  if (verify_hash($row['password'], $pass)) {
Open commit View diff
93 if (verify_hash($row['password'], $pass)) {
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
94
    $admin_attrs = json_decode($row['attributes'], true) ?? [];
Open commit View diff
94 $admin_attrs = json_decode($row['attributes'], true) ?? [];
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
95
Open commit View diff
95
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
96
    // Check force_pw_update
Open commit View diff
96 // Check force_pw_update
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
97
    if (intval($admin_attrs['force_pw_update'] ?? 0) == 1) {
Open commit View diff
97 if (intval($admin_attrs['force_pw_update'] ?? 0) == 1) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
98
      $_SESSION['pending_pw_update'] = true;
Open commit View diff
98 $_SESSION['pending_pw_update'] = true;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
99
    }
Open commit View diff
99 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
100
Open commit View diff
100
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
101
    // check for tfa authenticators
Open commit View diff
101 // check for tfa authenticators
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
102
    $authenticators = get_tfa($user);
Open commit View diff
102 $authenticators = get_tfa($user);
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
103
    if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0) {
Open commit View diff
103 if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0) {
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
104
      // active tfa authenticators found, set pending user login
Open commit View diff
104 // active tfa authenticators found, set pending user login
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
105
      $_SESSION['pending_mailcow_cc_username'] = $user;
Open commit View diff
105 $_SESSION['pending_mailcow_cc_username'] = $user;
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
106
      $_SESSION['pending_mailcow_cc_role'] = "admin";
Open commit View diff
106 $_SESSION['pending_mailcow_cc_role'] = "admin";
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
107
      $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
Open commit View diff
107 $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
108
      unset($_SESSION['ldelay']);
Open commit View diff
108 unset($_SESSION['ldelay']);
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
109
      $_SESSION['return'][] =  array(
Open commit View diff
109 $_SESSION['return'][] = array(
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
110
        'type' => 'info',
Open commit View diff
110 'type' => 'info',
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
111
        'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
111 'log' => array(__FUNCTION__, $user, '*'),
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
112
        'msg' => 'awaiting_tfa_confirmation'
Open commit View diff
112 'msg' => 'awaiting_tfa_confirmation'
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
113
      );
Open commit View diff
113 );
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
114
      return "pending";
Open commit View diff
114 return "pending";
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
115
    } else {
Open commit View diff
115 } else {
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
116
      unset($_SESSION['ldelay']);
Open commit View diff
116 unset($_SESSION['ldelay']);
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
117
      // Reactivate TFA if it was set to "deactivate TFA for next login"
Open commit View diff
117 // Reactivate TFA if it was set to "deactivate TFA for next login"
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
118
      $stmt = $pdo->prepare("UPDATE `tfa` SET `active`='1' WHERE `username` = :user");
Open commit View diff
118 $stmt = $pdo->prepare("UPDATE `tfa` SET `active`='1' WHERE `username` = :user");
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
119
      $stmt->execute(array(':user' => $user));
Open commit View diff
119 $stmt->execute(array(':user' => $user));
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
120
      // Check force_tfa: only force setup if NO TFA exists at all
Open commit View diff
120 // Check force_tfa: only force setup if NO TFA exists at all
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
121
      if (intval($admin_attrs['force_tfa'] ?? 0) == 1 && !tfa_exists($user)) {
Open commit View diff
121 if (intval($admin_attrs['force_tfa'] ?? 0) == 1 && !tfa_exists($user)) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
122
        $_SESSION['pending_tfa_setup'] = true;
Open commit View diff
122 $_SESSION['pending_tfa_setup'] = true;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
123
      }
Open commit View diff
123 }
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
124
      $_SESSION['return'][] =  array(
Open commit View diff
124 $_SESSION['return'][] = array(
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
125
        'type' => 'success',
Open commit View diff
125 'type' => 'success',
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
126
        'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
126 'log' => array(__FUNCTION__, $user, '*'),
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
127
        'msg' => array('logged_in_as', $user)
Open commit View diff
127 'msg' => array('logged_in_as', $user)
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
128
      );
Open commit View diff
128 );
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
129
      return "admin";
Open commit View diff
129 return "admin";
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
130
    }
Open commit View diff
130 }
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
131
  }
Open commit View diff
131 }
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
132
Open commit View diff
132
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
133
  return false;
Open commit View diff
133 return false;
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
134
}
Open commit View diff
134 }
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
135
function domainadmin_login($user, $pass){
Open commit View diff
135 function domainadmin_login($user, $pass){
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
136
  global $pdo;
Open commit View diff
136 global $pdo;
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
137
Open commit View diff
137
FreddleSpl0it almost 3 years ago 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
138
  if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
Open commit View diff
138 if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
139
    if (!$is_internal){
Open commit View diff
139 if (!$is_internal){
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
140
      $_SESSION['return'][] =  array(
Open commit View diff
140 $_SESSION['return'][] = array(
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
141
        'type' => 'danger',
Open commit View diff
141 'type' => 'danger',
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
142
        'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
142 'log' => array(__FUNCTION__, $user, '*'),
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
143
        'msg' => 'malformed_username'
Open commit View diff
143 'msg' => 'malformed_username'
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
144
      );
Open commit View diff
144 );
same change 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
145
    }
Open commit View diff
145 }
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
146
    return false;
Open commit View diff
146 return false;
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
147
  }
Open commit View diff
147 }
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
148
Open commit View diff
148
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
149
  $stmt = $pdo->prepare("SELECT `password`, `attributes` FROM `admin`
Open commit View diff
149 $stmt = $pdo->prepare("SELECT `password`, `attributes` FROM `admin`
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
150
      WHERE `superadmin` = '0'
Open commit View diff
150 WHERE `superadmin` = '0'
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
151
      AND `active`='1'
Open commit View diff
151 AND `active`='1'
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
152
      AND `username` = :user");
Open commit View diff
152 AND `username` = :user");
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
153
  $stmt->execute(array(':user' => $user));
Open commit View diff
153 $stmt->execute(array(':user' => $user));
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
154
  $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
154 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
155
Open commit View diff
155
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
156
  // verify password
Open commit View diff
156 // verify password
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
157
  if (verify_hash($row['password'], $pass) !== false) {
Open commit View diff
157 if (verify_hash($row['password'], $pass) !== false) {
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
158
    $admin_attrs = json_decode($row['attributes'], true) ?? [];
Open commit View diff
158 $admin_attrs = json_decode($row['attributes'], true) ?? [];
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
159
Open commit View diff
159
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
160
    // Check force_pw_update
Open commit View diff
160 // Check force_pw_update
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
161
    if (intval($admin_attrs['force_pw_update'] ?? 0) == 1) {
Open commit View diff
161 if (intval($admin_attrs['force_pw_update'] ?? 0) == 1) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
162
      $_SESSION['pending_pw_update'] = true;
Open commit View diff
162 $_SESSION['pending_pw_update'] = true;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
163
    }
Open commit View diff
163 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
164
Open commit View diff
164
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
165
    // check for tfa authenticators
Open commit View diff
165 // check for tfa authenticators
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
166
    $authenticators = get_tfa($user);
Open commit View diff
166 $authenticators = get_tfa($user);
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
167
    if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0) {
Open commit View diff
167 if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0) {
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
168
      $_SESSION['pending_mailcow_cc_username'] = $user;
Open commit View diff
168 $_SESSION['pending_mailcow_cc_username'] = $user;
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
169
      $_SESSION['pending_mailcow_cc_role'] = "domainadmin";
Open commit View diff
169 $_SESSION['pending_mailcow_cc_role'] = "domainadmin";
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
170
      $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
Open commit View diff
170 $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
171
      unset($_SESSION['ldelay']);
Open commit View diff
171 unset($_SESSION['ldelay']);
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
172
      $_SESSION['return'][] =  array(
Open commit View diff
172 $_SESSION['return'][] = array(
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
173
        'type' => 'info',
Open commit View diff
173 'type' => 'info',
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
174
        'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
174 'log' => array(__FUNCTION__, $user, '*'),
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
175
        'msg' => 'awaiting_tfa_confirmation'
Open commit View diff
175 'msg' => 'awaiting_tfa_confirmation'
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
176
      );
Open commit View diff
176 );
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
177
      return "pending";
Open commit View diff
177 return "pending";
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
178
    }
Open commit View diff
178 }
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
179
    else {
Open commit View diff
179 else {
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
180
      unset($_SESSION['ldelay']);
Open commit View diff
180 unset($_SESSION['ldelay']);
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
181
      // Reactivate TFA if it was set to "deactivate TFA for next login"
Open commit View diff
181 // Reactivate TFA if it was set to "deactivate TFA for next login"
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
182
      $stmt = $pdo->prepare("UPDATE `tfa` SET `active`='1' WHERE `username` = :user");
Open commit View diff
182 $stmt = $pdo->prepare("UPDATE `tfa` SET `active`='1' WHERE `username` = :user");
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
183
      $stmt->execute(array(':user' => $user));
Open commit View diff
183 $stmt->execute(array(':user' => $user));
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
184
      // Check force_tfa: only force setup if NO TFA exists at all
Open commit View diff
184 // Check force_tfa: only force setup if NO TFA exists at all
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
185
      if (intval($admin_attrs['force_tfa'] ?? 0) == 1 && !tfa_exists($user)) {
Open commit View diff
185 if (intval($admin_attrs['force_tfa'] ?? 0) == 1 && !tfa_exists($user)) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
186
        $_SESSION['pending_tfa_setup'] = true;
Open commit View diff
186 $_SESSION['pending_tfa_setup'] = true;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
187
      }
Open commit View diff
187 }
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
188
      $_SESSION['return'][] =  array(
Open commit View diff
188 $_SESSION['return'][] = array(
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
189
        'type' => 'success',
Open commit View diff
189 'type' => 'success',
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
190
        'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
190 'log' => array(__FUNCTION__, $user, '*'),
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
191
        'msg' => array('logged_in_as', $user)
Open commit View diff
191 'msg' => array('logged_in_as', $user)
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
192
      );
Open commit View diff
192 );
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
193
      return "domainadmin";
Open commit View diff
193 return "domainadmin";
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
194
    }
Open commit View diff
194 }
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
195
  }
Open commit View diff
195 }
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
196
Open commit View diff
196
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
197
  return false;
Open commit View diff
197 return false;
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
198
}
Open commit View diff
198 }
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
199
function user_login($user, $pass, $extra = null){
Open commit View diff
199 function user_login($user, $pass, $extra = null){
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
200
  global $pdo;
Open commit View diff
200 global $pdo;
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
201
  global $iam_provider;
Open commit View diff
201 global $iam_provider;
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
202
  global $iam_settings;
Open commit View diff
202 global $iam_settings;
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
203
Open commit View diff
203
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
204
  $is_internal = $extra['is_internal'];
Open commit View diff
204 $is_internal = $extra['is_internal'];
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
205
  $extra['service'] = !isset($extra['service']) ? 'NONE' : $extra['service'];
Open commit View diff
205 $extra['service'] = !isset($extra['service']) ? 'NONE' : $extra['service'];
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
206
Open commit View diff
206
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
207
  if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
Open commit View diff
207 if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
208
    if (!$is_internal){
Open commit View diff
208 if (!$is_internal){
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
209
      $_SESSION['return'][] =  array(
Open commit View diff
209 $_SESSION['return'][] = array(
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
210
        'type' => 'danger',
Open commit View diff
210 'type' => 'danger',
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
211
        'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
211 'log' => array(__FUNCTION__, $user, '*'),
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
212
        'msg' => 'malformed_username'
Open commit View diff
212 'msg' => 'malformed_username'
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
213
      );
Open commit View diff
213 );
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
214
    }
Open commit View diff
214 }
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
215
    return false;
Open commit View diff
215 return false;
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
216
  }
Open commit View diff
216 }
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
217
Open commit View diff
217
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
218
  $stmt = $pdo->prepare("SELECT
Open commit View diff
218 $stmt = $pdo->prepare("SELECT
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
219
      mailbox.*,
Open commit View diff
219 mailbox.*,
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
220
      domain.active AS d_active
Open commit View diff
220 domain.active AS d_active
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
221
      FROM `mailbox`
Open commit View diff
221 FROM `mailbox`
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
222
      INNER JOIN domain on mailbox.domain = domain.domain
Open commit View diff
222 INNER JOIN domain on mailbox.domain = domain.domain
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
223
      WHERE `kind` NOT REGEXP 'location|thing|group'
Open commit View diff
223 WHERE `kind` NOT REGEXP 'location|thing|group'
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
224
        AND `username` = :user");
Open commit View diff
224 AND `username` = :user");
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
225
  $stmt->execute(array(':user' => $user));
Open commit View diff
225 $stmt->execute(array(':user' => $user));
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
226
  $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
226 $row = $stmt->fetch(PDO::FETCH_ASSOC);
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
227
Open commit View diff
227
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
228
  // user does not exist, try call idp login and create user if possible via rest flow
Open commit View diff
228 // user does not exist, try call idp login and create user if possible via rest flow
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
229
  if (!$row){
Open commit View diff
229 if (!$row){
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
230
    $result = false;
Open commit View diff
230 $result = false;
FreddleSpl0it almost 3 years ago 3a4c0c8

fix keycloak mailpassword flow

Full commit hash
3a4c0c84a3e79058750f0786f5fddc42a29e576b
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
231
    if ($iam_settings['authsource'] == 'keycloak' && intval($iam_settings['mailpassword_flow']) == 1){
Open commit View diff
231 if ($iam_settings['authsource'] == 'keycloak' && intval($iam_settings['mailpassword_flow']) == 1){
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
232
      $result = keycloak_mbox_login_rest($user, $pass, array('is_internal' => $is_internal, 'create' => true));
Open commit View diff
232 $result = keycloak_mbox_login_rest($user, $pass, array('is_internal' => $is_internal, 'create' => true));
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
233
    } else if ($iam_settings['authsource'] == 'ldap') {
Open commit View diff
233 } else if ($iam_settings['authsource'] == 'ldap') {
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
234
      $result = ldap_mbox_login($user, $pass, array('is_internal' => $is_internal, 'create' => true));
Open commit View diff
234 $result = ldap_mbox_login($user, $pass, array('is_internal' => $is_internal, 'create' => true));
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
235
    }
Open commit View diff
235 }
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
236
    if ($result !== false){
Open commit View diff
236 if ($result !== false){
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
237
      // double check if mailbox is active
Open commit View diff
237 // double check if mailbox is active
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
238
      $stmt = $pdo->prepare("SELECT * FROM `mailbox`
Open commit View diff
238 $stmt = $pdo->prepare("SELECT * FROM `mailbox`
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
239
      INNER JOIN domain on mailbox.domain = domain.domain
Open commit View diff
239 INNER JOIN domain on mailbox.domain = domain.domain
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
240
      WHERE `kind` NOT REGEXP 'location|thing|group'
Open commit View diff
240 WHERE `kind` NOT REGEXP 'location|thing|group'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
241
        AND `mailbox`.`active`='1'
Open commit View diff
241 AND `mailbox`.`active`='1'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
242
        AND `domain`.`active`='1'
Open commit View diff
242 AND `domain`.`active`='1'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
243
        AND `username` = :user");
Open commit View diff
243 AND `username` = :user");
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
244
      $stmt->execute(array(':user' => $user));
Open commit View diff
244 $stmt->execute(array(':user' => $user));
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
245
      $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
245 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
246
Open commit View diff
246
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
247
      if (!empty($row)) {
Open commit View diff
247 if (!empty($row)) {
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
248
        // check if user has access to service (imap, smtp, pop3, sieve, dav, eas) if service is set
Open commit View diff
248 // check if user has access to service (imap, smtp, pop3, sieve, dav, eas) if service is set
FreddleSpl0it 11 months ago 13f7f98

Prevent user login if protocol access has been disabled

Full commit hash
13f7f9830b056e1a1fe8aee51884323cb5bcebae
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
249
        $row['attributes'] = json_decode($row['attributes'], true);
Open commit View diff
249 $row['attributes'] = json_decode($row['attributes'], true);
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
250
        if ($extra['service'] != 'NONE') {
Open commit View diff
250 if ($extra['service'] != 'NONE') {
same change 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
251
          $key = strtolower($extra['service']) . "_access";
Open commit View diff
251 $key = strtolower($extra['service']) . "_access";
FreddleSpl0it 11 months ago 13f7f98

Prevent user login if protocol access has been disabled

Full commit hash
13f7f9830b056e1a1fe8aee51884323cb5bcebae
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
252
          if (isset($row['attributes'][$key]) && $row['attributes'][$key] != '1') {
Open commit View diff
252 if (isset($row['attributes'][$key]) && $row['attributes'][$key] != '1') {
same change 13f7f98

Prevent user login if protocol access has been disabled

Full commit hash
13f7f9830b056e1a1fe8aee51884323cb5bcebae
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
253
            return false;
Open commit View diff
253 return false;
same change 13f7f98

Prevent user login if protocol access has been disabled

Full commit hash
13f7f9830b056e1a1fe8aee51884323cb5bcebae
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
254
          }
Open commit View diff
254 }
same change 13f7f98

Prevent user login if protocol access has been disabled

Full commit hash
13f7f9830b056e1a1fe8aee51884323cb5bcebae
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
255
        }
Open commit View diff
255 }
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
256
        return true;
Open commit View diff
256 return true;
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
257
      }
Open commit View diff
257 }
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
258
    }
Open commit View diff
258 }
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
259
    clear_session();
Open commit View diff
259 clear_session();
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
260
    return false;
Open commit View diff
260 return false;
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
261
  }
Open commit View diff
261 }
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
262
Open commit View diff
262
FreddleSpl0it 11 months ago 13f7f98

Prevent user login if protocol access has been disabled

Full commit hash
13f7f9830b056e1a1fe8aee51884323cb5bcebae
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
263
  // check if user has access to service (imap, smtp, pop3, sieve) if service is set
Open commit View diff
263 // check if user has access to service (imap, smtp, pop3, sieve) if service is set
FreddleSpl0it over 1 year ago cb47fa4

[Web] Fix force password update at next login

Full commit hash
cb47fa406f10ce929543e3e918c11b985a500ab2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
264
  $row['attributes'] = json_decode($row['attributes'], true);
Open commit View diff
264 $row['attributes'] = json_decode($row['attributes'], true);
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
265
  if ($extra['service'] != 'NONE') {
Open commit View diff
265 if ($extra['service'] != 'NONE') {
same change 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
266
    $key = strtolower($extra['service']) . "_access";
Open commit View diff
266 $key = strtolower($extra['service']) . "_access";
FreddleSpl0it 11 months ago 13f7f98

Prevent user login if protocol access has been disabled

Full commit hash
13f7f9830b056e1a1fe8aee51884323cb5bcebae
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
267
    if (isset($row['attributes'][$key]) && $row['attributes'][$key] != '1') {
Open commit View diff
267 if (isset($row['attributes'][$key]) && $row['attributes'][$key] != '1') {
same change 13f7f98

Prevent user login if protocol access has been disabled

Full commit hash
13f7f9830b056e1a1fe8aee51884323cb5bcebae
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
268
      return false;
Open commit View diff
268 return false;
same change 13f7f98

Prevent user login if protocol access has been disabled

Full commit hash
13f7f9830b056e1a1fe8aee51884323cb5bcebae
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
269
    }
Open commit View diff
269 }
same change 13f7f98

Prevent user login if protocol access has been disabled

Full commit hash
13f7f9830b056e1a1fe8aee51884323cb5bcebae
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
270
  }
Open commit View diff
270 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
271
  switch ($row['authsource']) {
Open commit View diff
271 switch ($row['authsource']) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
272
    case 'keycloak':
Open commit View diff
272 case 'keycloak':
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
273
      // user authsource is keycloak, try using via rest flow
Open commit View diff
273 // user authsource is keycloak, try using via rest flow
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
274
      if (intval($iam_settings['mailpassword_flow']) == 1){
Open commit View diff
274 if (intval($iam_settings['mailpassword_flow']) == 1){
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
275
        $result = keycloak_mbox_login_rest($user, $pass, array('is_internal' => $is_internal));
Open commit View diff
275 $result = keycloak_mbox_login_rest($user, $pass, array('is_internal' => $is_internal));
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
276
        if ($result !== false) {
Open commit View diff
276 if ($result !== false) {
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
277
          // double check if mailbox and domain is active
Open commit View diff
277 // double check if mailbox and domain is active
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
278
          $stmt = $pdo->prepare("SELECT * FROM `mailbox`
Open commit View diff
278 $stmt = $pdo->prepare("SELECT * FROM `mailbox`
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
279
          INNER JOIN domain on mailbox.domain = domain.domain
Open commit View diff
279 INNER JOIN domain on mailbox.domain = domain.domain
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
280
          WHERE `kind` NOT REGEXP 'location|thing|group'
Open commit View diff
280 WHERE `kind` NOT REGEXP 'location|thing|group'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
281
            AND `mailbox`.`active`='1'
Open commit View diff
281 AND `mailbox`.`active`='1'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
282
            AND `domain`.`active`='1'
Open commit View diff
282 AND `domain`.`active`='1'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
283
            AND `username` = :user");
Open commit View diff
283 AND `username` = :user");
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
284
          $stmt->execute(array(':user' => $user));
Open commit View diff
284 $stmt->execute(array(':user' => $user));
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
285
          $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
285 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
286
          if (empty($row)) {
Open commit View diff
286 if (empty($row)) {
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
287
            return false;
Open commit View diff
287 return false;
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
288
          }
Open commit View diff
288 }
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
289
Open commit View diff
289
FreddleSpl0it 4 months ago d1feebf

[Web] Fix LDAP/Keycloak login TypeError - missing JSON decode for attributes

Full commit hash
d1feebf164015a7c62ffdbbe9555424a1b07d402
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
290
          $row['attributes'] = json_decode($row['attributes'], true);
Open commit View diff
290 $row['attributes'] = json_decode($row['attributes'], true);
same change d1feebf

[Web] Fix LDAP/Keycloak login TypeError - missing JSON decode for attributes

Full commit hash
d1feebf164015a7c62ffdbbe9555424a1b07d402
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
291
Open commit View diff
291
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
292
          // check for tfa authenticators
Open commit View diff
292 // check for tfa authenticators
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
293
          $authenticators = get_tfa($user);
Open commit View diff
293 $authenticators = get_tfa($user);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
294
          if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0 && !$is_internal) {
Open commit View diff
294 if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0 && !$is_internal) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
295
            // authenticators found, init TFA flow
Open commit View diff
295 // authenticators found, init TFA flow
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
296
            $_SESSION['pending_mailcow_cc_username'] = $user;
Open commit View diff
296 $_SESSION['pending_mailcow_cc_username'] = $user;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
297
            $_SESSION['pending_mailcow_cc_role'] = "user";
Open commit View diff
297 $_SESSION['pending_mailcow_cc_role'] = "user";
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
298
            $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
Open commit View diff
298 $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
299
            unset($_SESSION['ldelay']);
Open commit View diff
299 unset($_SESSION['ldelay']);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
300
            $_SESSION['return'][] =  array(
Open commit View diff
300 $_SESSION['return'][] = array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
301
              'type' => 'success',
Open commit View diff
301 'type' => 'success',
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
302
              'log' => array(__FUNCTION__, $user, '*', 'Provider: Keycloak'),
Open commit View diff
302 'log' => array(__FUNCTION__, $user, '*', 'Provider: Keycloak'),
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
303
              'msg' => array('logged_in_as', $user)
Open commit View diff
303 'msg' => array('logged_in_as', $user)
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
304
            );
Open commit View diff
304 );
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
305
            return "pending";
Open commit View diff
305 return "pending";
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
306
          } else if (!isset($authenticators['additional']) || !is_array($authenticators['additional']) || count($authenticators['additional']) == 0) {
Open commit View diff
306 } else if (!isset($authenticators['additional']) || !is_array($authenticators['additional']) || count($authenticators['additional']) == 0) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
307
            // no authenticators found, login successfull
Open commit View diff
307 // no authenticators found, login successfull
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
308
            if (!$is_internal){
Open commit View diff
308 if (!$is_internal){
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
309
              unset($_SESSION['ldelay']);
Open commit View diff
309 unset($_SESSION['ldelay']);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
310
              // Reactivate TFA if it was set to "deactivate TFA for next login"
Open commit View diff
310 // Reactivate TFA if it was set to "deactivate TFA for next login"
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
311
              $stmt = $pdo->prepare("UPDATE `tfa` SET `active`='1' WHERE `username` = :user");
Open commit View diff
311 $stmt = $pdo->prepare("UPDATE `tfa` SET `active`='1' WHERE `username` = :user");
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
312
              $stmt->execute(array(':user' => $user));
Open commit View diff
312 $stmt->execute(array(':user' => $user));
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
313
              // Check force_tfa: only force setup if NO TFA exists at all
Open commit View diff
313 // Check force_tfa: only force setup if NO TFA exists at all
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
314
              if (intval($row['attributes']['force_tfa']) == 1 && !tfa_exists($user)) {
Open commit View diff
314 if (intval($row['attributes']['force_tfa']) == 1 && !tfa_exists($user)) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
315
                $_SESSION['pending_tfa_setup'] = true;
Open commit View diff
315 $_SESSION['pending_tfa_setup'] = true;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
316
              }
Open commit View diff
316 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
317
              $_SESSION['return'][] =  array(
Open commit View diff
317 $_SESSION['return'][] = array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
318
                'type' => 'success',
Open commit View diff
318 'type' => 'success',
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
319
                'log' => array(__FUNCTION__, $user, '*', 'Provider: Keycloak'),
Open commit View diff
319 'log' => array(__FUNCTION__, $user, '*', 'Provider: Keycloak'),
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
320
                'msg' => array('logged_in_as', $user)
Open commit View diff
320 'msg' => array('logged_in_as', $user)
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
321
              );
Open commit View diff
321 );
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
322
            }
Open commit View diff
322 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
323
            return "user";
Open commit View diff
323 return "user";
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
324
          }
Open commit View diff
324 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
325
        }
Open commit View diff
325 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
326
        return $result;
Open commit View diff
326 return $result;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
327
      } else {
Open commit View diff
327 } else {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
328
        return false;
Open commit View diff
328 return false;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
329
      }
Open commit View diff
329 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
330
    break;
Open commit View diff
330 break;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
331
    case 'ldap':
Open commit View diff
331 case 'ldap':
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
332
      // user authsource is ldap
Open commit View diff
332 // user authsource is ldap
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
333
      $result = ldap_mbox_login($user, $pass, array('is_internal' => $is_internal));
Open commit View diff
333 $result = ldap_mbox_login($user, $pass, array('is_internal' => $is_internal));
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
334
      if ($result !== false) {
Open commit View diff
334 if ($result !== false) {
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
335
        // double check if mailbox and domain is active
Open commit View diff
335 // double check if mailbox and domain is active
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
336
        $stmt = $pdo->prepare("SELECT * FROM `mailbox`
Open commit View diff
336 $stmt = $pdo->prepare("SELECT * FROM `mailbox`
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
337
        INNER JOIN domain on mailbox.domain = domain.domain
Open commit View diff
337 INNER JOIN domain on mailbox.domain = domain.domain
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
338
        WHERE `kind` NOT REGEXP 'location|thing|group'
Open commit View diff
338 WHERE `kind` NOT REGEXP 'location|thing|group'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
339
          AND `mailbox`.`active`='1'
Open commit View diff
339 AND `mailbox`.`active`='1'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
340
          AND `domain`.`active`='1'
Open commit View diff
340 AND `domain`.`active`='1'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
341
          AND `username` = :user");
Open commit View diff
341 AND `username` = :user");
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
342
        $stmt->execute(array(':user' => $user));
Open commit View diff
342 $stmt->execute(array(':user' => $user));
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
343
        $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
343 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
344
        if (empty($row)) {
Open commit View diff
344 if (empty($row)) {
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
345
          return false;
Open commit View diff
345 return false;
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
346
        }
Open commit View diff
346 }
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
347
Open commit View diff
347
FreddleSpl0it 4 months ago d1feebf

[Web] Fix LDAP/Keycloak login TypeError - missing JSON decode for attributes

Full commit hash
d1feebf164015a7c62ffdbbe9555424a1b07d402
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
348
        $row['attributes'] = json_decode($row['attributes'], true);
Open commit View diff
348 $row['attributes'] = json_decode($row['attributes'], true);
same change d1feebf

[Web] Fix LDAP/Keycloak login TypeError - missing JSON decode for attributes

Full commit hash
d1feebf164015a7c62ffdbbe9555424a1b07d402
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
349
Open commit View diff
349
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
350
        // check for tfa authenticators
Open commit View diff
350 // check for tfa authenticators
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
351
        $authenticators = get_tfa($user);
Open commit View diff
351 $authenticators = get_tfa($user);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
352
        if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0 && !$is_internal) {
Open commit View diff
352 if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0 && !$is_internal) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
353
          // authenticators found, init TFA flow
Open commit View diff
353 // authenticators found, init TFA flow
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
354
          $_SESSION['pending_mailcow_cc_username'] = $user;
Open commit View diff
354 $_SESSION['pending_mailcow_cc_username'] = $user;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
355
          $_SESSION['pending_mailcow_cc_role'] = "user";
Open commit View diff
355 $_SESSION['pending_mailcow_cc_role'] = "user";
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
356
          $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
Open commit View diff
356 $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
357
          unset($_SESSION['ldelay']);
Open commit View diff
357 unset($_SESSION['ldelay']);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
358
          $_SESSION['return'][] =  array(
Open commit View diff
358 $_SESSION['return'][] = array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
359
            'type' => 'success',
Open commit View diff
359 'type' => 'success',
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
360
            'log' => array(__FUNCTION__, $user, '*', 'Provider: LDAP'),
Open commit View diff
360 'log' => array(__FUNCTION__, $user, '*', 'Provider: LDAP'),
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
361
            'msg' => array('logged_in_as', $user)
Open commit View diff
361 'msg' => array('logged_in_as', $user)
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
362
          );
Open commit View diff
362 );
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
363
          return "pending";
Open commit View diff
363 return "pending";
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
364
        } else if (!isset($authenticators['additional']) || !is_array($authenticators['additional']) || count($authenticators['additional']) == 0) {
Open commit View diff
364 } else if (!isset($authenticators['additional']) || !is_array($authenticators['additional']) || count($authenticators['additional']) == 0) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
365
          // no authenticators found, login successfull
Open commit View diff
365 // no authenticators found, login successfull
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
366
          if (!$is_internal){
Open commit View diff
366 if (!$is_internal){
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
367
            unset($_SESSION['ldelay']);
Open commit View diff
367 unset($_SESSION['ldelay']);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
368
            // Reactivate TFA if it was set to "deactivate TFA for next login"
Open commit View diff
368 // Reactivate TFA if it was set to "deactivate TFA for next login"
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
369
            $stmt = $pdo->prepare("UPDATE `tfa` SET `active`='1' WHERE `username` = :user");
Open commit View diff
369 $stmt = $pdo->prepare("UPDATE `tfa` SET `active`='1' WHERE `username` = :user");
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
370
            $stmt->execute(array(':user' => $user));
Open commit View diff
370 $stmt->execute(array(':user' => $user));
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
371
            // Check force_tfa: only force setup if NO TFA exists at all
Open commit View diff
371 // Check force_tfa: only force setup if NO TFA exists at all
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
372
            if (intval($row['attributes']['force_tfa']) == 1 && !tfa_exists($user)) {
Open commit View diff
372 if (intval($row['attributes']['force_tfa']) == 1 && !tfa_exists($user)) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
373
              $_SESSION['pending_tfa_setup'] = true;
Open commit View diff
373 $_SESSION['pending_tfa_setup'] = true;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
374
            }
Open commit View diff
374 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
375
            $_SESSION['return'][] =  array(
Open commit View diff
375 $_SESSION['return'][] = array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
376
              'type' => 'success',
Open commit View diff
376 'type' => 'success',
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
377
              'log' => array(__FUNCTION__, $user, '*', 'Provider: LDAP'),
Open commit View diff
377 'log' => array(__FUNCTION__, $user, '*', 'Provider: LDAP'),
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
378
              'msg' => array('logged_in_as', $user)
Open commit View diff
378 'msg' => array('logged_in_as', $user)
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
379
            );
Open commit View diff
379 );
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
380
          }
Open commit View diff
380 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
381
          return "user";
Open commit View diff
381 return "user";
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
382
        }
Open commit View diff
382 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
383
      }
Open commit View diff
383 }
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
384
      return $result;
Open commit View diff
384 return $result;
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
385
    break;
Open commit View diff
385 break;
FreddleSpl0it over 1 year ago 82eb3c6

[Web] Use SQL password only when authsource is mailcow

Full commit hash
82eb3c64cd6c1eea94f450b22bf0de3e29f7eaa1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
386
    case 'mailcow':
Open commit View diff
386 case 'mailcow':
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
387
      if ($row['active'] != 1 || $row['d_active'] != 1) {
Open commit View diff
387 if ($row['active'] != 1 || $row['d_active'] != 1) {
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
388
        return false;
Open commit View diff
388 return false;
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
389
      }
Open commit View diff
389 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
390
      // verify password
Open commit View diff
390 // verify password
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
391
      if (verify_hash($row['password'], $pass) !== false) {
Open commit View diff
391 if (verify_hash($row['password'], $pass) !== false) {
FreddleSpl0it over 1 year ago cb47fa4

[Web] Fix force password update at next login

Full commit hash
cb47fa406f10ce929543e3e918c11b985a500ab2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
392
Open commit View diff
392
same change cb47fa4

[Web] Fix force password update at next login

Full commit hash
cb47fa406f10ce929543e3e918c11b985a500ab2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
393
        if (intval($row['attributes']['force_pw_update']) == 1) {
Open commit View diff
393 if (intval($row['attributes']['force_pw_update']) == 1) {
same change cb47fa4

[Web] Fix force password update at next login

Full commit hash
cb47fa406f10ce929543e3e918c11b985a500ab2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
394
          $_SESSION['pending_pw_update'] = true;
Open commit View diff
394 $_SESSION['pending_pw_update'] = true;
same change cb47fa4

[Web] Fix force password update at next login

Full commit hash
cb47fa406f10ce929543e3e918c11b985a500ab2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
395
        }
Open commit View diff
395 }
same change cb47fa4

[Web] Fix force password update at next login

Full commit hash
cb47fa406f10ce929543e3e918c11b985a500ab2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
396
Open commit View diff
396
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
397
        // check for tfa authenticators
Open commit View diff
397 // check for tfa authenticators
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
398
        $authenticators = get_tfa($user);
Open commit View diff
398 $authenticators = get_tfa($user);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
399
        if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0 && !$is_internal) {
Open commit View diff
399 if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0 && !$is_internal) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
400
          // authenticators found, init TFA flow
Open commit View diff
400 // authenticators found, init TFA flow
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
401
          $_SESSION['pending_mailcow_cc_username'] = $user;
Open commit View diff
401 $_SESSION['pending_mailcow_cc_username'] = $user;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
402
          $_SESSION['pending_mailcow_cc_role'] = "user";
Open commit View diff
402 $_SESSION['pending_mailcow_cc_role'] = "user";
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
403
          $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
Open commit View diff
403 $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
404
          unset($_SESSION['ldelay']);
Open commit View diff
404 unset($_SESSION['ldelay']);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
405
          $_SESSION['return'][] =  array(
Open commit View diff
405 $_SESSION['return'][] = array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
406
            'type' => 'success',
Open commit View diff
406 'type' => 'success',
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
407
            'log' => array(__FUNCTION__, $user, '*', 'Provider: mailcow'),
Open commit View diff
407 'log' => array(__FUNCTION__, $user, '*', 'Provider: mailcow'),
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
408
            'msg' => array('logged_in_as', $user)
Open commit View diff
408 'msg' => array('logged_in_as', $user)
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
409
          );
Open commit View diff
409 );
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
410
          return "pending";
Open commit View diff
410 return "pending";
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
411
        } else if (!isset($authenticators['additional']) || !is_array($authenticators['additional']) || count($authenticators['additional']) == 0) {
Open commit View diff
411 } else if (!isset($authenticators['additional']) || !is_array($authenticators['additional']) || count($authenticators['additional']) == 0) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
412
          // no authenticators found, login successfull
Open commit View diff
412 // no authenticators found, login successfull
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
413
          if (!$is_internal){
Open commit View diff
413 if (!$is_internal){
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
414
            unset($_SESSION['ldelay']);
Open commit View diff
414 unset($_SESSION['ldelay']);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
415
            // Reactivate TFA if it was set to "deactivate TFA for next login"
Open commit View diff
415 // Reactivate TFA if it was set to "deactivate TFA for next login"
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
416
            $stmt = $pdo->prepare("UPDATE `tfa` SET `active`='1' WHERE `username` = :user");
Open commit View diff
416 $stmt = $pdo->prepare("UPDATE `tfa` SET `active`='1' WHERE `username` = :user");
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
417
            $stmt->execute(array(':user' => $user));
Open commit View diff
417 $stmt->execute(array(':user' => $user));
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
418
            // Check force_tfa: only force setup if NO TFA exists at all
Open commit View diff
418 // Check force_tfa: only force setup if NO TFA exists at all
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
419
            if (intval($row['attributes']['force_tfa']) == 1 && !tfa_exists($user)) {
Open commit View diff
419 if (intval($row['attributes']['force_tfa']) == 1 && !tfa_exists($user)) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
420
              $_SESSION['pending_tfa_setup'] = true;
Open commit View diff
420 $_SESSION['pending_tfa_setup'] = true;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
421
            }
Open commit View diff
421 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
422
            $_SESSION['return'][] =  array(
Open commit View diff
422 $_SESSION['return'][] = array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
423
              'type' => 'success',
Open commit View diff
423 'type' => 'success',
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
424
              'log' => array(__FUNCTION__, $user, '*', 'Provider: mailcow'),
Open commit View diff
424 'log' => array(__FUNCTION__, $user, '*', 'Provider: mailcow'),
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
425
              'msg' => array('logged_in_as', $user)
Open commit View diff
425 'msg' => array('logged_in_as', $user)
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
426
            );
Open commit View diff
426 );
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
427
          }
Open commit View diff
427 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
428
          return "user";
Open commit View diff
428 return "user";
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
429
        }
Open commit View diff
429 }
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
430
      }
Open commit View diff
430 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
431
    break;
Open commit View diff
431 break;
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
432
  }
Open commit View diff
432 }
FreddleSpl0it almost 2 years ago f9304dc

[Web] check if $iam_provider is null on ldap_mbox_login

Full commit hash
f9304dcd9befcbcae3c1ffdbd4c9cfecad722f2b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
433
Open commit View diff
433
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
434
  return false;
Open commit View diff
434 return false;
same change 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
435
}
Open commit View diff
435 }
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
436
function apppass_login($user, $pass, $extra = null){
Open commit View diff
436 function apppass_login($user, $pass, $extra = null){
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
437
  global $pdo;
Open commit View diff
437 global $pdo;
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
438
Open commit View diff
438
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
439
  $is_internal = $extra['is_internal'];
Open commit View diff
439 $is_internal = $extra['is_internal'];
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
440
Open commit View diff
440
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
441
  if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
Open commit View diff
441 if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
442
    if (!$is_internal){
Open commit View diff
442 if (!$is_internal){
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
443
      $_SESSION['return'][] =  array(
Open commit View diff
443 $_SESSION['return'][] = array(
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
444
        'type' => 'danger',
Open commit View diff
444 'type' => 'danger',
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
445
        'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
445 'log' => array(__FUNCTION__, $user, '*'),
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
446
        'msg' => 'malformed_username'
Open commit View diff
446 'msg' => 'malformed_username'
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
447
      );
Open commit View diff
447 );
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
448
    }
Open commit View diff
448 }
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
449
    return false;
Open commit View diff
449 return false;
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
450
  }
Open commit View diff
450 }
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
451
Open commit View diff
451
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
452
  $extra['service'] = !isset($extra['service']) ? 'NONE' : $extra['service'];
Open commit View diff
452 $extra['service'] = !isset($extra['service']) ? 'NONE' : $extra['service'];
same change 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
453
  if (!$is_internal && $extra['service'] == 'NONE') {
Open commit View diff
453 if (!$is_internal && $extra['service'] == 'NONE') {
FreddleSpl0it about 3 years ago 5545d8a

[Web] hide auth settings for external users

Full commit hash
5545d8a56c87f4f3e8267d4a5954470466cdbecd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
454
    return false;
Open commit View diff
454 return false;
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
455
  }
Open commit View diff
455 }
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
456
Open commit View diff
456
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
457
  // fetch app password data
Open commit View diff
457 // fetch app password data
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
458
  $stmt = $pdo->prepare("SELECT `app_passwd`.*, `app_passwd`.`password` as `password`, `app_passwd`.`id` as `app_passwd_id` FROM `app_passwd`
Open commit View diff
458 $stmt = $pdo->prepare("SELECT `app_passwd`.*, `app_passwd`.`password` as `password`, `app_passwd`.`id` as `app_passwd_id` FROM `app_passwd`
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
459
    INNER JOIN `mailbox` ON `mailbox`.`username` = `app_passwd`.`mailbox`
Open commit View diff
459 INNER JOIN `mailbox` ON `mailbox`.`username` = `app_passwd`.`mailbox`
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
460
    INNER JOIN `domain` ON `mailbox`.`domain` = `domain`.`domain`
Open commit View diff
460 INNER JOIN `domain` ON `mailbox`.`domain` = `domain`.`domain`
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
461
    WHERE `mailbox`.`kind` NOT REGEXP 'location|thing|group'
Open commit View diff
461 WHERE `mailbox`.`kind` NOT REGEXP 'location|thing|group'
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
462
      AND `mailbox`.`active` = '1'
Open commit View diff
462 AND `mailbox`.`active` = '1'
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
463
      AND `domain`.`active` = '1'
Open commit View diff
463 AND `domain`.`active` = '1'
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
464
      AND `app_passwd`.`active` = '1'
Open commit View diff
464 AND `app_passwd`.`active` = '1'
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
465
      AND `app_passwd`.`mailbox` = :user"
Open commit View diff
465 AND `app_passwd`.`mailbox` = :user"
FreddleSpl0it about 3 years ago ad19ff5

[Web] remove ropc flow

Full commit hash
ad19ff5429a44c7162d8b5d14c4624e0d75373bd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
466
  );
Open commit View diff
466 );
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
467
  // fetch password data
Open commit View diff
467 // fetch password data
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
468
  $stmt->execute(array(
Open commit View diff
468 $stmt->execute(array(
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
469
    ':user' => $user,
Open commit View diff
469 ':user' => $user,
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
470
  ));
Open commit View diff
470 ));
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
471
  $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
471 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
FreddleSpl0it almost 2 years ago f9304dc

[Web] check if $iam_provider is null on ldap_mbox_login

Full commit hash
f9304dcd9befcbcae3c1ffdbd4c9cfecad722f2b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
472
Open commit View diff
472
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
473
  foreach ($rows as $row) {
Open commit View diff
473 foreach ($rows as $row) {
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
474
    if ($extra['service'] != 'NONE' && $row[strtolower($extra['service']) . '_access'] != '1'){
Open commit View diff
474 if ($extra['service'] != 'NONE' && $row[strtolower($extra['service']) . '_access'] != '1'){
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
475
      continue;
Open commit View diff
475 continue;
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
476
    }
Open commit View diff
476 }
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
477
Open commit View diff
477
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
478
    // verify password
Open commit View diff
478 // verify password
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
479
    if (verify_hash($row['password'], $pass) !== false) {
Open commit View diff
479 if (verify_hash($row['password'], $pass) !== false) {
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
480
      $_SESSION['app_passwd_id'] = $row['app_passwd_id'];
Open commit View diff
480 $_SESSION['app_passwd_id'] = $row['app_passwd_id'];
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
481
      unset($_SESSION['ldelay']);
Open commit View diff
481 unset($_SESSION['ldelay']);
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
482
      return "user";
Open commit View diff
482 return "user";
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
483
    }
Open commit View diff
483 }
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
484
  }
Open commit View diff
484 }
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
485
Open commit View diff
485
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
486
  return false;
Open commit View diff
486 return false;
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
487
}
Open commit View diff
487 }
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
488
// Keycloak REST Api Flow - auth user by mailcow_password attribute
Open commit View diff
488 // Keycloak REST Api Flow - auth user by mailcow_password attribute
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
489
// This password will be used for direct UI, IMAP and SMTP Auth
Open commit View diff
489 // This password will be used for direct UI, IMAP and SMTP Auth
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
490
// To use direct user credentials, only Authorization Code Flow is valid
Open commit View diff
490 // To use direct user credentials, only Authorization Code Flow is valid
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
491
function keycloak_mbox_login_rest($user, $pass, $extra = null){
Open commit View diff
491 function keycloak_mbox_login_rest($user, $pass, $extra = null){
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
492
  global $pdo;
Open commit View diff
492 global $pdo;
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
493
  global $iam_provider;
Open commit View diff
493 global $iam_provider;
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
494
  global $iam_settings;
Open commit View diff
494 global $iam_settings;
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
495
Open commit View diff
495
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
496
  $is_internal = $extra['is_internal'];
Open commit View diff
496 $is_internal = $extra['is_internal'];
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
497
  $create = $extra['create'];
Open commit View diff
497 $create = $extra['create'];
FreddleSpl0it almost 3 years ago 9beb47c

[Web] fix malformed_username check

Full commit hash
9beb47c0676962440d94b2bedac6a6f5bc8c5f8e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
498
Open commit View diff
498
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
499
  if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
Open commit View diff
499 if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
500
    if (!$is_internal){
Open commit View diff
500 if (!$is_internal){
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
501
      $_SESSION['return'][] =  array(
Open commit View diff
501 $_SESSION['return'][] = array(
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
502
        'type' => 'danger',
Open commit View diff
502 'type' => 'danger',
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
503
        'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
503 'log' => array(__FUNCTION__, $user, '*'),
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
504
        'msg' => 'malformed_username'
Open commit View diff
504 'msg' => 'malformed_username'
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
505
      );
Open commit View diff
505 );
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
506
    }
Open commit View diff
506 }
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
507
    return false;
Open commit View diff
507 return false;
same change 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
508
  }
Open commit View diff
508 }
FreddleSpl0it about 1 year ago 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
509
  if (!$iam_provider) {
Open commit View diff
509 if (!$iam_provider) {
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
510
    return false;
Open commit View diff
510 return false;
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
511
  }
Open commit View diff
511 }
FreddleSpl0it almost 3 years ago 7b47159

rework auth - move dovecot sasl log to php

Full commit hash
7b4715947889b051fba6464e8c5470fbc04122ab
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
512
Open commit View diff
512
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
513
  // get access_token for service account of mailcow client
Open commit View diff
513 // get access_token for service account of mailcow client
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
514
  $admin_token = identity_provider("get-keycloak-admin-token");
Open commit View diff
514 $admin_token = identity_provider("get-keycloak-admin-token");
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
515
Open commit View diff
515
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
516
  // get the mailcow_password attribute from keycloak user
Open commit View diff
516 // get the mailcow_password attribute from keycloak user
FreddleSpl0it over 3 years ago f0689e0

[Web] iam - add switch for direct login flow

Full commit hash
f0689e08d96f29c6e2161b1677c398187330c3b1
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
517
  $url = "{$iam_settings['server_url']}/admin/realms/{$iam_settings['realm']}/users";
Open commit View diff
517 $url = "{$iam_settings['server_url']}/admin/realms/{$iam_settings['realm']}/users";
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
518
  $queryParams = array('email' => $user, 'exact' => true);
Open commit View diff
518 $queryParams = array('email' => $user, 'exact' => true);
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
519
  $queryString = http_build_query($queryParams);
Open commit View diff
519 $queryString = http_build_query($queryParams);
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
520
  $curl = curl_init();
Open commit View diff
520 $curl = curl_init();
FreddleSpl0it about 3 years ago 6df6638

[Web] add curl timeouts to oidc requests

Full commit hash
6df663825aaecdb05b2dcda3d27882f1397eee85
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
521
  curl_setopt($curl, CURLOPT_TIMEOUT, 7);
Open commit View diff
521 curl_setopt($curl, CURLOPT_TIMEOUT, 7);
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
522
  curl_setopt($curl, CURLOPT_URL, $url . '?' . $queryString);
Open commit View diff
522 curl_setopt($curl, CURLOPT_URL, $url . '?' . $queryString);
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
523
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
Open commit View diff
523 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
524
  curl_setopt($curl, CURLOPT_HTTPHEADER, array(
Open commit View diff
524 curl_setopt($curl, CURLOPT_HTTPHEADER, array(
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
525
      'Authorization: Bearer ' . $admin_token,
Open commit View diff
525 'Authorization: Bearer ' . $admin_token,
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
526
      'Content-Type: application/json'
Open commit View diff
526 'Content-Type: application/json'
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
527
  ));
Open commit View diff
527 ));
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
528
  $user_res = json_decode(curl_exec($curl), true)[0];
Open commit View diff
528 $user_res = json_decode(curl_exec($curl), true)[0];
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
529
  $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
Open commit View diff
529 $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
530
  curl_close($curl);
Open commit View diff
530 curl_close($curl);
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
531
  if ($code != 200) {
Open commit View diff
531 if ($code != 200) {
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
532
    $_SESSION['return'][] =  array(
Open commit View diff
532 $_SESSION['return'][] = array(
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
533
      'type' => 'danger',
Open commit View diff
533 'type' => 'danger',
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
534
      'log' => array(__FUNCTION__, $user, '*', 'Identity Provider returned HTTP ' . $code),
Open commit View diff
534 'log' => array(__FUNCTION__, $user, '*', 'Identity Provider returned HTTP ' . $code),
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
535
      'msg' => 'generic_server_error'
Open commit View diff
535 'msg' => 'generic_server_error'
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
536
    );
Open commit View diff
536 );
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
537
    return false;
Open commit View diff
537 return false;
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
538
  }
Open commit View diff
538 }
FreddleSpl0it about 3 years ago 6df6638

[Web] add curl timeouts to oidc requests

Full commit hash
6df663825aaecdb05b2dcda3d27882f1397eee85
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
539
  if (!isset($user_res['attributes']['mailcow_password']) || !is_array($user_res['attributes']['mailcow_password'])){
Open commit View diff
539 if (!isset($user_res['attributes']['mailcow_password']) || !is_array($user_res['attributes']['mailcow_password'])){
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
540
    $_SESSION['return'][] =  array(
Open commit View diff
540 $_SESSION['return'][] = array(
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
541
      'type' => 'danger',
Open commit View diff
541 'type' => 'danger',
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
542
      'log' => array(__FUNCTION__, $user, '*', 'User has no mailcow_password attribute'),
Open commit View diff
542 'log' => array(__FUNCTION__, $user, '*', 'User has no mailcow_password attribute'),
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
543
      'msg' => 'generic_server_error'
Open commit View diff
543 'msg' => 'generic_server_error'
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
544
    );
Open commit View diff
544 );
FreddleSpl0it about 3 years ago 6df6638

[Web] add curl timeouts to oidc requests

Full commit hash
6df663825aaecdb05b2dcda3d27882f1397eee85
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
545
    return false;
Open commit View diff
545 return false;
same change 6df6638

[Web] add curl timeouts to oidc requests

Full commit hash
6df663825aaecdb05b2dcda3d27882f1397eee85
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
546
  }
Open commit View diff
546 }
same change 6df6638

[Web] add curl timeouts to oidc requests

Full commit hash
6df663825aaecdb05b2dcda3d27882f1397eee85
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
547
  if (empty($user_res['attributes']['mailcow_password'][0])){
Open commit View diff
547 if (empty($user_res['attributes']['mailcow_password'][0])){
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
548
    $_SESSION['return'][] =  array(
Open commit View diff
548 $_SESSION['return'][] = array(
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
549
      'type' => 'danger',
Open commit View diff
549 'type' => 'danger',
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
550
      'log' => array(__FUNCTION__, $user, '*', "User's mailcow_password attribute is empty"),
Open commit View diff
550 'log' => array(__FUNCTION__, $user, '*', "User's mailcow_password attribute is empty"),
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
551
      'msg' => 'generic_server_error'
Open commit View diff
551 'msg' => 'generic_server_error'
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
552
    );
Open commit View diff
552 );
FreddleSpl0it about 3 years ago 6df6638

[Web] add curl timeouts to oidc requests

Full commit hash
6df663825aaecdb05b2dcda3d27882f1397eee85
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
553
    return false;
Open commit View diff
553 return false;
same change 6df6638

[Web] add curl timeouts to oidc requests

Full commit hash
6df663825aaecdb05b2dcda3d27882f1397eee85
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
554
  }
Open commit View diff
554 }
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
555
Open commit View diff
555
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
556
  // validate mailcow_password
Open commit View diff
556 // validate mailcow_password
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
557
  $mailcow_password = $user_res['attributes']['mailcow_password'][0];
Open commit View diff
557 $mailcow_password = $user_res['attributes']['mailcow_password'][0];
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
558
  if (!verify_hash($mailcow_password, $pass)) {
Open commit View diff
558 if (!verify_hash($mailcow_password, $pass)) {
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
559
    return false;
Open commit View diff
559 return false;
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
560
  }
Open commit View diff
560 }
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
561
Open commit View diff
561
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
562
  // get mapped template
Open commit View diff
562 // get mapped template
FreddleSpl0it almost 3 years ago 3a4c0c8

fix keycloak mailpassword flow

Full commit hash
3a4c0c84a3e79058750f0786f5fddc42a29e576b
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
563
  $user_template = $user_res['attributes']['mailcow_template'][0];
Open commit View diff
563 $user_template = $user_res['attributes']['mailcow_template'][0];
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
564
  $mapper_key = array_search($user_template, $iam_settings['mappers']);
Open commit View diff
564 $mapper_key = array_search($user_template, $iam_settings['mappers']);
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
565
Open commit View diff
565
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
566
  if (!$create) {
Open commit View diff
566 if (!$create) {
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
567
    // login success
Open commit View diff
567 // login success
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
568
    if ($mapper_key !== false) {
Open commit View diff
568 if ($mapper_key !== false) {
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
569
      // update user
Open commit View diff
569 // update user
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
570
      $_SESSION['access_all_exception'] = '1';
Open commit View diff
570 $_SESSION['access_all_exception'] = '1';
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
571
      mailbox('edit', 'mailbox_from_template', array(
Open commit View diff
571 mailbox('edit', 'mailbox_from_template', array(
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
572
        'username' => $user,
Open commit View diff
572 'username' => $user,
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
573
        'name' => $user_res['name'],
Open commit View diff
573 'name' => $user_res['name'],
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
574
        'template' => $iam_settings['templates'][$mapper_key]
Open commit View diff
574 'template' => $iam_settings['templates'][$mapper_key]
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
575
      ));
Open commit View diff
575 ));
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
576
      $_SESSION['access_all_exception'] = '0';
Open commit View diff
576 $_SESSION['access_all_exception'] = '0';
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
577
    }
Open commit View diff
577 }
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
578
    return 'user';
Open commit View diff
578 return 'user';
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
579
  }
Open commit View diff
579 }
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
580
Open commit View diff
580
FreddleSpl0it about 1 year ago 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
581
  // check if login provisioning is enabled before creating user
Open commit View diff
581 // check if login provisioning is enabled before creating user
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
582
  if (!$iam_settings['login_provisioning']){
Open commit View diff
582 if (!$iam_settings['login_provisioning']){
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
583
    if (!$is_internal){
Open commit View diff
583 if (!$is_internal){
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
584
      $_SESSION['return'][] =  array(
Open commit View diff
584 $_SESSION['return'][] = array(
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
585
        'type' => 'danger',
Open commit View diff
585 'type' => 'danger',
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
586
        'log' => array(__FUNCTION__, "Auto-create users on login is deactivated"),
Open commit View diff
586 'log' => array(__FUNCTION__, "Auto-create users on login is deactivated"),
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
587
        'msg' => 'login_failed'
Open commit View diff
587 'msg' => 'login_failed'
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
588
      );
Open commit View diff
588 );
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
589
    }
Open commit View diff
589 }
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
590
    return false;
Open commit View diff
590 return false;
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
591
  }
Open commit View diff
591 }
FreddleSpl0it about 3 years ago 4dc3222

[Web] fix bug on mailbox login

Full commit hash
4dc3222f03e8bf366dcc730c34b9db4cf1ab2cef
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
592
  // check if matching attribute exist
Open commit View diff
592 // check if matching attribute exist
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
593
  if (empty($iam_settings['mappers']) || !$user_template || $mapper_key === false) {
Open commit View diff
593 if (empty($iam_settings['mappers']) || !$user_template || $mapper_key === false) {
FreddleSpl0it over 1 year ago 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
594
    if (!empty($iam_settings['default_template'])) {
Open commit View diff
594 if (!empty($iam_settings['default_template'])) {
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
595
      $mbox_template = $iam_settings['default_template'];
Open commit View diff
595 $mbox_template = $iam_settings['default_template'];
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
596
    } else {
Open commit View diff
596 } else {
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
597
      $_SESSION['return'][] =  array(
Open commit View diff
597 $_SESSION['return'][] = array(
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
598
        'type' => 'danger',
Open commit View diff
598 'type' => 'danger',
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
599
        'log' => array(__FUNCTION__, $user, '*', 'No matching attribute mapping was found'),
Open commit View diff
599 'log' => array(__FUNCTION__, $user, '*', 'No matching attribute mapping was found'),
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
600
        'msg' => 'generic_server_error'
Open commit View diff
600 'msg' => 'generic_server_error'
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
601
      );
Open commit View diff
601 );
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
602
      return false;
Open commit View diff
602 return false;
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
603
    }
Open commit View diff
603 }
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
604
  } else {
Open commit View diff
604 } else {
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
605
    $mbox_template = $iam_settings['templates'][$mapper_key];
Open commit View diff
605 $mbox_template = $iam_settings['templates'][$mapper_key];
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
606
  }
Open commit View diff
606 }
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
607
Open commit View diff
607
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
608
  // create mailbox
Open commit View diff
608 // create mailbox
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
609
  $_SESSION['access_all_exception'] = '1';
Open commit View diff
609 $_SESSION['access_all_exception'] = '1';
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
610
  $create_res = mailbox('add', 'mailbox_from_template', array(
Open commit View diff
610 $create_res = mailbox('add', 'mailbox_from_template', array(
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
611
    'domain' => explode('@', $user)[1],
Open commit View diff
611 'domain' => explode('@', $user)[1],
same change cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
612
    'local_part' => explode('@', $user)[0],
Open commit View diff
612 'local_part' => explode('@', $user)[0],
FreddleSpl0it over 1 year ago 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
613
    'name' => $user_res['name'],
Open commit View diff
613 'name' => $user_res['name'],
FreddleSpl0it about 3 years ago cc75166

[Web] functions.auth.inc.php corrections

Full commit hash
cc7516685f4dfddabf39c7c96c5c72ed1a7558d0
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
614
    'authsource' => 'keycloak',
Open commit View diff
614 'authsource' => 'keycloak',
FreddleSpl0it over 1 year ago 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
615
    'template' => $mbox_template
Open commit View diff
615 'template' => $mbox_template
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
616
  ));
Open commit View diff
616 ));
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
617
  $_SESSION['access_all_exception'] = '0';
Open commit View diff
617 $_SESSION['access_all_exception'] = '0';
FreddleSpl0it over 1 year ago 1d6513f

[Web] fix idp login alerts and updates

Full commit hash
1d6513ffbabdde974bca853d15f4ecd889111c09
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
618
  if (!$create_res){
Open commit View diff
618 if (!$create_res){
same change 1d6513f

[Web] fix idp login alerts and updates

Full commit hash
1d6513ffbabdde974bca853d15f4ecd889111c09
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
619
    clear_session();
Open commit View diff
619 clear_session();
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
620
    $_SESSION['return'][] =  array(
Open commit View diff
620 $_SESSION['return'][] = array(
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
621
      'type' => 'danger',
Open commit View diff
621 'type' => 'danger',
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
622
      'log' => array(__FUNCTION__, $user, '*', 'Could not create mailbox on login'),
Open commit View diff
622 'log' => array(__FUNCTION__, $user, '*', 'Could not create mailbox on login'),
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
623
      'msg' => 'generic_server_error'
Open commit View diff
623 'msg' => 'generic_server_error'
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
624
    );
Open commit View diff
624 );
FreddleSpl0it over 1 year ago 1d6513f

[Web] fix idp login alerts and updates

Full commit hash
1d6513ffbabdde974bca853d15f4ecd889111c09
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
625
    return false;
Open commit View diff
625 return false;
same change 1d6513f

[Web] fix idp login alerts and updates

Full commit hash
1d6513ffbabdde974bca853d15f4ecd889111c09
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
626
  }
Open commit View diff
626 }
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
627
Open commit View diff
627
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
628
  return 'user';
Open commit View diff
628 return 'user';
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
629
}
Open commit View diff
629 }
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
630
function ldap_mbox_login($user, $pass, $extra = null){
Open commit View diff
630 function ldap_mbox_login($user, $pass, $extra = null){
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
631
  global $pdo;
Open commit View diff
631 global $pdo;
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
632
  global $iam_provider;
Open commit View diff
632 global $iam_provider;
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
633
  global $iam_settings;
Open commit View diff
633 global $iam_settings;
FreddleSpl0it almost 2 years ago f9304dc

[Web] check if $iam_provider is null on ldap_mbox_login

Full commit hash
f9304dcd9befcbcae3c1ffdbd4c9cfecad722f2b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
634
Open commit View diff
634
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
635
  $is_internal = $extra['is_internal'];
Open commit View diff
635 $is_internal = $extra['is_internal'];
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
636
  $create = $extra['create'];
Open commit View diff
636 $create = $extra['create'];
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
637
Open commit View diff
637
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
638
  if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
Open commit View diff
638 if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
639
    if (!$is_internal){
Open commit View diff
639 if (!$is_internal){
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
640
      $_SESSION['return'][] =  array(
Open commit View diff
640 $_SESSION['return'][] = array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
641
        'type' => 'danger',
Open commit View diff
641 'type' => 'danger',
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
642
        'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
642 'log' => array(__FUNCTION__, $user, '*'),
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
643
        'msg' => 'malformed_username'
Open commit View diff
643 'msg' => 'malformed_username'
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
644
      );
Open commit View diff
644 );
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
645
    }
Open commit View diff
645 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
646
    return false;
Open commit View diff
646 return false;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
647
  }
Open commit View diff
647 }
FreddleSpl0it almost 2 years ago f9304dc

[Web] check if $iam_provider is null on ldap_mbox_login

Full commit hash
f9304dcd9befcbcae3c1ffdbd4c9cfecad722f2b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
648
  if (!$iam_provider) {
Open commit View diff
648 if (!$iam_provider) {
same change f9304dc

[Web] check if $iam_provider is null on ldap_mbox_login

Full commit hash
f9304dcd9befcbcae3c1ffdbd4c9cfecad722f2b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
649
    return false;
Open commit View diff
649 return false;
same change f9304dc

[Web] check if $iam_provider is null on ldap_mbox_login

Full commit hash
f9304dcd9befcbcae3c1ffdbd4c9cfecad722f2b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
650
  }
Open commit View diff
650 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
651
Open commit View diff
651
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
652
  try {
Open commit View diff
652 try {
FreddleSpl0it over 2 years ago 010d898

[Web] apply LDAP filter

Full commit hash
010d898786b78327240bb2f2608e973a65c5f859
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
653
    $ldap_query = $iam_provider->query();
Open commit View diff
653 $ldap_query = $iam_provider->query();
FreddleSpl0it over 2 years ago d22cafa

[Web] fix ldap filter if empty

Full commit hash
d22cafacc86ab9ebe4a3e9f20924fc1a27c84332
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
654
    if (!empty($iam_settings['filter'])) {
Open commit View diff
654 if (!empty($iam_settings['filter'])) {
FreddleSpl0it over 2 years ago 010d898

[Web] apply LDAP filter

Full commit hash
010d898786b78327240bb2f2608e973a65c5f859
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
655
      $ldap_query = $ldap_query->rawFilter($iam_settings['filter']);
Open commit View diff
655 $ldap_query = $ldap_query->rawFilter($iam_settings['filter']);
FreddleSpl0it over 2 years ago d22cafa

[Web] fix ldap filter if empty

Full commit hash
d22cafacc86ab9ebe4a3e9f20924fc1a27c84332
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
656
    }
Open commit View diff
656 }
FreddleSpl0it over 2 years ago 010d898

[Web] apply LDAP filter

Full commit hash
010d898786b78327240bb2f2608e973a65c5f859
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
657
    $ldap_query = $ldap_query->where($iam_settings['username_field'], '=', $user)
Open commit View diff
657 $ldap_query = $ldap_query->where($iam_settings['username_field'], '=', $user)
FreddleSpl0it almost 2 years ago fa3c453

Use DN instead of DistinguishedName for LDAP login

Full commit hash
fa3c453d6eed90acc6e86d1600802494f9e5dd87
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
658
      ->select([$iam_settings['username_field'], $iam_settings['attribute_field'], 'displayname', 'distinguishedname', 'dn']);
Open commit View diff
658 ->select([$iam_settings['username_field'], $iam_settings['attribute_field'], 'displayname', 'distinguishedname', 'dn']);
FreddleSpl0it over 2 years ago d22cafa

[Web] fix ldap filter if empty

Full commit hash
d22cafacc86ab9ebe4a3e9f20924fc1a27c84332
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
659
Open commit View diff
659
same change d22cafa

[Web] fix ldap filter if empty

Full commit hash
d22cafacc86ab9ebe4a3e9f20924fc1a27c84332
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
660
    $user_res = $ldap_query->firstOrFail();
Open commit View diff
660 $user_res = $ldap_query->firstOrFail();
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
661
  } catch (Exception $e) {
Open commit View diff
661 } catch (Exception $e) {
FreddleSpl0it almost 2 years ago 519d95c

[Web] extend ldap auth logging

Full commit hash
519d95cb8b4b5437a63f3a69f27ffbba2c7fd5b2
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
662
    // clear $_SESSION['return'] to not leak data
Open commit View diff
662 // clear $_SESSION['return'] to not leak data
same change 519d95c

[Web] extend ldap auth logging

Full commit hash
519d95cb8b4b5437a63f3a69f27ffbba2c7fd5b2
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
663
    $_SESSION['return'] = array();
Open commit View diff
663 $_SESSION['return'] = array();
FreddleSpl0it almost 2 years ago 092d3cd

[Web] extend ldap auth logging

Full commit hash
092d3cd80b64e1f4a4ff46508b4deac8f0eea9c9
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
664
    $_SESSION['return'][] =  array(
Open commit View diff
664 $_SESSION['return'][] = array(
same change 092d3cd

[Web] extend ldap auth logging

Full commit hash
092d3cd80b64e1f4a4ff46508b4deac8f0eea9c9
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
665
      'type' => 'danger',
Open commit View diff
665 'type' => 'danger',
FreddleSpl0it almost 2 years ago fa3c453

Use DN instead of DistinguishedName for LDAP login

Full commit hash
fa3c453d6eed90acc6e86d1600802494f9e5dd87
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
666
      'log' => array(__FUNCTION__, $user, '*', $e->getMessage()),
Open commit View diff
666 'log' => array(__FUNCTION__, $user, '*', $e->getMessage()),
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
667
      'msg' => 'generic_server_error'
Open commit View diff
667 'msg' => 'generic_server_error'
FreddleSpl0it almost 2 years ago 092d3cd

[Web] extend ldap auth logging

Full commit hash
092d3cd80b64e1f4a4ff46508b4deac8f0eea9c9
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
668
    );
Open commit View diff
668 );
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
669
    return false;
Open commit View diff
669 return false;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
670
  }
Open commit View diff
670 }
FreddleSpl0it almost 2 years ago 092d3cd

[Web] extend ldap auth logging

Full commit hash
092d3cd80b64e1f4a4ff46508b4deac8f0eea9c9
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
671
  try {
Open commit View diff
671 try {
FreddleSpl0it almost 2 years ago fa3c453

Use DN instead of DistinguishedName for LDAP login

Full commit hash
fa3c453d6eed90acc6e86d1600802494f9e5dd87
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
672
    if (!$iam_provider->auth()->attempt($user_res['dn'], $pass)) {
Open commit View diff
672 if (!$iam_provider->auth()->attempt($user_res['dn'], $pass)) {
same change fa3c453

Use DN instead of DistinguishedName for LDAP login

Full commit hash
fa3c453d6eed90acc6e86d1600802494f9e5dd87
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
673
      return false;
Open commit View diff
673 return false;
FreddleSpl0it almost 2 years ago 092d3cd

[Web] extend ldap auth logging

Full commit hash
092d3cd80b64e1f4a4ff46508b4deac8f0eea9c9
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
674
    }
Open commit View diff
674 }
same change 092d3cd

[Web] extend ldap auth logging

Full commit hash
092d3cd80b64e1f4a4ff46508b4deac8f0eea9c9
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
675
  } catch (Exception $e) {
Open commit View diff
675 } catch (Exception $e) {
FreddleSpl0it almost 2 years ago 519d95c

[Web] extend ldap auth logging

Full commit hash
519d95cb8b4b5437a63f3a69f27ffbba2c7fd5b2
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
676
    // clear $_SESSION['return'] to not leak data
Open commit View diff
676 // clear $_SESSION['return'] to not leak data
same change 519d95c

[Web] extend ldap auth logging

Full commit hash
519d95cb8b4b5437a63f3a69f27ffbba2c7fd5b2
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
677
    $_SESSION['return'] = array();
Open commit View diff
677 $_SESSION['return'] = array();
FreddleSpl0it almost 2 years ago 092d3cd

[Web] extend ldap auth logging

Full commit hash
092d3cd80b64e1f4a4ff46508b4deac8f0eea9c9
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
678
    $_SESSION['return'][] =  array(
Open commit View diff
678 $_SESSION['return'][] = array(
same change 092d3cd

[Web] extend ldap auth logging

Full commit hash
092d3cd80b64e1f4a4ff46508b4deac8f0eea9c9
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
679
      'type' => 'danger',
Open commit View diff
679 'type' => 'danger',
FreddleSpl0it almost 2 years ago fa3c453

Use DN instead of DistinguishedName for LDAP login

Full commit hash
fa3c453d6eed90acc6e86d1600802494f9e5dd87
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
680
      'log' => array(__FUNCTION__, $user, '*', $e->getMessage()),
Open commit View diff
680 'log' => array(__FUNCTION__, $user, '*', $e->getMessage()),
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
681
      'msg' => 'generic_server_error'
Open commit View diff
681 'msg' => 'generic_server_error'
FreddleSpl0it almost 2 years ago 092d3cd

[Web] extend ldap auth logging

Full commit hash
092d3cd80b64e1f4a4ff46508b4deac8f0eea9c9
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
682
    );
Open commit View diff
682 );
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
683
    return false;
Open commit View diff
683 return false;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
684
  }
Open commit View diff
684 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
685
Open commit View diff
685
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
686
  // get mapped template
Open commit View diff
686 // get mapped template
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
687
  $user_template = $user_res[$iam_settings['attribute_field']][0];
Open commit View diff
687 $user_template = $user_res[$iam_settings['attribute_field']][0];
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
688
  $mapper_key = array_search($user_template, $iam_settings['mappers']);
Open commit View diff
688 $mapper_key = array_search($user_template, $iam_settings['mappers']);
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
689
Open commit View diff
689
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
690
  if (!$create) {
Open commit View diff
690 if (!$create) {
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
691
    // login success
Open commit View diff
691 // login success
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
692
    if ($mapper_key !== false) {
Open commit View diff
692 if ($mapper_key !== false) {
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
693
      // update user
Open commit View diff
693 // update user
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
694
      $_SESSION['access_all_exception'] = '1';
Open commit View diff
694 $_SESSION['access_all_exception'] = '1';
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
695
      mailbox('edit', 'mailbox_from_template', array(
Open commit View diff
695 mailbox('edit', 'mailbox_from_template', array(
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
696
        'username' => $user,
Open commit View diff
696 'username' => $user,
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
697
        'name' => $user_res['displayname'][0],
Open commit View diff
697 'name' => $user_res['displayname'][0],
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
698
        'template' => $iam_settings['templates'][$mapper_key]
Open commit View diff
698 'template' => $iam_settings['templates'][$mapper_key]
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
699
      ));
Open commit View diff
699 ));
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
700
      $_SESSION['access_all_exception'] = '0';
Open commit View diff
700 $_SESSION['access_all_exception'] = '0';
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
701
    }
Open commit View diff
701 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
702
    return 'user';
Open commit View diff
702 return 'user';
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
703
  }
Open commit View diff
703 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
704
Open commit View diff
704
FreddleSpl0it about 1 year ago 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
705
  // check if login provisioning is enabled before creating user
Open commit View diff
705 // check if login provisioning is enabled before creating user
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
706
  if (!$iam_settings['login_provisioning']){
Open commit View diff
706 if (!$iam_settings['login_provisioning']){
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
707
    if (!$is_internal){
Open commit View diff
707 if (!$is_internal){
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
708
      $_SESSION['return'][] =  array(
Open commit View diff
708 $_SESSION['return'][] = array(
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
709
        'type' => 'danger',
Open commit View diff
709 'type' => 'danger',
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
710
        'log' => array(__FUNCTION__, "Auto-create users on login is deactivated"),
Open commit View diff
710 'log' => array(__FUNCTION__, "Auto-create users on login is deactivated"),
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
711
        'msg' => 'login_failed'
Open commit View diff
711 'msg' => 'login_failed'
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
712
      );
Open commit View diff
712 );
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
713
    }
Open commit View diff
713 }
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
714
    return false;
Open commit View diff
714 return false;
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
715
  }
Open commit View diff
715 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
716
  // check if matching attribute exist
Open commit View diff
716 // check if matching attribute exist
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
717
  if (empty($iam_settings['mappers']) || !$user_template || $mapper_key === false) {
Open commit View diff
717 if (empty($iam_settings['mappers']) || !$user_template || $mapper_key === false) {
Kai Biebel about 1 year ago cb6ffe6

fix: typo in default_template

Full commit hash
cb6ffe65c8fb0ec4b96abfd45c352f89a52bf40b
Author
Kai Biebel <[email protected]>
Date
about 1 year ago
Selected line
718
    if (!empty($iam_settings['default_template'])) {
Open commit View diff
718 if (!empty($iam_settings['default_template'])) {
same change cb6ffe6

fix: typo in default_template

Full commit hash
cb6ffe65c8fb0ec4b96abfd45c352f89a52bf40b
Author
Kai Biebel <[email protected]>
Date
about 1 year ago
Selected line
719
      $mbox_template = $iam_settings['default_template'];
Open commit View diff
719 $mbox_template = $iam_settings['default_template'];
FreddleSpl0it over 1 year ago 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
720
    } else {
Open commit View diff
720 } else {
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
721
      $_SESSION['return'][] =  array(
Open commit View diff
721 $_SESSION['return'][] = array(
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
722
        'type' => 'danger',
Open commit View diff
722 'type' => 'danger',
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
723
        'log' => array(__FUNCTION__, $user, '*', 'No matching attribute mapping was found'),
Open commit View diff
723 'log' => array(__FUNCTION__, $user, '*', 'No matching attribute mapping was found'),
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
724
        'msg' => 'generic_server_error'
Open commit View diff
724 'msg' => 'generic_server_error'
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
725
      );
Open commit View diff
725 );
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
726
      return false;
Open commit View diff
726 return false;
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
727
    }
Open commit View diff
727 }
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
728
  } else {
Open commit View diff
728 } else {
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
729
    $mbox_template = $iam_settings['templates'][$mapper_key];
Open commit View diff
729 $mbox_template = $iam_settings['templates'][$mapper_key];
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
730
  }
Open commit View diff
730 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
731
Open commit View diff
731
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
732
  // create mailbox
Open commit View diff
732 // create mailbox
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
733
  $_SESSION['access_all_exception'] = '1';
Open commit View diff
733 $_SESSION['access_all_exception'] = '1';
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
734
  $create_res = mailbox('add', 'mailbox_from_template', array(
Open commit View diff
734 $create_res = mailbox('add', 'mailbox_from_template', array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
735
    'domain' => explode('@', $user)[1],
Open commit View diff
735 'domain' => explode('@', $user)[1],
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
736
    'local_part' => explode('@', $user)[0],
Open commit View diff
736 'local_part' => explode('@', $user)[0],
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
737
    'name' => $user_res['displayname'][0],
Open commit View diff
737 'name' => $user_res['displayname'][0],
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
738
    'authsource' => 'ldap',
Open commit View diff
738 'authsource' => 'ldap',
FreddleSpl0it over 1 year ago 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
739
    'template' => $mbox_template
Open commit View diff
739 'template' => $mbox_template
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
740
  ));
Open commit View diff
740 ));
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
741
  $_SESSION['access_all_exception'] = '0';
Open commit View diff
741 $_SESSION['access_all_exception'] = '0';
FreddleSpl0it over 1 year ago 1d6513f

[Web] fix idp login alerts and updates

Full commit hash
1d6513ffbabdde974bca853d15f4ecd889111c09
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
742
  if (!$create_res){
Open commit View diff
742 if (!$create_res){
same change 1d6513f

[Web] fix idp login alerts and updates

Full commit hash
1d6513ffbabdde974bca853d15f4ecd889111c09
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
743
    clear_session();
Open commit View diff
743 clear_session();
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
744
    $_SESSION['return'][] =  array(
Open commit View diff
744 $_SESSION['return'][] = array(
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
745
      'type' => 'danger',
Open commit View diff
745 'type' => 'danger',
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
746
      'log' => array(__FUNCTION__, $user, '*', 'Could not create mailbox on login'),
Open commit View diff
746 'log' => array(__FUNCTION__, $user, '*', 'Could not create mailbox on login'),
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
747
      'msg' => 'generic_server_error'
Open commit View diff
747 'msg' => 'generic_server_error'
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
748
    );
Open commit View diff
748 );
FreddleSpl0it over 1 year ago 1d6513f

[Web] fix idp login alerts and updates

Full commit hash
1d6513ffbabdde974bca853d15f4ecd889111c09
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
749
    return false;
Open commit View diff
749 return false;
same change 1d6513f

[Web] fix idp login alerts and updates

Full commit hash
1d6513ffbabdde974bca853d15f4ecd889111c09
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
750
  }
Open commit View diff
750 }
FreddleSpl0it over 3 years ago d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
751
Open commit View diff
751
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
752
  return 'user';
Open commit View diff
752 return 'user';
same change d4ae616

replace ropc flow with keycloak rest api flow

Full commit hash
d4ae61646020eb23b5a7fdcca6e5ca80d21a6bf8
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
753
}
Open commit View diff
753 }