OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix auth_source translation key
Oliver Günther2de011f9e74b
diff --git a/app/models/ldap_auth_source.rb b/app/models/ldap_auth_source.rbindex a1271b5d807..9f02a86c90e 100644--- a/app/models/ldap_auth_source.rb+++ b/app/models/ldap_auth_source.rb@@ -140,10 +140,12 @@ class LdapAuthSource < ApplicationRecord# test the connection to the LDAPdef test_connectionunless authenticate_dn(account, account_password)- raise LdapAuthSource::Error, I18n.t('auth_source.ldap_error', error_message: I18n.t('auth_source.ldap_auth_failed'))+ raise LdapAuthSource::Error,+ I18n.t('ldap_auth_sources.ldap_error', error_message: I18n.t('ldap_auth_sources.ldap_auth_failed'))endrescue Net::LDAP::Error => e- raise LdapAuthSource::Error, I18n.t('auth_source.ldap_error', error_message: e.to_s)+ raise LdapAuthSource::Error,+ I18n.t('ldap_auth_sources.ldap_error', error_message: e.to_s)enddef get_user_attributes_from_ldap_entry(entry)diff --git a/config/locales/en.yml b/config/locales/en.ymlindex cb4eae296bc..8cf5b67b060 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -117,6 +117,8 @@ en:cancelled_due_to: "Job was cancelled due to error: %{message}"ldap_auth_sources:+ ldap_error: "LDAP-Error: %{error_message}"+ ldap_auth_failed: "Could not authenticate at the LDAP-Server."back_to_index: 'Click here to go back to the list of connection.'technical_warning_html: |This LDAP form requires technical knowledge of your LDAP / Active Directory setup.@@ -512,7 +514,7 @@ en:attribute_help_text:attribute_name: 'Attribute'help_text: 'Help text'- auth_source:+ ldap_auth_source:account: "Account"attr_firstname: "Firstname attribute"attr_lastname: "Lastname attribute"@@ -742,7 +744,7 @@ en:is not providing a "Secure Context". Either use HTTPS or a loopback address, such as localhost.wrong_length: "is the wrong length (should be %{count} characters)."models:- auth_source:+ ldap_auth_source:attributes:tls_certificate_string:invalid_certificate: "The provided SSL certificate is invalid: %{additional_message}"@@ -965,7 +967,7 @@ en:description: "'Password confirmation' should match the input in the 'New password' field."status:invalid_on_create: "is not a valid status for new users."- auth_source:+ ldap_auth_source:error_not_found: "not found"member:principal_blank: "Please choose at least one user or group."@@ -2169,11 +2171,6 @@ en:label_global: "Global"label_seeded_from_env_warning: This record has been created through a setting / environment variable. It is not editable through UI.- auth_source:- using_abstract_auth_source: "Can't use an abstract authentication source."- ldap_error: "LDAP-Error: %{error_message}"- ldap_auth_failed: "Could not authenticate at the LDAP-Server."-macro_execution_error: "Error executing the macro %{macro_name}"macro_unavailable: "Macro %{macro_name} cannot be displayed."macros:diff --git a/docs/installation-and-operations/configuration/README.md b/docs/installation-and-operations/configuration/README.mdindex b5cf657cdad..8fa62728e4f 100644--- a/docs/installation-and-operations/configuration/README.md+++ b/docs/installation-and-operations/configuration/README.md@@ -194,8 +194,12 @@ OPENPROJECT_SEED_ADMIN_USER_MAIL="[email protected]" # Email attribute to assignOpenProject allows you to create and maintain an LDAP connection with optional synchronized group filters. This is relevant for e.g., automated deployments, where you want to trigger the synchronization right at the start.+**Note:** These variables are applied whenever `db:seed` rake task is being executed. This happens on every packaged `configure` call or when the seeder container job is being run, so be aware that these changes might happen repeatedly.+The connection can be set with the following options. Please note that "EXAMPLE" stands for an arbitrary name (expressable in ENV keys) which will become the name of the connection. In this case, "example" and "examplefilter" for the synchronized filter.+The name of the LDAP connection is derived from the ENV key behind `SEED_LDAP_`, so you need to take care to use only valid characters. If you need to place an underscore, use a double underscore to encode it e.g., `my__ldap`.+The following options are possible```bash@@ -210,6 +214,8 @@ OPENPROJECT_SEED_LDAP_EXAMPLE_PORT="389"OPENPROJECT_SEED_LDAP_EXAMPLE_SECURITY="start_tls"# Whether to verify the certificate/chain of the LDAP connection. true/false (True by default)OPENPROJECT_SEED_LDAP_EXAMPLE_TLSVERIFY="true"+# Optionally, provide a certificate of the connection+OPENPROJECT_SEED_LDAP_EXAMPLE_TLS__CERTIFICATE="-----BEGIN CERTIFICATE-----\nMII....\n-----END CERTIFICATE-----"# The admin LDAP bind account with read accessOPENPROJECT_SEED_LDAP_EXAMPLE_BINDUSER="uid=admin,ou=system"# Password for the bind account