63,7 → 63,7 |
$l_ldap_user_text = "CN=Common Name. Laissez vide pour utiliser un accès invité (ou anonyme). Obligatoire sur un AD.<br> - Exemple LDAP : 'uid=username,ou=my_lan,o=mycompany,c=FR'.<br> - Exemple AD : 'username' ou 'cn=username,cn=Users,dc=server_name,dc=localdomain'"; |
$l_ldap_password_label = "Mot de passe:"; |
$l_ldap_password_text = "Laissez vide pour un accès invité (ou anonyme). Obligatoire sur un AD."; |
$l_ldap_submit = "Enregistrer et vérifier"; |
$l_ldap_submit = "Enregistrer"; |
$l_ldap_test_service_failed = "Service LDAP injoignable sur ce serveur (vérifiez l'@IP)."; |
$l_ldap_test_service_ok = "Un port 389 est actif sur ce serveur"; |
$l_ldap_test_connection_failed = "Connexion LDAP impossible (vérifiez le service LDAP sur ce serveur)"; |
74,7 → 74,7 |
$l_ldap_test_dn_ok = "Le DN de la base semble correct"; |
$l_ldap_error = "erreur LDAP"; |
$l_ldap_entries = "entrées dans la base"; |
$l_ldap_push_config = "Activer cette configuration"; |
$l_check = "Vérifier cette configuration"; |
} else { // English |
$l_ldap_update = "LDAP settings updated"; |
$l_ldap_title = "External authentication : LDAP"; |
94,7 → 94,7 |
$l_ldap_user_text = "CN=Common Name. Leave blank to use anonymous binding. Mandatory for AD.<br> e.g. LDAP :'uid=Username,ou=my_lan,o=mycompany,c=US'.<br> e.g. AD : 'username' or 'cn=username,cn=Users,dc=server_name,dc=localdomain'"; |
$l_ldap_password_label = "Password:"; |
$l_ldap_password_text = "Leave blank to use anonymous binding. Mandatory for AD."; |
$l_ldap_submit = "Save & Check"; |
$l_ldap_submit = "Save"; |
$l_ldap_test_service_failed = "LDAP service is not reachable on that server (check IP)"; |
$l_ldap_test_service_ok = "A port 389 is open on this server"; |
$l_ldap_test_connection_failed = "LDAP connexion failed (check the LDAP service on this server)"; |
105,7 → 105,7 |
$l_ldap_test_dn_ok = "DN of the base seems to be ok"; |
$l_ldap_error = "LDAP error"; |
$l_ldap_entries = "entries in the base"; |
$l_ldap_push_config = "Activate this configuration"; |
$l_check = "Check this config"; |
} |
|
|
184,13 → 184,11 |
exec('sed -i '.escapeshellarg("s/^LDAP_USER=.*/LDAP_USER=$ldap_user/g").' '.CONF_FILE); |
exec('sed -i '.escapeshellarg("s/^LDAP_PASSWORD=.*/LDAP_PASSWORD=$ldap_password/g").' '.CONF_FILE); |
exec('sudo /usr/local/bin/alcasar-ldap.sh --on'); |
|
$messages .= '<span style="font-weight: bold; color: green;">'.$l_ldap_update.'</span><br>'; |
} |
} else { |
exec('sed -i "s/^LDAP=.*/LDAP=off/g" '.CONF_FILE); |
exec('sudo /usr/local/bin/alcasar-ldap.sh --off'); |
|
$messages .= '<span style="font-weight: bold; color: green;">'.$l_ldap_update.'</span><br>'; |
} |
|
464,7 → 462,7 |
</dd> |
</dl> |
<p> |
<button id="btn-checkconf" onclick="checkConfig(); return false;"><?= 'Check' /* TODO: need to translate */ ?></button> |
<button id="btn-checkconf" onclick="checkConfig(); return false;"><?= $l_check ?></button> |
<input id="submit" type="submit" value="<?= $l_ldap_submit ?>" name="submit" title="<?= 'You need to check before submit' /* TODO: need to translate */ ?>"> |
</p> |
</fieldset> |