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/ldap-sync.php

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

ldap-sync.php on main
Author Date Commit Line Code
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
1
<?php
Open commit View diff
1 <?php
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
13
    PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
Open commit View diff
13 PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
15
    PDO::ATTR_EMULATE_PREPARES   => false,
Open commit View diff
15 PDO::ATTR_EMULATE_PREPARES => false,
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
20
catch (PDOException $e) {
Open commit View diff
20 catch (PDOException $e) {
same change 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());
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
27
$redis = new Redis();
Open commit View diff
27 $redis = new Redis();
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
29
  if (!empty(getenv('REDIS_SLAVEOF_IP'))) {
Open commit View diff
29 if (!empty(getenv('REDIS_SLAVEOF_IP'))) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 over 2 years ago a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
37
catch (Exception $e) {
Open commit View diff
37 catch (Exception $e) {
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
43
function logMsg($priority, $message, $task = "LDAP Sync") {
Open commit View diff
43 function logMsg($priority, $message, $task = "LDAP Sync") {
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
47
    "time" => time(),
Open commit View diff
47 "time" => time(),
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
48
    "priority" => $priority,
Open commit View diff
48 "priority" => $priority,
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
49
    "task" => $task,
Open commit View diff
49 "task" => $task,
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
55
// Load core functions first
Open commit View diff
55 // Load core functions first
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
71
$_SESSION['acl']['mailbox_relayhost'] = "1";
Open commit View diff
71 $_SESSION['acl']['mailbox_relayhost'] = "1";
same change 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";
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
74
$iam_settings = identity_provider('get');
Open commit View diff
74 $iam_settings = identity_provider('get');
same change 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'] != "ldap" || (intval($iam_settings['periodic_sync']) != 1 && intval($iam_settings['import_users']) != 1)) {
Open commit View diff
75 if ($iam_settings['authsource'] != "ldap" || (intval($iam_settings['periodic_sync']) != 1 && intval($iam_settings['import_users']) != 1)) {
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
81
$start = 0;
Open commit View diff
81 $start = 0;
FreddleSpl0it over 1 year ago e21696f

Add error message when mailbox creation fails

Full commit hash
e21696ff27c8793ce41f836d02d284ea958555de
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
82
$max = 100;
Open commit View diff
82 $max = 100;
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
83
Open commit View diff
83
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
84
// lock sync if already running
Open commit View diff
84 // lock sync if already running
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
88
  $pid = $lock_file_parts[0];
Open commit View diff
88 $pid = $lock_file_parts[0];
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
90
    $last_execution = $lock_file_parts[1];
Open commit View diff
90 $last_execution = $lock_file_parts[1];
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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'])) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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)");
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
99
  if (posix_kill($pid, 0)) {
Open commit View diff
99 if (posix_kill($pid, 0)) {
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
108
fwrite($lock_file_handle, getmypid());
Open commit View diff
108 fwrite($lock_file_handle, getmypid());
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 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 Provider
Open commit View diff
111 // Init 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 over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
114
// Get ldap users
Open commit View diff
114 // Get ldap users
FreddleSpl0it over 2 years ago 010d898

[Web] apply LDAP filter

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

[Web] apply LDAP filter

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

[Web] apply LDAP filter

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

[Web] apply LDAP filter

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

[Web] apply LDAP filter

Full commit hash
010d898786b78327240bb2f2608e973a65c5f859
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
119
$response = $ldap_query->where($iam_settings['username_field'], "*")
Open commit View diff
119 $response = $ldap_query->where($iam_settings['username_field'], "*")
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
120
  ->where($iam_settings['attribute_field'], "*")
Open commit View diff
120 ->where($iam_settings['attribute_field'], "*")
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
121
  ->select([$iam_settings['username_field'], $iam_settings['attribute_field'], 'displayname'])
Open commit View diff
121 ->select([$iam_settings['username_field'], $iam_settings['attribute_field'], 'displayname'])
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
122
  ->paginate($max);
Open commit View diff
122 ->paginate($max);
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
125
foreach ($response as $user) {
Open commit View diff
125 foreach ($response as $user) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
126
  // try get mailbox user
Open commit View diff
126 // try get mailbox user
FreddleSpl0it over 1 year ago e21696f

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

Full commit hash
e21696ff27c8793ce41f836d02d284ea958555de
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
130
    FROM `mailbox`
Open commit View diff
130 FROM `mailbox`
same change e21696f

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

Full commit hash
e21696ff27c8793ce41f836d02d284ea958555de
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
133
      AND `username` = :user");
Open commit View diff
133 AND `username` = :user");
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
134
  $stmt->execute(array(':user' => $user[$iam_settings['username_field']][0]));
Open commit View diff
134 $stmt->execute(array(':user' => $user[$iam_settings['username_field']][0]));
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
135
  $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
135 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
137
  // check if matching attribute mapping exists
Open commit View diff
137 // check if matching attribute mapping exists
FreddleSpl0it over 1 year ago 986b0af

ldap-sync: Fix template selection

Full commit hash
986b0afbfadeeddd220a95c1d7dba50b87ce9512
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
138
  $user_template = $user[$iam_settings['attribute_field']][0];
Open commit View diff
138 $user_template = $user[$iam_settings['attribute_field']][0];
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
139
  $mapper_key = array_search($user_template, $iam_settings['mappers']);
Open commit View diff
139 $mapper_key = array_search($user_template, $iam_settings['mappers']);
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
Open commit View diff
140
FreddleSpl0it almost 2 years ago ef238e5

[LDAP] skip sync user if username_field in LDAP is empty

Full commit hash
ef238e533214c8a3e9e6e4b4d9dfdd564bfd57e6
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
141
  if (empty($user[$iam_settings['username_field']][0])){
Open commit View diff
141 if (empty($user[$iam_settings['username_field']][0])){
FreddleSpl0it almost 2 years ago b307e0a

[PHP-FPM] Add missing space in log message

Full commit hash
b307e0a0d55474825d54f83b12339ee75c9b1a72
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
142
    logMsg("warning", "Skipping user " . $user['displayname'][0] . " due to empty LDAP ". $iam_settings['username_field'] . " property.");
Open commit View diff
142 logMsg("warning", "Skipping user " . $user['displayname'][0] . " due to empty LDAP ". $iam_settings['username_field'] . " property.");
FreddleSpl0it almost 2 years ago ef238e5

[LDAP] skip sync user if username_field in LDAP is empty

Full commit hash
ef238e533214c8a3e9e6e4b4d9dfdd564bfd57e6
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
143
    continue;
Open commit View diff
143 continue;
same change ef238e5

[LDAP] skip sync user if username_field in LDAP is empty

Full commit hash
ef238e533214c8a3e9e6e4b4d9dfdd564bfd57e6
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
144
  }
Open commit View diff
144 }
same change ef238e5

[LDAP] skip sync user if username_field in LDAP is empty

Full commit hash
ef238e533214c8a3e9e6e4b4d9dfdd564bfd57e6
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
145
Open commit View diff
145
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
146
  $_SESSION['access_all_exception'] = '1';
Open commit View diff
146 $_SESSION['access_all_exception'] = '1';
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
147
  if (!$row && intval($iam_settings['import_users']) == 1){
Open commit View diff
147 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
148
    if ($mapper_key === false){
Open commit View diff
148 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
149
      if (!empty($iam_settings['default_template'])) {
Open commit View diff
149 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
150
        $mbox_template = $iam_settings['default_template'];
Open commit View diff
150 $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
151
      } else {
Open commit View diff
151 } 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
152
        logMsg("warning", "No matching attribute mapping found for user " . $user[$iam_settings['username_field']][0]);
Open commit View diff
152 logMsg("warning", "No matching attribute mapping found for user " . $user[$iam_settings['username_field']][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
153
        continue;
Open commit View diff
153 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
154
      }
Open commit View diff
154 }
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
155
    } else {
Open commit View diff
155 } 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
156
      $mbox_template = $iam_settings['templates'][$mapper_key];
Open commit View diff
156 $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
157
    }
Open commit View diff
157 }
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
158
    // mailbox user does not exist, create...
Open commit View diff
158 // mailbox user does not exist, create...
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
159
    logMsg("info", "Creating user " .  $user[$iam_settings['username_field']][0]);
Open commit View diff
159 logMsg("info", "Creating user " . $user[$iam_settings['username_field']][0]);
FreddleSpl0it over 1 year ago e21696f

Add error message when mailbox creation fails

Full commit hash
e21696ff27c8793ce41f836d02d284ea958555de
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
160
    $create_res = mailbox('add', 'mailbox_from_template', array(
Open commit View diff
160 $create_res = mailbox('add', 'mailbox_from_template', array(
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
161
      'domain' => explode('@',  $user[$iam_settings['username_field']][0])[1],
Open commit View diff
161 'domain' => explode('@', $user[$iam_settings['username_field']][0])[1],
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
162
      'local_part' => explode('@',  $user[$iam_settings['username_field']][0])[0],
Open commit View diff
162 'local_part' => explode('@', $user[$iam_settings['username_field']][0])[0],
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
163
      'name' => $user['displayname'][0],
Open commit View diff
163 'name' => $user['displayname'][0],
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
164
      'authsource' => 'ldap',
Open commit View diff
164 'authsource' => 'ldap',
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
165
      'template' => $mbox_template
Open commit View diff
165 'template' => $mbox_template
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
166
    ));
Open commit View diff
166 ));
FreddleSpl0it over 1 year ago e21696f

Add error message when mailbox creation fails

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

Add error message when mailbox creation fails

Full commit hash
e21696ff27c8793ce41f836d02d284ea958555de
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
168
      logMsg("err", "Could not create user " . $user[$iam_settings['username_field']][0]);
Open commit View diff
168 logMsg("err", "Could not create user " . $user[$iam_settings['username_field']][0]);
same change e21696f

Add error message when mailbox creation fails

Full commit hash
e21696ff27c8793ce41f836d02d284ea958555de
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
169
      continue;
Open commit View diff
169 continue;
same change e21696f

Add error message when mailbox creation fails

Full commit hash
e21696ff27c8793ce41f836d02d284ea958555de
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
170
    }
Open commit View diff
170 }
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
171
  } else if ($row && intval($iam_settings['periodic_sync']) == 1 && $row['authsource'] == "ldap") {
Open commit View diff
171 } else if ($row && intval($iam_settings['periodic_sync']) == 1 && $row['authsource'] == "ldap") {
FreddleSpl0it over 1 year ago 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
172
    if ($mapper_key === false){
Open commit View diff
172 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
173
      logMsg("warning", "No matching attribute mapping found for user " . $user[$iam_settings['username_field']][0]);
Open commit View diff
173 logMsg("warning", "No matching attribute mapping found for user " . $user[$iam_settings['username_field']][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
174
      continue;
Open commit View diff
174 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
175
    }
Open commit View diff
175 }
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
    $mbox_template = $iam_settings['templates'][$mapper_key];
Open commit View diff
176 $mbox_template = $iam_settings['templates'][$mapper_key];
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
177
    // mailbox user does exist, sync attribtues...
Open commit View diff
177 // mailbox user does exist, sync attribtues...
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
178
    logMsg("info", "Syncing attributes for user " . $user[$iam_settings['username_field']][0]);
Open commit View diff
178 logMsg("info", "Syncing attributes for user " . $user[$iam_settings['username_field']][0]);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
179
    mailbox('edit', 'mailbox_from_template', array(
Open commit View diff
179 mailbox('edit', 'mailbox_from_template', array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
180
      'username' =>  $user[$iam_settings['username_field']][0],
Open commit View diff
180 'username' => $user[$iam_settings['username_field']][0],
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
181
      'name' => $user['displayname'][0],
Open commit View diff
181 'name' => $user['displayname'][0],
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
182
      'template' => $mbox_template
Open commit View diff
182 'template' => $mbox_template
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
186
    logMsg("info", "Skipping user " .  $user[$iam_settings['username_field']][0]);
Open commit View diff
186 logMsg("info", "Skipping user " . $user[$iam_settings['username_field']][0]);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
187
  }
Open commit View diff
187 }
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
188
  $_SESSION['access_all_exception'] = '0';
Open commit View diff
188 $_SESSION['access_all_exception'] = '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
189
Open commit View diff
189
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
193
logMsg("info", "DONE!");
Open commit View diff
193 logMsg("info", "DONE!");
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
194
// add last execution time to lock file
Open commit View diff
194 // add last execution time to lock file
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
195
$lock_file_handle = fopen($lock_file, 'w');
Open commit View diff
195 $lock_file_handle = fopen($lock_file, 'w');
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
196
fwrite($lock_file_handle, getmypid() . "\n" . time());
Open commit View diff
196 fwrite($lock_file_handle, getmypid() . "\n" . time());
same change a06c783

[Web] add ldap idp

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

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
198
session_destroy();
Open commit View diff
198 session_destroy();