|
@@ -70,8 +70,6 @@ $_SESSION['acl']['protocol_access'] = "1";
|
|
$_SESSION['acl']['mailbox_relayhost'] = "1";
|
|
$_SESSION['acl']['mailbox_relayhost'] = "1";
|
|
$_SESSION['acl']['unlimited_quota'] = "1";
|
|
$_SESSION['acl']['unlimited_quota'] = "1";
|
|
|
|
|
|
-// Init Keycloak Provider
|
|
|
|
-$iam_provider = identity_provider('init');
|
|
|
|
$iam_settings = identity_provider('get');
|
|
$iam_settings = identity_provider('get');
|
|
if ($iam_settings['authsource'] != "keycloak" || (intval($iam_settings['periodic_sync']) != 1 && intval($iam_settings['import_users']) != 1)) {
|
|
if ($iam_settings['authsource'] != "keycloak" || (intval($iam_settings['periodic_sync']) != 1 && intval($iam_settings['import_users']) != 1)) {
|
|
session_destroy();
|
|
session_destroy();
|
|
@@ -109,6 +107,9 @@ $lock_file_handle = fopen($lock_file, 'w');
|
|
fwrite($lock_file_handle, getmypid());
|
|
fwrite($lock_file_handle, getmypid());
|
|
fclose($lock_file_handle);
|
|
fclose($lock_file_handle);
|
|
|
|
|
|
|
|
+// Init Keycloak Provider
|
|
|
|
+$iam_provider = identity_provider('init');
|
|
|
|
+
|
|
// Loop until all users have been retrieved
|
|
// Loop until all users have been retrieved
|
|
while (true) {
|
|
while (true) {
|
|
// Get admin access token
|
|
// Get admin access token
|