| Line 71... |
Line 71... |
| 71 |
$l_error_details = "Détails des erreurs";
|
71 |
$l_error_details = "Détails des erreurs";
|
| 72 |
$l_field = "Champ";
|
72 |
$l_field = "Champ";
|
| 73 |
$l_go_network_conf_page = "Allez sur la page de configuration réseau.";
|
73 |
$l_go_network_conf_page = "Allez sur la page de configuration réseau.";
|
| 74 |
$l_host_name = "Nom d'hôte";
|
74 |
$l_host_name = "Nom d'hôte";
|
| 75 |
$l_hosts_settings = "Paramètres de réplication des hôtes";
|
75 |
$l_hosts_settings = "Paramètres de réplication des hôtes";
|
| 76 |
$l_import_ssh_key = "Importer une clé SSH";
|
76 |
$l_import_ssh_key = "Si cet ALCASAR est primaire, importez ici les clés publiques des secondaires";
|
| 77 |
$l_install_repl = "Installer la fédération";
|
77 |
$l_install_repl = "Installer la fédération";
|
| 78 |
$l_ip_address = "Adresse IP";
|
78 |
$l_ip_address = "Adresse IP";
|
| 79 |
$l_no_primary_connected = "Aucun primaire connecté";
|
79 |
$l_no_primary_connected = "Aucun primaire connecté";
|
| 80 |
$l_no_ssh_key = "Pas de clé SSH.";
|
80 |
$l_no_ssh_key = "Pas de clé SSH.";
|
| 81 |
$l_not_connected = "Non connecté";
|
81 |
$l_not_connected = "Non connecté";
|
| 82 |
$l_pubkey_to_deploy = "La clé doit être déployée sur les serveurs primaires.";
|
82 |
$l_pubkey_to_deploy = "Si cet ALCASAR est secondaire, copiez la clé publique ci-dessous pour l'importez dans le primaire.";
|
| 83 |
$l_remote_access_mgmt = "Gestion des accès distants";
|
83 |
$l_remote_access_mgmt = "Gestion des accès distants";
|
| 84 |
$l_remote_role = "Rôle de l'hôte distant";
|
84 |
$l_remote_role = "Rôle de l'hôte distant";
|
| 85 |
$l_repl_io_running = "État";
|
85 |
$l_repl_io_running = "État";
|
| 86 |
$l_replication_install = "Installer la Fédération";
|
86 |
$l_replication_install = "Installer la Fédération";
|
| 87 |
$l_replication_title = "Fédération";
|
87 |
$l_replication_title = "Fédération";
|
| 88 |
$l_role_primary = "Primaire";
|
88 |
$l_role_primary = "Primaire";
|
| 89 |
$l_role_secondary = "Secondaire";
|
89 |
$l_role_secondary = "Secondaire";
|
| 90 |
$l_ssh_keys_for_primary = "Liste des clés autorisées à se connecter à l'utilisateur local 'replication'.";
|
90 |
$l_ssh_keys_for_primary = "Liste des secondaires autorisées à se connecter";
|
| 91 |
$l_ssh_port = "Port SSH";
|
91 |
$l_ssh_port = "Port SSH";
|
| 92 |
$l_ssh_user = "Utilisateur SSH";
|
92 |
$l_ssh_user = "Utilisateur SSH";
|
| 93 |
$l_ssh_wan_enabled = "Le SSH sur le WAN est activé.";
|
93 |
$l_ssh_wan_enabled = "Le SSH sur le WAN est activé.";
|
| 94 |
$l_ssh_wan_must_be_on = "Le SSH sur le WAN doit être activé.";
|
94 |
$l_ssh_wan_must_be_on = "Le SSH sur le WAN doit être activé.";
|
| 95 |
$l_start = "Démarrer";
|
95 |
$l_start = "Démarrer";
|
| Line 670... |
Line 670... |
| 670 |
<td width="25%" valign="middle" align="center">
|
670 |
<td width="25%" valign="middle" align="center">
|
| 671 |
<?php $section = "add_ssh_key" ?>
|
671 |
<?php $section = "add_ssh_key" ?>
|
| 672 |
<form action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>" method="POST" enctype="multipart/form-data">
|
672 |
<form action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>" method="POST" enctype="multipart/form-data">
|
| 673 |
<input type="hidden" name="choice" value="<?= $section ?>">
|
673 |
<input type="hidden" name="choice" value="<?= $section ?>">
|
| 674 |
<input type="hidden" name="MAX_FILE_SIZE" value="<?= $max_ssh_file_size ?>" />
|
674 |
<input type="hidden" name="MAX_FILE_SIZE" value="<?= $max_ssh_file_size ?>" />
|
| 675 |
<label for="new_ssh_key_input"><b><?= $l_import_ssh_key ?></b></label>
|
675 |
<label for="new_ssh_key_input"><?= $l_import_ssh_key ?><br></label>
|
| 676 |
<br>
|
676 |
<br>
|
| 677 |
<input type="file" name="new_ssh_key_input" id="new_ssh_key_input" accept=".pub">
|
677 |
<input type="file" name="new_ssh_key_input" id="new_ssh_key_input" accept=".pub">
|
| 678 |
<br>
|
678 |
<br>
|
| 679 |
<input type="submit" class="button" value="<?= $l_add_to_list ?>" onClick="document.getElementById('ldoverlay').style.display='block';">
|
679 |
<input type="submit" class="button" value="<?= $l_add_to_list ?>" onClick="document.getElementById('ldoverlay').style.display='block';">
|
| 680 |
</form>
|
680 |
</form>
|
| Line 684... |
Line 684... |
| 684 |
<textarea readonly cols=50 rows=10><?= $errors_msg[$section."_error"] ?></textarea>
|
684 |
<textarea readonly cols=50 rows=10><?= $errors_msg[$section."_error"] ?></textarea>
|
| 685 |
</details>
|
685 |
</details>
|
| 686 |
<?php } ?>
|
686 |
<?php } ?>
|
| 687 |
</td>
|
687 |
</td>
|
| 688 |
<td width="25%" valign="middle" align="center">
|
688 |
<td width="25%" valign="middle" align="center">
|
| 689 |
<label for="pubkey_stdout"><?= $l_pubkey_to_deploy ?></label>
|
689 |
<label for="pubkey_stdout"><?= $l_pubkey_to_deploy ?><br></label>
|
| 690 |
<br>
|
690 |
<br>
|
| 691 |
<?php
|
691 |
<?php
|
| 692 |
$stdout = [];
|
692 |
$stdout = [];
|
| 693 |
$return = 0;
|
693 |
$return = 0;
|
| 694 |
exec("sudo /usr/local/bin/alcasar-replication-ssh-keys-management.sh --show-pubkey 2>&1", $stdout, $return);
|
694 |
exec("sudo /usr/local/bin/alcasar-replication-ssh-keys-management.sh --show-pubkey 2>&1", $stdout, $return);
|