Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: ldap.php 2817 2020-05-09 09:35:56Z rexy $
|
2 |
# $Id: ldap.php 2853 2020-07-19 21:50:07Z rexy $
|
3 |
|
3 |
|
4 |
/* written by steweb57, Rexy & Tom HOUDAYER */
|
4 |
/* written by steweb57, Rexy & Tom HOUDAYER */
|
5 |
/****************************************************************
|
5 |
/****************************************************************
|
6 |
* GLOBAL FILE PATHS *
|
6 |
* GLOBAL FILE PATHS *
|
7 |
*****************************************************************/
|
7 |
*****************************************************************/
|
Line 42... |
Line 42... |
42 |
$Language = 'en';
|
42 |
$Language = 'en';
|
43 |
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
43 |
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
44 |
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
44 |
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
45 |
$Language = strtolower(substr(chop($Langue[0]), 0, 2));
|
45 |
$Language = strtolower(substr(chop($Langue[0]), 0, 2));
|
46 |
}
|
46 |
}
|
47 |
if ($Language === 'fr') { // French
|
47 |
if ($Language === 'fr') {
|
48 |
$l_ldap_update = "Mise à jour des paramètres LDAP effectuée";
|
48 |
$l_ldap_update = "Mise à jour des paramètres LDAP effectuée";
|
49 |
$l_ldap_title = "Authentification externe : LDAP";
|
49 |
$l_ldap_title = "Authentification externe : LDAP";
|
50 |
$l_ldap_legend = "Authentification LDAP";
|
50 |
$l_ldap_legend = "Authentification LDAP";
|
51 |
$l_ldap_auth_enable_label = "Éditer la configuration LDAP:";
|
51 |
$l_ldap_auth_enable_label = "Éditer la configuration LDAP:";
|
52 |
$l_ldap_YES = "OUI";
|
52 |
$l_ldap_YES = "OUI";
|
Line 85... |
Line 85... |
85 |
$l_ldap_error = "erreur LDAP";
|
85 |
$l_ldap_error = "erreur LDAP";
|
86 |
$l_ldap_entries = "entrées dans la base";
|
86 |
$l_ldap_entries = "entrées dans la base";
|
87 |
$l_ldap_cert_cn_diff_dn = "Le CommonName du certificat (§cert_domainName§) est différent du nom de domaine du serveur";
|
87 |
$l_ldap_cert_cn_diff_dn = "Le CommonName du certificat (§cert_domainName§) est différent du nom de domaine du serveur";
|
88 |
$l_check = "Vérifier cette configuration";
|
88 |
$l_check = "Vérifier cette configuration";
|
89 |
$l_checkingConf = "Vérification de cette configuration...";
|
89 |
$l_checkingConf = "Vérification de cette configuration...";
|
90 |
} else { // English
|
90 |
} else if ($Language === 'es') {
|
- |
|
91 |
$l_ldap_update = "Configuración de LDAP actualizada";
|
- |
|
92 |
$l_ldap_title = "Autenticación externa : LDAP";
|
- |
|
93 |
$l_ldap_legend = "LDAP autenticación";
|
- |
|
94 |
$l_ldap_auth_enable_label = "Editar la configuración LDAP:";
|
- |
|
95 |
$l_ldap_YES = "SI";
|
- |
|
96 |
$l_ldap_NO = "NO";
|
- |
|
97 |
$l_ldap_server_label = "Servidor LDAP:";
|
- |
|
98 |
$l_ldap_server_text = "Dirección IP del servidor LDAP.";
|
- |
|
99 |
$l_ldap_base_dn_label = "DN de la base:";
|
- |
|
100 |
$l_ldap_base_dn_text = "El DN (Distinguished Name) se utiliza para ubicar la información de los usuarios en el directorio.<br> e.g. LDAP : 'o=MiEmpresa,c=AR'.<br> e.g. AD : 'cn=Users,dc=nombre_servidor,dc=localdomain'";
|
- |
|
101 |
$l_ldap_uid_label = "Identificador de usuario (UID):";
|
- |
|
102 |
$l_ldap_uid_text = "Clave utilizada para buscar una identidad de inicio de sesión determinada.<br>Ej. 'uid', 'sn', etc.. Para AD usar 'sAMAccountName'.";
|
- |
|
103 |
$l_ldap_base_filter_label = "Filtro de búsqueda de usuario (opcional):";
|
- |
|
104 |
$l_ldap_base_filter_text = "Puede limitar aún más los objetos buscados con filtros adicionales.<br> Por ejemplo'objectClass=posixGroup' daría como resultado el uso de '(&(uid=username)(objectClass=posixGroup))'";
|
- |
|
105 |
$l_ldap_user_label = "CN del usuario operador ALCASAR:";
|
- |
|
106 |
$l_ldap_user_text = "CN=Common Name. Déjelo en blanco para enlace anónimo. Obligatorio para AD.<br> Ej. LDAP :'uid=Usuario,ou=mi_Red,o=miEmpresa,c=AR'.<br> Ej. AD : 'username' or 'cn=username,cn=Users,dc=server_name,dc=localdomain'";
|
- |
|
107 |
$l_ldap_password_label = "Contraseña:";
|
- |
|
108 |
$l_ldap_password_text = "Déjelo en blanco para usar un enlace anónimo. Obligatorio para AD.";
|
- |
|
109 |
$l_ldap_ssl_label = "Conexión segura";
|
- |
|
110 |
$l_ldap_ssl_text = "Use una conexión encriptada con SSL (LDAPS)";
|
- |
|
111 |
$l_ldap_cert_required_label = "Comprueba el certificado SSL";
|
- |
|
112 |
$l_ldap_cert_required_text = "Verifique que el servidor LDAP use un certificado confiable";
|
- |
|
113 |
$l_ldap_cert_label = "Certificado (CA) SSL";
|
- |
|
114 |
$l_ldap_cert_text = "Certificado de la autoridad de certificación que firmó el certificado del servidor LDAP";
|
- |
|
115 |
$l_ad_dns_domain_label = "Nombre de dominio interno";
|
- |
|
116 |
$l_ad_dns_domain_text = "Nombre de dominio que se reenviará al servidor DNS del directorio LDAP (vacío para desactivar)";
|
- |
|
117 |
$l_ldap_cert_status_cur = "Certificado actual:";
|
- |
|
118 |
$l_ldap_cert_status_no = "Ningún certificado importado";
|
- |
|
119 |
$l_ldap_submit = "Guardar";
|
- |
|
120 |
$l_ldap_test_service_failed = "El servicio LDAP no es accesible en ese servidor (verifique la IP)";
|
- |
|
121 |
$l_ldap_test_service_ok = "El puerto 389 (636 con SSL) está abierto en este servidor";
|
- |
|
122 |
$l_ldap_test_connection_failed = "La conexión LDAP falló (verifique el servicio LDAP en este servidor)";
|
- |
|
123 |
$l_ldap_test_connection_ok = "Se establece una conexión LDAP";
|
- |
|
124 |
$l_ldap_test_bind_failed = "La autenticación LDAP falló (verifique el usuario LDAP y la contraseña)";
|
- |
|
125 |
$l_ldap_test_bind_ok = "Autenticación exitosa";
|
- |
|
126 |
$l_ldap_test_dn_failed = "DN de la base parece ser erróneo (verifíquelo)";
|
- |
|
127 |
$l_ldap_test_dn_ok = "DN de la base parece estar bien";
|
- |
|
128 |
$l_ldap_error = "error LDAP";
|
- |
|
129 |
$l_ldap_entries = "entradas en la base";
|
- |
|
130 |
$l_ldap_cert_cn_diff_dn = "El CommonName del certificado (§cert_domainName§) es diferente del nombre de dominio del servidor";
|
- |
|
131 |
$l_check = "Verifique éste paramétro";
|
- |
|
132 |
$l_checkingConf = "Verificando ésta configuración...";
|
- |
|
133 |
} else {
|
91 |
$l_ldap_update = "LDAP settings updated";
|
134 |
$l_ldap_update = "LDAP settings updated";
|
92 |
$l_ldap_title = "External authentication : LDAP";
|
135 |
$l_ldap_title = "External authentication : LDAP";
|
93 |
$l_ldap_legend = "LDAP authentication";
|
136 |
$l_ldap_legend = "LDAP authentication";
|
94 |
$l_ldap_auth_enable_label = "Edit the LDAP configuration :";
|
137 |
$l_ldap_auth_enable_label = "Edit the LDAP configuration :";
|
95 |
$l_ldap_YES = "YES";
|
138 |
$l_ldap_YES = "YES";
|
Line 123... |
Line 166... |
123 |
$l_ldap_test_connection_ok = "A LDAP connexion is established";
|
166 |
$l_ldap_test_connection_ok = "A LDAP connexion is established";
|
124 |
$l_ldap_test_bind_failed = "LDAP authentication failed (check the LDAP user and password)";
|
167 |
$l_ldap_test_bind_failed = "LDAP authentication failed (check the LDAP user and password)";
|
125 |
$l_ldap_test_bind_ok = "Successful authentication";
|
168 |
$l_ldap_test_bind_ok = "Successful authentication";
|
126 |
$l_ldap_test_dn_failed = "DN of the base seems to be wrong (check it)";
|
169 |
$l_ldap_test_dn_failed = "DN of the base seems to be wrong (check it)";
|
127 |
$l_ldap_test_dn_ok = "DN of the base seems to be ok";
|
170 |
$l_ldap_test_dn_ok = "DN of the base seems to be ok";
|
128 |
$l_ldap_cert_cn_diff_dn = "Certificate CommonName (§cert_domainName§) is different from the server domain name";
|
- |
|
129 |
$l_ldap_error = "LDAP error";
|
171 |
$l_ldap_error = "LDAP error";
|
130 |
$l_ldap_entries = "entries in the base";
|
172 |
$l_ldap_entries = "entries in the base";
|
- |
|
173 |
$l_ldap_cert_cn_diff_dn = "Certificate CommonName (§cert_domainName§) is different from the server domain name";
|
131 |
$l_check = "Check this config";
|
174 |
$l_check = "Check this config";
|
132 |
$l_checkingConf = "Checking this configuration...";
|
175 |
$l_checkingConf = "Checking this configuration...";
|
133 |
}
|
176 |
}
|
134 |
|
177 |
|
135 |
// AJAX LDAP assitant
|
178 |
// AJAX LDAP assitant
|