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/conf/dovecot/auth/mailcowauth.php

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

mailcowauth.php on main
Author Date Commit Line Code
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
1
<?php
Open commit View diff
1 <?php
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
2
ini_set('error_reporting', 0);
Open commit View diff
2 ini_set('error_reporting', 0);
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
3
header('Content-Type: application/json');
Open commit View diff
3 header('Content-Type: application/json');
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
4
Open commit View diff
4
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
5
$post = trim(file_get_contents('php://input'));
Open commit View diff
5 $post = trim(file_get_contents('php://input'));
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
6
if ($post) {
Open commit View diff
6 if ($post) {
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
7
  $post = json_decode($post, true);
Open commit View diff
7 $post = json_decode($post, true);
same change dca5f1b

[Web] move /process/login to internal endpoint

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

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
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
Open commit View diff
10
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
11
$return = array("success" => false);
Open commit View diff
11 $return = array("success" => 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
12
if(!isset($post['username']) || !isset($post['password']) || !isset($post['real_rip'])){
Open commit View diff
12 if(!isset($post['username']) || !isset($post['password']) || !isset($post['real_rip'])){
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
13
  error_log("MAILCOWAUTH: Bad Request");
Open commit View diff
13 error_log("MAILCOWAUTH: Bad Request");
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
14
  http_response_code(400); // Bad Request
Open commit View diff
14 http_response_code(400); // Bad Request
FreddleSpl0it over 1 year ago b2db8e6

[Dovecot] init identity provider before user login

Full commit hash
b2db8e6b314d586a062b248b9553f533f4ed67a5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
15
  echo json_encode($return);
Open commit View diff
15 echo json_encode($return);
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
16
  exit();
Open commit View diff
16 exit();
same change dca5f1b

[Web] move /process/login to internal endpoint

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

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
18
Open commit View diff
18
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
19
require_once('../../../web/inc/vars.inc.php');
Open commit View diff
19 require_once('../../../web/inc/vars.inc.php');
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
20
if (file_exists('../../../web/inc/vars.local.inc.php')) {
Open commit View diff
20 if (file_exists('../../../web/inc/vars.local.inc.php')) {
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
21
  include_once('../../../web/inc/vars.local.inc.php');
Open commit View diff
21 include_once('../../../web/inc/vars.local.inc.php');
same change dca5f1b

[Web] move /process/login to internal endpoint

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

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
23
require_once '../../../web/inc/lib/vendor/autoload.php';
Open commit View diff
23 require_once '../../../web/inc/lib/vendor/autoload.php';
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
24
Open commit View diff
24
FreddleSpl0it over 1 year ago 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
25
Open commit View diff
25
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
26
// Init Redis
Open commit View diff
26 // Init Redis
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
27
$redis = new Redis();
Open commit View diff
27 $redis = new Redis();
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
28
try {
Open commit View diff
28 try {
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
29
  if (!empty(getenv('REDIS_SLAVEOF_IP'))) {
Open commit View diff
29 if (!empty(getenv('REDIS_SLAVEOF_IP'))) {
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
30
    $redis->connect(getenv('REDIS_SLAVEOF_IP'), getenv('REDIS_SLAVEOF_PORT'));
Open commit View diff
30 $redis->connect(getenv('REDIS_SLAVEOF_IP'), getenv('REDIS_SLAVEOF_PORT'));
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
31
  }
Open commit View diff
31 }
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
32
  else {
Open commit View diff
32 else {
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
33
    $redis->connect('redis-mailcow', 6379);
Open commit View diff
33 $redis->connect('redis-mailcow', 6379);
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
34
  }
Open commit View diff
34 }
FreddleSpl0it over 1 year ago 69b0379

Add missing Redis authentication

Full commit hash
69b03791a2987ee8a18c16aaf5d5bfb79c09a49f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
35
  $redis->auth(getenv("REDISPASS"));
Open commit View diff
35 $redis->auth(getenv("REDISPASS"));
FreddleSpl0it over 1 year ago 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
36
}
Open commit View diff
36 }
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
37
catch (Exception $e) {
Open commit View diff
37 catch (Exception $e) {
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
38
  error_log("MAILCOWAUTH: " . $e . PHP_EOL);
Open commit View diff
38 error_log("MAILCOWAUTH: " . $e . PHP_EOL);
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
39
  http_response_code(500); // Internal Server Error
Open commit View diff
39 http_response_code(500); // Internal Server Error
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
40
  echo json_encode($return);
Open commit View diff
40 echo json_encode($return);
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
41
  exit;
Open commit View diff
41 exit;
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
42
}
Open commit View diff
42 }
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
43
Open commit View diff
43
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
44
// Init database
Open commit View diff
44 // Init database
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
45
$dsn = $database_type . ":unix_socket=" . $database_sock . ";dbname=" . $database_name;
Open commit View diff
45 $dsn = $database_type . ":unix_socket=" . $database_sock . ";dbname=" . $database_name;
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
46
$opt = [
Open commit View diff
46 $opt = [
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
47
    PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
Open commit View diff
47 PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
48
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
Open commit View diff
48 PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
49
    PDO::ATTR_EMULATE_PREPARES   => false,
Open commit View diff
49 PDO::ATTR_EMULATE_PREPARES => false,
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
50
];
Open commit View diff
50 ];
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
51
try {
Open commit View diff
51 try {
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
52
  $pdo = new PDO($dsn, $database_user, $database_pass, $opt);
Open commit View diff
52 $pdo = new PDO($dsn, $database_user, $database_pass, $opt);
same change dca5f1b

[Web] move /process/login to internal endpoint

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

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
54
catch (PDOException $e) {
Open commit View diff
54 catch (PDOException $e) {
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
55
  error_log("MAILCOWAUTH: " . $e . PHP_EOL);
Open commit View diff
55 error_log("MAILCOWAUTH: " . $e . PHP_EOL);
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
56
  http_response_code(500); // Internal Server Error
Open commit View diff
56 http_response_code(500); // Internal Server Error
FreddleSpl0it over 1 year ago b2db8e6

[Dovecot] init identity provider before user login

Full commit hash
b2db8e6b314d586a062b248b9553f533f4ed67a5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
57
  echo json_encode($return);
Open commit View diff
57 echo json_encode($return);
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
58
  exit;
Open commit View diff
58 exit;
same change dca5f1b

[Web] move /process/login to internal endpoint

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

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
60
Open commit View diff
60
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
61
// Load core functions first
Open commit View diff
61 // Load core functions first
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
62
require_once 'functions.inc.php';
Open commit View diff
62 require_once 'functions.inc.php';
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
63
require_once 'functions.auth.inc.php';
Open commit View diff
63 require_once 'functions.auth.inc.php';
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
64
require_once 'sessions.inc.php';
Open commit View diff
64 require_once 'sessions.inc.php';
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
65
require_once 'functions.mailbox.inc.php';
Open commit View diff
65 require_once 'functions.mailbox.inc.php';
FreddleSpl0it over 1 year ago 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
66
require_once 'functions.ratelimit.inc.php';
Open commit View diff
66 require_once 'functions.ratelimit.inc.php';
same change 896a963

Fix mailcowauth

Full commit hash
896a9638d6b55c15081a8ca0ee172797988640e5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
67
require_once 'functions.acl.inc.php';
Open commit View diff
67 require_once 'functions.acl.inc.php';
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
68
Open commit View diff
68
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
69
Open commit View diff
69
FreddleSpl0it over 2 years ago 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
70
$isSOGoRequest = $post['real_rip'] == getenv('IPV4_NETWORK') . '.248';
Open commit View diff
70 $isSOGoRequest = $post['real_rip'] == getenv('IPV4_NETWORK') . '.248';
same change 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
71
$result = false;
Open commit View diff
71 $result = false;
same change 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
72
if ($isSOGoRequest) {
Open commit View diff
72 if ($isSOGoRequest) {
same change 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
73
  // This is a SOGo Auth request. First check for SSO password.
Open commit View diff
73 // This is a SOGo Auth request. First check for SSO password.
same change 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
74
  $sogo_sso_pass = file_get_contents("/etc/sogo-sso/sogo-sso.pass");
Open commit View diff
74 $sogo_sso_pass = file_get_contents("/etc/sogo-sso/sogo-sso.pass");
same change 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
75
  if ($sogo_sso_pass === $post['password']){
Open commit View diff
75 if ($sogo_sso_pass === $post['password']){
same change 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
76
    error_log('MAILCOWAUTH: SOGo SSO auth for user ' . $post['username']);
Open commit View diff
76 error_log('MAILCOWAUTH: SOGo SSO auth for user ' . $post['username']);
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
77
    set_sasl_log($post['username'], $post['real_rip'], "SOGO");
Open commit View diff
77 set_sasl_log($post['username'], $post['real_rip'], "SOGO");
FreddleSpl0it over 2 years ago 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
78
    $result = true;
Open commit View diff
78 $result = true;
same change 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
79
  }
Open commit View diff
79 }
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
80
}
Open commit View diff
80 }
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
81
if ($result === false){
Open commit View diff
81 if ($result === false){
FreddleSpl0it over 1 year ago 766c5e8

[Dovecot] Ignore app passwords protocol access on SOGo request

Full commit hash
766c5e85801b9719e3447b935f03bb5dd84fda9e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
82
  // If it's a SOGo Request, don't check for protocol access
Open commit View diff
82 // If it's a SOGo Request, don't check for protocol access
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
83
  if ($isSOGoRequest) {
Open commit View diff
83 if ($isSOGoRequest) {
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
84
    $service = 'SOGO';
Open commit View diff
84 $service = 'SOGO';
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
85
    $post['service'] = 'NONE';
Open commit View diff
85 $post['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
86
  } else {
Open commit View diff
86 } else {
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
87
    $service = $post['service'];
Open commit View diff
87 $service = $post['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
88
  }
Open commit View diff
88 }
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
89
Open commit View diff
89
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
90
  $result = apppass_login($post['username'], $post['password'], array(
Open commit View diff
90 $result = apppass_login($post['username'], $post['password'], array(
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
91
    'service' => $post['service'],
Open commit View diff
91 'service' => $post['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
92
    'is_internal' => true,
Open commit View diff
92 'is_internal' => true,
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
    'remote_addr' => $post['real_rip']
Open commit View diff
93 'remote_addr' => $post['real_rip']
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
94
  ));
Open commit View diff
94 ));
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
95
  if ($result) {
Open commit View diff
95 if ($result) {
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
96
    error_log('MAILCOWAUTH: App auth for user ' . $post['username'] . " with service " . $service . " from IP " . $post['real_rip']);
Open commit View diff
96 error_log('MAILCOWAUTH: App auth for user ' . $post['username'] . " with service " . $service . " from IP " . $post['real_rip']);
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
97
    set_sasl_log($post['username'], $post['real_rip'], $service);
Open commit View diff
97 set_sasl_log($post['username'], $post['real_rip'], $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
98
  }
Open commit View diff
98 }
FreddleSpl0it over 2 years ago 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
99
}
Open commit View diff
99 }
same change 6928eb6

[Dovecot] move sogo sso to mailcowauth.php

Full commit hash
6928eb632efbb0862d890005f54e314f272f3c81
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
100
if ($result === false){
Open commit View diff
100 if ($result === false){
FreddleSpl0it over 1 year ago b2db8e6

[Dovecot] init identity provider before user login

Full commit hash
b2db8e6b314d586a062b248b9553f533f4ed67a5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
101
  // Init Identity Provider
Open commit View diff
101 // Init Identity Provider
same change b2db8e6

[Dovecot] init identity provider before user login

Full commit hash
b2db8e6b314d586a062b248b9553f533f4ed67a5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
102
  $iam_provider = identity_provider('init');
Open commit View diff
102 $iam_provider = identity_provider('init');
same change b2db8e6

[Dovecot] init identity provider before user login

Full commit hash
b2db8e6b314d586a062b248b9553f533f4ed67a5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
103
  $iam_settings = identity_provider('get');
Open commit View diff
103 $iam_settings = identity_provider('get');
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
104
  $result = user_login($post['username'], $post['password'], array('is_internal' => true, 'service' => $post['service']));
Open commit View diff
104 $result = user_login($post['username'], $post['password'], array('is_internal' => true, 'service' => $post['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
105
  if ($result) {
Open commit View diff
105 if ($result) {
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
106
    error_log('MAILCOWAUTH: User auth for user ' . $post['username'] . " with service " . $post['service'] . " from IP " . $post['real_rip']);
Open commit View diff
106 error_log('MAILCOWAUTH: User auth for user ' . $post['username'] . " with service " . $post['service'] . " from IP " . $post['real_rip']);
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
107
    set_sasl_log($post['username'], $post['real_rip'], $post['service']);
Open commit View diff
107 set_sasl_log($post['username'], $post['real_rip'], $post['service']);
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
108
  }
Open commit View diff
108 }
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
109
}
Open commit View diff
109 }
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
Open commit View diff
110
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
111
if ($result) {
Open commit View diff
111 if ($result) {
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
112
  http_response_code(200); // OK
Open commit View diff
112 http_response_code(200); // OK
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
  $return['success'] = true;
Open commit View diff
113 $return['success'] = true;
FreddleSpl0it about 3 years ago 3179c0e

[Dovecot] mailcowauth minor fixes

Full commit hash
3179c0e712258b8a9e2149b78aa9a31d5d35ca1a
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
114
} else {
Open commit View diff
114 } else {
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
115
  error_log("MAILCOWAUTH: Login failed for user " . $post['username'] . " with service " . $post['service'] . " from IP " . $post['real_rip']);
Open commit View diff
115 error_log("MAILCOWAUTH: Login failed for user " . $post['username'] . " with service " . $post['service'] . " from IP " . $post['real_rip']);
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
116
  http_response_code(401); // Unauthorized
Open commit View diff
116 http_response_code(401); // Unauthorized
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
117
}
Open commit View diff
117 }
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
118
Open commit View diff
118
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
119
Open commit View diff
119
FreddleSpl0it over 1 year ago b2db8e6

[Dovecot] init identity provider before user login

Full commit hash
b2db8e6b314d586a062b248b9553f533f4ed67a5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
120
echo json_encode($return);
Open commit View diff
120 echo json_encode($return);
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
121
session_destroy();
Open commit View diff
121 session_destroy();
FreddleSpl0it about 3 years ago 3179c0e

[Dovecot] mailcowauth minor fixes

Full commit hash
3179c0e712258b8a9e2149b78aa9a31d5d35ca1a
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
122
exit;
Open commit View diff
122 exit;