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
Add documentation
Oliver Günther5b65f83a2804
diff --git a/docs/installation-and-operations/configuration/README.md b/docs/installation-and-operations/configuration/README.mdindex 36b95137750..b5cf657cdad 100644--- a/docs/installation-and-operations/configuration/README.md+++ b/docs/installation-and-operations/configuration/README.md@@ -160,9 +160,100 @@ Configuring OpenProject through environment variables is described in detail [in-## Examples for common use cases+# Seeding through environment++OpenProject allows some resources to be seeded/created initially through configuration variables.++| Topic | Description |+| ----------------------------------------------------------- | ------------------------------------------------------------ |+| [Initial admin user creation](#initial-admin-user-creation) | Changing attributes or passwords of the initially created administrator |+| [Seeding LDAP connections](#seeding-ldap-connections) | How to create an LDAP connection through configuration |++++## Initial admin user creation++**Note:** These variables are only applicable during the first initial setup of your OpenProject setup. Changing or setting them later will have no effect, as the admin user will already have been created.++By default, an admin user will be created with the login and password set to `admin`. You will be required to change this password on first login.++In case of automated deployments, you might find it useful to seed an admin user with password and attributes of your choosing. For that, you can use the following set of variables:++++```bash+OPENPROJECT_SEED_ADMIN_USER_PASSWORD="admin" # Password to set for the admin user+OPENPROJECT_SEED_ADMIN_USER_PASSWORD_RESET="true" # Whether to force a password reset on first login (true/false)+OPENPROJECT_SEED_ADMIN_USER_NAME="OpenProject Admin" # Name to assign to that user (First and lastnames will be split on the space character)+OPENPROJECT_SEED_ADMIN_USER_MAIL="[email protected]" # Email attribute to assign to that user. Note that in packaged installations, a wizard step will assign this variable as well.+```++++## Seeding LDAP connections++OpenProject 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.++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 following options are possible++```bash+# Host name of the connection+OPENPROJECT_SEED_LDAP_EXAMPLE_HOST="localhost"+# Port of the connection+OPENPROJECT_SEED_LDAP_EXAMPLE_PORT="389"+# LDAP security options. One of the following+# plain_ldap: Unencrypted connection, no TLS/SSL+# simple_tls: Using deprecated LDAPS/SSL (often in combination with port 636)+# start_tls: LDAPv3 start_tls call using standard unencrypted port (e.g., 389) before upgrading connection+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"+# The admin LDAP bind account with read access+OPENPROJECT_SEED_LDAP_EXAMPLE_BINDUSER="uid=admin,ou=system"+# Password for the bind account+OPENPROJECT_SEED_LDAP_EXAMPLE_BINDPASSWORD="secret"+# BASE DN of the connection+OPENPROJECT_SEED_LDAP_EXAMPLE_BASEDN="dc=example,dc=com"+# Optional filter string to restrict which users may log in to OpenProject+# (relevant when for automatic creation of users is active)+OPENPROJECT_SEED_LDAP_EXAMPLE_FILTER="(uid=*)"+# Whether to create found and matching users automatically when they log in+OPENPROJECT_SEED_LDAP_EXAMPLE_SYNC__USERS="true"+# Attribute mapping for the OpenProject login attribute+OPENPROJECT_SEED_LDAP_EXAMPLE_LOGIN__MAPPING="uid"+# Attribute mapping for the OpenProject first name attribute+OPENPROJECT_SEED_LDAP_EXAMPLE_FIRSTNAME__MAPPING="givenName"+# Attribute mapping for the OpenProject last name attribute+OPENPROJECT_SEED_LDAP_EXAMPLE_LASTNAME__MAPPING="sn"+# Attribute mapping for the OpenProject mail attribute+OPENPROJECT_SEED_LDAP_EXAMPLE_MAIL__MAPPING="mail"+# Attribute mapping for the OpenProject admin attribute+# Leave empty or remove to not derive admin status from an attribute+OPENPROJECT_SEED_LDAP_EXAMPLE_ADMIN__MAPPING=""+```++To define a synchronized LDAP filter (for automatic group creation and synchronization), you can add these values:++```bash+# Define a filter called "examplefilter" with the following options+# LDAP base to search for groups+OPENPROJECT_SEED_LDAP_EXAMPLE_GROUPFILTER_EXAMPLEFILTER_BASE="ou=groups,dc=example,dc=com"+# LDAP filter to locate groups to synchronize with OpenProject+OPENPROJECT_SEED_LDAP_EXAMPLE_GROUPFILTER_EXAMPLEFILTER_FILTER="(cn=*)"+# Whether users found in these groups are automatically created+OPENPROJECT_SEED_LDAP_EXAMPLE_GROUPFILTER_EXAMPLEFILTER_SYNC__USERS="true"+# The attribute used for the OpenProject group name+OPENPROJECT_SEED_LDAP_EXAMPLE_GROUPFILTER_EXAMPLEFILTER_GROUP__ATTRIBUTE="cn"+```++When a filter is defined, synchronization happens directly during seeding for enterprise editions. Be aware of that when you create the connection that e.g., the LDAP connection needs to be reachable.++++# Examples for common use cases-* [`admin_user`](#admin-user) (default: 'repositories')* `attachments_storage_path`* `autologin_cookie_name` (default: 'autologin'),* `autologin_cookie_path` (default: '/')@@ -194,27 +285,6 @@ Configuring OpenProject through environment variables is described in detail [in-## Admin user--**Note:** These variables are only applicable during the first initial setup of your OpenProject setup. Changing or setting them later will have no effect, as the admin user will already have been created.--By default, an admin user will be created with the login and password set to `admin`. You will be required to change this password on first login.--In case of automated deployments, you might find it useful to seed an admin user with password and attributes of your choosing. For that, you can use the following set of variables:----```bash-OPENPROJECT_SEED_ADMIN_USER_PASSWORD="admin" # Password to set for the admin user-OPENPROJECT_SEED_ADMIN_USER_PASSWORD_RESET="true" # Whether to force a password reset on first login (true/false)-OPENPROJECT_SEED_ADMIN_USER_NAME="OpenProject Admin" # Name to assign to that user (First and lastnames will be split on the space character)-OPENPROJECT_SEED_ADMIN_USER_MAIL="[email protected]" # Email attribute to assign to that user. Note that in packaged installations, a wizard step will assign this variable as well.-```-----## Setting session options**Delete old sessions for the same user when logging in**diff --git a/docs/system-admin-guide/authentication/ldap-authentication/README.md b/docs/system-admin-guide/authentication/ldap-authentication/README.mdindex 53fa254860a..7acaec7b34e 100644--- a/docs/system-admin-guide/authentication/ldap-authentication/README.md+++ b/docs/system-admin-guide/authentication/ldap-authentication/README.md@@ -114,6 +114,12 @@ Duplicates in the unique attributes (login, email) are not allowed and a second+## LDAP connections through seeding / Environment variables++OpenProject allows you to define an LDAP connection (and optionally, synchronized group filters for enterprise editions) through a configuration or environment variable.++Please see the [advanced configuration guide](../../../installation-and-operations/configuration/) for more information.+## LDAP user synchronizationBy default, OpenProject will synchronize user account details (name, e-mail, login) and their account status from the LDAP through a background worker job every 24 hours.