mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-07-29 00:03:01 -04:00
Compare commits
2 Commits
e2edc7d445
...
e307ba8a5f
Author | SHA1 | Date | |
---|---|---|---|
|
e307ba8a5f | ||
|
c7c70f8511 |
@ -18,7 +18,7 @@ try {
|
||||
$pdo = new PDO($dsn, $database_user, $database_pass, $opt);
|
||||
}
|
||||
catch (PDOException $e) {
|
||||
logMsg("danger", $e->getMessage());
|
||||
logMsg("err", $e->getMessage());
|
||||
session_destroy();
|
||||
exit;
|
||||
}
|
||||
@ -127,18 +127,18 @@ while (true) {
|
||||
curl_close($ch);
|
||||
|
||||
if ($code != 200){
|
||||
logMsg("danger", "Recieved HTTP {$code}");
|
||||
logMsg("err", "Recieved HTTP {$code}");
|
||||
session_destroy();
|
||||
exit;
|
||||
}
|
||||
try {
|
||||
$response = json_decode($response, true);
|
||||
} catch (Exception $e) {
|
||||
logMsg("danger", $e->getMessage());
|
||||
logMsg("err", $e->getMessage());
|
||||
break;
|
||||
}
|
||||
if (!is_array($response)){
|
||||
logMsg("danger", "Recieved malformed response from keycloak api");
|
||||
logMsg("err", "Recieved malformed response from keycloak api");
|
||||
break;
|
||||
}
|
||||
if (count($response) == 0) {
|
||||
|
@ -18,7 +18,7 @@ try {
|
||||
$pdo = new PDO($dsn, $database_user, $database_pass, $opt);
|
||||
}
|
||||
catch (PDOException $e) {
|
||||
logMsg("danger", $e->getMessage());
|
||||
logMsg("err", $e->getMessage());
|
||||
session_destroy();
|
||||
exit;
|
||||
}
|
||||
|
@ -217,7 +217,7 @@
|
||||
"iam_client_id": "Client ID",
|
||||
"iam_client_secret": "Client Secret",
|
||||
"iam_client_scopes": "Client Scopes",
|
||||
"iam_description": "Configure an external OIDC Provider for Authentication<br>User's mailboxes will be automatically created upon their first login, provided that an attribute mapping has been set.",
|
||||
"iam_description": "Configure an external Provider for Authentication<br>User's mailboxes will be automatically created upon their first login, provided that an attribute mapping has been set.",
|
||||
"iam_extra_permission": "For the following settings to work, the mailcow client in Keycloak needs a <code>Service account</code> and the permission to <code>view-users</code>.",
|
||||
"iam_host": "Host",
|
||||
"iam_import_users": "Import Users",
|
||||
|
@ -287,7 +287,7 @@
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div id="ldap_settings" class="{% if not iam_settings.authsource and iam_settings.authsource != 'ldap' %}d-none{% endif %}">
|
||||
<div id="ldap_settings" class="{% if not iam_settings.authsource or iam_settings.authsource != 'ldap' %}d-none{% endif %}">
|
||||
<form class="form-horizontal" autocapitalize="none" data-id="iam_ldap" autocorrect="off" role="form" method="post">
|
||||
<input type="hidden" name="authsource" value="ldap">
|
||||
<div class="row mb-2">
|
||||
|
Loading…
x
Reference in New Issue
Block a user