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/phpfpm/crons/keycloak-sync.php

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

keycloak-sync.php on main
Author Date Commit Line Code
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2
Open commit View diff
2
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
4
if (file_exists(__DIR__ . '/../web/inc/vars.local.inc.php')) {
Open commit View diff
4 if (file_exists(__DIR__ . '/../web/inc/vars.local.inc.php')) {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
5
  include_once(__DIR__ . '/../web/inc/vars.local.inc.php');
Open commit View diff
5 include_once(__DIR__ . '/../web/inc/vars.local.inc.php');
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
7
require_once __DIR__ . '/../web/inc/lib/vendor/autoload.php';
Open commit View diff
7 require_once __DIR__ . '/../web/inc/lib/vendor/autoload.php';
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
8
Open commit View diff
8
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
9
// Init database
Open commit View diff
9 // Init database
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
10
//$dsn = $database_type . ':host=' . $database_host . ';dbname=' . $database_name;
Open commit View diff
10 //$dsn = $database_type . ':host=' . $database_host . ';dbname=' . $database_name;
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
12
$opt = [
Open commit View diff
12 $opt = [
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
13
    PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
Open commit View diff
13 PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
14
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
Open commit View diff
14 PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
15
    PDO::ATTR_EMULATE_PREPARES   => false,
Open commit View diff
15 PDO::ATTR_EMULATE_PREPARES => false,
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
16
];
Open commit View diff
16 ];
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
17
try {
Open commit View diff
17 try {
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
20
catch (PDOException $e) {
Open commit View diff
20 catch (PDOException $e) {
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
21
  logMsg("err", $e->getMessage());
Open commit View diff
21 logMsg("err", $e->getMessage());
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
22
  session_destroy();
Open commit View diff
22 session_destroy();
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
23
  exit;
Open commit View diff
23 exit;
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
25
Open commit View diff
25
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
26
// Init Redis
Open commit View diff
26 // Init Redis
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
27
$redis = new Redis();
Open commit View diff
27 $redis = new Redis();
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
28
try {
Open commit View diff
28 try {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
29
  if (!empty(getenv('REDIS_SLAVEOF_IP'))) {
Open commit View diff
29 if (!empty(getenv('REDIS_SLAVEOF_IP'))) {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years 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 f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
32
  else {
Open commit View diff
32 else {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
33
    $redis->connect('redis-mailcow', 6379);
Open commit View diff
33 $redis->connect('redis-mailcow', 6379);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years 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 about 3 years ago f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
37
catch (Exception $e) {
Open commit View diff
37 catch (Exception $e) {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
38
  echo "Exiting: " . $e->getMessage();
Open commit View diff
38 echo "Exiting: " . $e->getMessage();
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
39
  session_destroy();
Open commit View diff
39 session_destroy();
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
40
  exit;
Open commit View diff
40 exit;
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
42
Open commit View diff
42
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
43
function logMsg($priority, $message, $task = "Keycloak Sync") {
Open commit View diff
43 function logMsg($priority, $message, $task = "Keycloak Sync") {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
44
  global $redis;
Open commit View diff
44 global $redis;
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
45
Open commit View diff
45
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
46
  $finalMsg = array(
Open commit View diff
46 $finalMsg = array(
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
47
    "time" => time(),
Open commit View diff
47 "time" => time(),
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
48
    "priority" => $priority,
Open commit View diff
48 "priority" => $priority,
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
49
    "task" => $task,
Open commit View diff
49 "task" => $task,
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
50
    "message" => $message
Open commit View diff
50 "message" => $message
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
51
  );
Open commit View diff
51 );
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
52
  $redis->lPush('CRON_LOG', json_encode($finalMsg));
Open commit View diff
52 $redis->lPush('CRON_LOG', json_encode($finalMsg));
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
54
Open commit View diff
54
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
55
// Load core functions first
Open commit View diff
55 // Load core functions first
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
56
require_once __DIR__ . '/../web/inc/functions.inc.php';
Open commit View diff
56 require_once __DIR__ . '/../web/inc/functions.inc.php';
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
57
require_once __DIR__ . '/../web/inc/functions.auth.inc.php';
Open commit View diff
57 require_once __DIR__ . '/../web/inc/functions.auth.inc.php';
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
58
require_once __DIR__ . '/../web/inc/sessions.inc.php';
Open commit View diff
58 require_once __DIR__ . '/../web/inc/sessions.inc.php';
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
59
require_once __DIR__ . '/../web/inc/functions.mailbox.inc.php';
Open commit View diff
59 require_once __DIR__ . '/../web/inc/functions.mailbox.inc.php';
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
60
require_once __DIR__ . '/../web/inc/functions.ratelimit.inc.php';
Open commit View diff
60 require_once __DIR__ . '/../web/inc/functions.ratelimit.inc.php';
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
61
require_once __DIR__ . '/../web/inc/functions.acl.inc.php';
Open commit View diff
61 require_once __DIR__ . '/../web/inc/functions.acl.inc.php';
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
62
Open commit View diff
62
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
63
$_SESSION['mailcow_cc_username'] = "admin";
Open commit View diff
63 $_SESSION['mailcow_cc_username'] = "admin";
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
64
$_SESSION['mailcow_cc_role'] = "admin";
Open commit View diff
64 $_SESSION['mailcow_cc_role'] = "admin";
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
65
$_SESSION['acl']['tls_policy'] = "1";
Open commit View diff
65 $_SESSION['acl']['tls_policy'] = "1";
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
66
$_SESSION['acl']['quarantine_notification'] = "1";
Open commit View diff
66 $_SESSION['acl']['quarantine_notification'] = "1";
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
67
$_SESSION['acl']['quarantine_category'] = "1";
Open commit View diff
67 $_SESSION['acl']['quarantine_category'] = "1";
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
68
$_SESSION['acl']['ratelimit'] = "1";
Open commit View diff
68 $_SESSION['acl']['ratelimit'] = "1";
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
69
$_SESSION['acl']['sogo_access'] = "1";
Open commit View diff
69 $_SESSION['acl']['sogo_access'] = "1";
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
70
$_SESSION['acl']['protocol_access'] = "1";
Open commit View diff
70 $_SESSION['acl']['protocol_access'] = "1";
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
71
$_SESSION['acl']['mailbox_relayhost'] = "1";
Open commit View diff
71 $_SESSION['acl']['mailbox_relayhost'] = "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
72
$_SESSION['acl']['unlimited_quota'] = "1";
Open commit View diff
72 $_SESSION['acl']['unlimited_quota'] = "1";
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
73
Open commit View diff
73
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
74
$iam_settings = identity_provider('get');
Open commit View diff
74 $iam_settings = identity_provider('get');
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
75
if ($iam_settings['authsource'] != "keycloak" || (intval($iam_settings['periodic_sync']) != 1 && intval($iam_settings['import_users']) != 1)) {
Open commit View diff
75 if ($iam_settings['authsource'] != "keycloak" || (intval($iam_settings['periodic_sync']) != 1 && intval($iam_settings['import_users']) != 1)) {
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
76
  session_destroy();
Open commit View diff
76 session_destroy();
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
77
  exit;
Open commit View diff
77 exit;
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
79
Open commit View diff
79
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
80
// Set pagination variables
Open commit View diff
80 // Set pagination variables
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
81
$start = 0;
Open commit View diff
81 $start = 0;
FreddleSpl0it over 1 year ago 5a72758

Add error message when mailbox creation fails

Full commit hash
5a7275843ad35a383e14c4d05cceffbec5d6db2d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
82
$max = 100;
Open commit View diff
82 $max = 100;
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
83
Open commit View diff
83
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
84
// lock sync if already running
Open commit View diff
84 // lock sync if already running
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
85
$lock_file = '/tmp/iam-sync.lock';
Open commit View diff
85 $lock_file = '/tmp/iam-sync.lock';
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
86
if (file_exists($lock_file)) {
Open commit View diff
86 if (file_exists($lock_file)) {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
87
  $lock_file_parts = explode("\n", file_get_contents($lock_file));
Open commit View diff
87 $lock_file_parts = explode("\n", file_get_contents($lock_file));
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
88
  $pid = $lock_file_parts[0];
Open commit View diff
88 $pid = $lock_file_parts[0];
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
89
  if (count($lock_file_parts) > 1){
Open commit View diff
89 if (count($lock_file_parts) > 1){
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
90
    $last_execution = $lock_file_parts[1];
Open commit View diff
90 $last_execution = $lock_file_parts[1];
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
91
    $elapsed_time = (time() - $last_execution) / 60;
Open commit View diff
91 $elapsed_time = (time() - $last_execution) / 60;
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
92
    if ($elapsed_time < intval($iam_settings['sync_interval'])) {
Open commit View diff
92 if ($elapsed_time < intval($iam_settings['sync_interval'])) {
FreddleSpl0it almost 3 years ago 3d48667

[Web] remove keycloak sync disabled warning

Full commit hash
3d486678ae275895fe8242af7cca3ef4fb2f0839
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
93
      logMsg("warning", "Sync not ready (".number_format((float)$elapsed_time, 2, '.', '')."min / ".$iam_settings['sync_interval']."min)");
Open commit View diff
93 logMsg("warning", "Sync not ready (".number_format((float)$elapsed_time, 2, '.', '')."min / ".$iam_settings['sync_interval']."min)");
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
94
      session_destroy();
Open commit View diff
94 session_destroy();
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
95
      exit;
Open commit View diff
95 exit;
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
98
Open commit View diff
98
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
99
  if (posix_kill($pid, 0)) {
Open commit View diff
99 if (posix_kill($pid, 0)) {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
100
    logMsg("warning", "Sync is already running");
Open commit View diff
100 logMsg("warning", "Sync is already running");
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
101
    session_destroy();
Open commit View diff
101 session_destroy();
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
102
    exit;
Open commit View diff
102 exit;
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
103
  } else {
Open commit View diff
103 } else {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
104
    unlink($lock_file);
Open commit View diff
104 unlink($lock_file);
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
107
$lock_file_handle = fopen($lock_file, 'w');
Open commit View diff
107 $lock_file_handle = fopen($lock_file, 'w');
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
108
fwrite($lock_file_handle, getmypid());
Open commit View diff
108 fwrite($lock_file_handle, getmypid());
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
109
fclose($lock_file_handle);
Open commit View diff
109 fclose($lock_file_handle);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
110
Open commit View diff
110
FreddleSpl0it over 2 years ago d237157

init identity_provider only after all conditions are met

Full commit hash
d237157c0b743434ce213d895a130e02a0b06b3e
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
111
// Init Keycloak Provider
Open commit View diff
111 // Init Keycloak Provider
same change d237157

init identity_provider only after all conditions are met

Full commit hash
d237157c0b743434ce213d895a130e02a0b06b3e
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
112
$iam_provider = identity_provider('init');
Open commit View diff
112 $iam_provider = identity_provider('init');
same change d237157

init identity_provider only after all conditions are met

Full commit hash
d237157c0b743434ce213d895a130e02a0b06b3e
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
113
Open commit View diff
113
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
114
// Loop until all users have been retrieved
Open commit View diff
114 // Loop until all users have been retrieved
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
115
while (true) {
Open commit View diff
115 while (true) {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
116
  // Get admin access token
Open commit View diff
116 // Get admin access token
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
117
  $admin_token = identity_provider("get-keycloak-admin-token");
Open commit View diff
117 $admin_token = identity_provider("get-keycloak-admin-token");
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
118
Open commit View diff
118
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
119
  // Make the API request to retrieve the users
Open commit View diff
119 // Make the API request to retrieve the users
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
120
  $url = "{$iam_settings['server_url']}/admin/realms/{$iam_settings['realm']}/users?first=$start&max=$max";
Open commit View diff
120 $url = "{$iam_settings['server_url']}/admin/realms/{$iam_settings['realm']}/users?first=$start&max=$max";
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
121
  $ch = curl_init();
Open commit View diff
121 $ch = curl_init();
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
122
  curl_setopt($ch, CURLOPT_URL, $url);
Open commit View diff
122 curl_setopt($ch, CURLOPT_URL, $url);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
123
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
Open commit View diff
123 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
124
  curl_setopt($ch, CURLOPT_HTTPHEADER, [
Open commit View diff
124 curl_setopt($ch, CURLOPT_HTTPHEADER, [
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
125
    "Content-Type: application/json",
Open commit View diff
125 "Content-Type: application/json",
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
126
    "Authorization: Bearer " . $admin_token
Open commit View diff
126 "Authorization: Bearer " . $admin_token
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
127
  ]);
Open commit View diff
127 ]);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
128
  $response = curl_exec($ch);
Open commit View diff
128 $response = curl_exec($ch);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
129
  $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
Open commit View diff
129 $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
130
  curl_close($ch);
Open commit View diff
130 curl_close($ch);
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
131
Open commit View diff
131
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
132
  if ($code != 200){
Open commit View diff
132 if ($code != 200){
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
133
    logMsg("err", "Received HTTP {$code}");
Open commit View diff
133 logMsg("err", "Received HTTP {$code}");
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
134
    session_destroy();
Open commit View diff
134 session_destroy();
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
135
    exit;
Open commit View diff
135 exit;
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
137
  try {
Open commit View diff
137 try {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
138
    $response = json_decode($response, true);
Open commit View diff
138 $response = json_decode($response, true);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
139
  } catch (Exception $e) {
Open commit View diff
139 } catch (Exception $e) {
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
140
    logMsg("err", $e->getMessage());
Open commit View diff
140 logMsg("err", $e->getMessage());
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
141
    break;
Open commit View diff
141 break;
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
143
  if (!is_array($response)){
Open commit View diff
143 if (!is_array($response)){
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
144
    logMsg("err", "Received malformed response from keycloak api");
Open commit View diff
144 logMsg("err", "Received malformed response from keycloak api");
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
145
    break;
Open commit View diff
145 break;
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
147
  if (count($response) == 0) {
Open commit View diff
147 if (count($response) == 0) {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
148
    break;
Open commit View diff
148 break;
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
150
Open commit View diff
150
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
151
  // Process the batch of users
Open commit View diff
151 // Process the batch of users
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
152
  foreach ($response as $user) {
Open commit View diff
152 foreach ($response as $user) {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
153
    if (empty($user['email'])){
Open commit View diff
153 if (empty($user['email'])){
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
154
      logMsg("warning", "No email address in keycloak found for user " . $user['name']);
Open commit View diff
154 logMsg("warning", "No email address in keycloak found for user " . $user['name']);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
155
      continue;
Open commit View diff
155 continue;
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
157
Open commit View diff
157
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
158
    // try get mailbox user
Open commit View diff
158 // try get mailbox user
FreddleSpl0it over 1 year ago 5a72758

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

Full commit hash
5a7275843ad35a383e14c4d05cceffbec5d6db2d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
160
      mailbox.*,
Open commit View diff
160 mailbox.*,
same change 5a72758

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

Full commit hash
5a7275843ad35a383e14c4d05cceffbec5d6db2d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
162
      FROM `mailbox`
Open commit View diff
162 FROM `mailbox`
same change 5a72758

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

Full commit hash
5a7275843ad35a383e14c4d05cceffbec5d6db2d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
165
        AND `username` = :user");
Open commit View diff
165 AND `username` = :user");
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
166
    $stmt->execute(array(':user' => $user['email']));
Open commit View diff
166 $stmt->execute(array(':user' => $user['email']));
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
167
    $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
167 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
168
Open commit View diff
168
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
169
    // check if matching attribute mapping exists
Open commit View diff
169 // check if matching attribute mapping exists
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
170
    $user_template = $user['attributes']['mailcow_template'][0];
Open commit View diff
170 $user_template = $user['attributes']['mailcow_template'][0];
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
171
    $mapper_key = array_search($user_template, $iam_settings['mappers']);
Open commit View diff
171 $mapper_key = array_search($user_template, $iam_settings['mappers']);
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
172
Open commit View diff
172
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
173
    $_SESSION['access_all_exception'] = '1';
Open commit View diff
173 $_SESSION['access_all_exception'] = '1';
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
174
    if (!$row && intval($iam_settings['import_users']) == 1){
Open commit View diff
174 if (!$row && intval($iam_settings['import_users']) == 1){
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
175
      if ($mapper_key === false){
Open commit View diff
175 if ($mapper_key === 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
176
        if (!empty($iam_settings['default_template'])) {
Open commit View diff
176 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
177
          $mbox_template = $iam_settings['default_template'];
Open commit View diff
177 $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
178
          logMsg("warning", "Using default template for user " . $user['email']);
Open commit View diff
178 logMsg("warning", "Using default template for user " . $user['email']);
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
179
        } else {
Open commit View diff
179 } 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
180
          logMsg("warning", "No matching attribute mapping found for user " . $user['email']);
Open commit View diff
180 logMsg("warning", "No matching attribute mapping found for user " . $user['email']);
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
181
          continue;
Open commit View diff
181 continue;
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
182
        }
Open commit View diff
182 }
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
183
      } else {
Open commit View diff
183 } 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
184
        $mbox_template = $iam_settings['templates'][$mapper_key];
Open commit View diff
184 $mbox_template = $iam_settings['templates'][$mapper_key];
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
185
      }
Open commit View diff
185 }
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
186
      // mailbox user does not exist, create...
Open commit View diff
186 // mailbox user does not exist, create...
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
187
      logMsg("info", "Creating user " . $user['email']);
Open commit View diff
187 logMsg("info", "Creating user " . $user['email']);
FreddleSpl0it over 1 year ago 5a72758

Add error message when mailbox creation fails

Full commit hash
5a7275843ad35a383e14c4d05cceffbec5d6db2d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
188
      $create_res = mailbox('add', 'mailbox_from_template', array(
Open commit View diff
188 $create_res = mailbox('add', 'mailbox_from_template', array(
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
190
        'local_part' => explode('@', $user['email'])[0],
Open commit View diff
190 'local_part' => explode('@', $user['email'])[0],
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
191
        'name' => $user['firstName'] . " " . $user['lastName'],
Open commit View diff
191 'name' => $user['firstName'] . " " . $user['lastName'],
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
192
        'authsource' => 'keycloak',
Open commit View diff
192 'authsource' => 'keycloak',
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
193
        'template' => $mbox_template
Open commit View diff
193 'template' => $mbox_template
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
194
      ));
Open commit View diff
194 ));
FreddleSpl0it over 1 year ago 5a72758

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

Full commit hash
5a7275843ad35a383e14c4d05cceffbec5d6db2d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
196
        logMsg("err", "Could not create user " . $user['email']);
Open commit View diff
196 logMsg("err", "Could not create user " . $user['email']);
same change 5a72758

Add error message when mailbox creation fails

Full commit hash
5a7275843ad35a383e14c4d05cceffbec5d6db2d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
197
        continue;
Open commit View diff
197 continue;
same change 5a72758

Add error message when mailbox creation fails

Full commit hash
5a7275843ad35a383e14c4d05cceffbec5d6db2d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
198
      }
Open commit View diff
198 }
FreddleSpl0it over 1 year ago e654780

[Web] Prevent user sync for mismatched authsource

Full commit hash
e65478076b48e6986f0bec0e8b5020697192340d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
199
    } else if ($row && intval($iam_settings['periodic_sync']) == 1 && $row['authsource'] == "keycloak") {
Open commit View diff
199 } else if ($row && intval($iam_settings['periodic_sync']) == 1 && $row['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
200
      if ($mapper_key === false){
Open commit View diff
200 if ($mapper_key === 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
201
        logMsg("warning", "No matching attribute mapping found for user " . $user['email']);
Open commit View diff
201 logMsg("warning", "No matching attribute mapping found for user " . $user['email']);
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
202
        continue;
Open commit View diff
202 continue;
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
203
      }
Open commit View diff
203 }
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
204
      $mbox_template = $iam_settings['templates'][$mapper_key];
Open commit View diff
204 $mbox_template = $iam_settings['templates'][$mapper_key];
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
205
      // mailbox user does exist, sync attribtues...
Open commit View diff
205 // mailbox user does exist, sync attribtues...
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
206
      logMsg("info", "Syncing attributes for user " . $user['email']);
Open commit View diff
206 logMsg("info", "Syncing attributes for user " . $user['email']);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
207
      mailbox('edit', 'mailbox_from_template', array(
Open commit View diff
207 mailbox('edit', 'mailbox_from_template', array(
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
208
        'username' => $user['email'],
Open commit View diff
208 'username' => $user['email'],
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
209
        'name' => $user['firstName'] . " " . $user['lastName'],
Open commit View diff
209 'name' => $user['firstName'] . " " . $user['lastName'],
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
210
        'template' => $mbox_template
Open commit View diff
210 'template' => $mbox_template
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
211
      ));
Open commit View diff
211 ));
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
212
    } else {
Open commit View diff
212 } else {
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
213
      // skip mailbox user
Open commit View diff
213 // skip mailbox user
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
214
      logMsg("info", "Skipping user " . $user['email']);
Open commit View diff
214 logMsg("info", "Skipping user " . $user['email']);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
215
    }
Open commit View diff
215 }
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
216
    $_SESSION['access_all_exception'] = '0';
Open commit View diff
216 $_SESSION['access_all_exception'] = '0';
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
217
Open commit View diff
217
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
218
    sleep(0.025);
Open commit View diff
218 sleep(0.025);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
219
  }
Open commit View diff
219 }
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
220
Open commit View diff
220
FreddleSpl0it about 3 years ago f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
221
  // Update the pagination variables for the next batch
Open commit View diff
221 // Update the pagination variables for the next batch
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
222
  $start += $max;
Open commit View diff
222 $start += $max;
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
223
  sleep(1);
Open commit View diff
223 sleep(1);
same change f8647bb

[Web] add keycloak sync crontask

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

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
225
Open commit View diff
225
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
226
logMsg("info", "DONE!");
Open commit View diff
226 logMsg("info", "DONE!");
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
227
// add last execution time to lock file
Open commit View diff
227 // add last execution time to lock file
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
228
$lock_file_handle = fopen($lock_file, 'w');
Open commit View diff
228 $lock_file_handle = fopen($lock_file, 'w');
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
229
fwrite($lock_file_handle, getmypid() . "\n" . time());
Open commit View diff
229 fwrite($lock_file_handle, getmypid() . "\n" . time());
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
230
fclose($lock_file_handle);
Open commit View diff
230 fclose($lock_file_handle);
same change f8647bb

[Web] add keycloak sync crontask

Full commit hash
f8647bb15eecc44d1bbd15cd5ea26a41e87f6606
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
231
session_destroy();
Open commit View diff
231 session_destroy();