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
Extend LDAP documentation for changed SSL options
Oliver Güntherb5d3b554af76
diff --git a/docs/system-admin-guide/authentication/ldap-authentication/README.md b/docs/system-admin-guide/authentication/ldap-authentication/README.mdindex e3085478d4a..b5c44509154 100644--- a/docs/system-admin-guide/authentication/ldap-authentication/README.md+++ b/docs/system-admin-guide/authentication/ldap-authentication/README.md@@ -38,39 +38,16 @@ In the upper section, you have to specify the connection details of your LDAP se- **Host:** Full hostname to the LDAP server- **Port :** LDAP port. Will usually be 389 for LDAP and StartTLS and 636 for LDAP over SSL connections.- **Connection encryption**: Select the appropriate connection encryption.- - For unencrypted connections, select `none` . No TLS/SSL connection will be established, your connection will be unsecure- - For LDAPS connections (LDAP over SSL), use `simple_tls` , this is an older SSL encryption pattern that uses SSL certificates, but **DOES NOT VERIFY THEM**. Implicit trust in the connection will be placed, but the connection will be encrypted. Some older LDAP servers only support this option- - **Recommended option**: `start_tls` will use TLS to encrypt the connection after connecting to the LDAP server on the unencrypted PORT (`389` by default).+ - **Recommended option**: `STARTTLS` will issue an TLS connection upgrade to encrypt the connection after connecting to the LDAP server on the unencrypted PORT (`389` by default).+ - For LDAPS connections (LDAP over SSL), use `LDAPS` , this is an SSL encryption pattern that uses SSL certificates and connects to a separate port on the LDAP server. Some older LDAP servers only support this option, but this option is deprecated in most ldap servers favoring the STARTTLS method of operation.+ - For unencrypted connections, select `none` . No TLS/SSL connection will be established, your connection will be insecure and no verification will be made.- [Click here to read more details into what these options mean for connection security.](https://www.rubydoc.info/gems/ruby-net-ldap/Net/LDAP)+- **SSL encryption options**: Provides additional options for LDAPS and STARTTLS connections. Be aware that these options do not apply for the connection encryption `none` option.+ - **Verify SSL certificate**: By default, for STARTTLS and LDAPS, SSL certificate trust chains will be verified during connection. As many LDAP servers in our experience use self-signed certificates, checking this option without providing the SSL certificate will fail. However, we recommend you enable this checkbox for any LDAP connections used in production.-**Allowing untrusted certificates for LDAP connections**--If you use `start_tls` , certificate details and host names will be verified on connections as recommended for security. In case you use a custom untrusted certificate authority (CA) that your LDAP is connecting to, you can place this CA in your system's trusted CA store if possible. For some distributions, you will need to specify this CA manually to OpenProject.--You can do this by using the [advanced configuration](../../../installation-and-operations/configuration/) function of OpenProject. You can define the CA path by setting the following ENV variable:--```bash-OPENPROJECT_LDAP__TLS__OPTIONS_CA__FILE="/path/to/the/root-ca.crt"-```--or by extending your production configuration of `config/configuration.yml` with the following segment:--```-production:- # .. other settings ..-- # ldap_tls_options:- # ca_file: "/path/to/the/root-ca.crt"-```--You can set other TLS options for the LDAP auth source connection. They are passed as the `tls_options` to the Net::LDAP gem and ultimately end up in the `SSLContext` setting of Ruby. You can define the TLS version and other advanced options in case your connections needs it. Most users will not need to change this however.--See the following resources for more information:--- [https://github.com/ruby-ldap/ruby-net-ldap/blob/master/lib/net/ldap.rb](https://github.com/ruby-ldap/ruby-net-ldap/blob/master/lib/net/ldap.rb)-- [https://ruby.github.io/openssl/OpenSSL/SSL/SSLContext.html](https://ruby.github.io/openssl/OpenSSL/SSL/SSLContext.html)+ - **LDAP server SSL certificate**: If the LDAP server's certificate is not trusted on the system that the OpenProject server runs on, you have the option to specifiy one or multiple PEM-encoded X509 certificates. This certificate might be the LDAP server's own certificate, or an intermediate or root CA that you trust for the sake of this connection.#### LDAP system user credentialsdiff --git a/docs/system-admin-guide/authentication/ldap-authentication/ldap-host-and-security.png b/docs/system-admin-guide/authentication/ldap-authentication/ldap-host-and-security.pngindex 048873e3d9e..48dfad7ec87 100644Binary files a/docs/system-admin-guide/authentication/ldap-authentication/ldap-host-and-security.png and b/docs/system-admin-guide/authentication/ldap-authentication/ldap-host-and-security.png differ