Enables LDAP configuration via Docker #13205

Open
opened 2025-11-02 10:34:50 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @proofy on GitHub (Jun 25, 2024).

Feature Description

I would like to be able to transfer all LDAP settings in the docker configuration with transfer parameters so that I can start immediately with an (employee) group without further configuration in the GUI.
Example:

´
- GITEA__auth__ACTIVE_CODE_LIFE=72h
- GITEA__auth__RESET_PASSWD_CODE_LIFE=1h
- GITEA__auth__DISABLE_REGISTRATION=false
- GITEA__auth__REQUIRE_SIGNIN_VIEW=false
- GITEA__auth__ENABLE_CAPTCHA=true
- GITEA__auth__ENABLE_2FA=false
- GITEA__auth__ENABLE_EMAIL_NOTIFICATIONS=true
- GITEA__auth__ENABLE_LOCAL_LOGIN=true
- GITEA__auth__ENABLE_LDAP=true
- GITEA__auth__LDAP_TYPE=ldap
- GITEA__auth__LDAP_HOST=ad.example.com
- GITEA__auth__LDAP_PORT=389
- GITEA__auth__LDAP_USER_DN=cn=admin,dc=example,dc=com
- GITEA__auth__LDAP_PASSWORD=your_ad_password
- GITEA__auth__LDAP_NAME=MyAD
- GITEA__auth__LDAP_BASEDN=dc=example,dc=com
- GITEA__auth__LDAP_FILTER=(sAMAccountName=%s)
- GITEA__auth__LDAP_ATTRIBUTE_USERNAME=sAMAccountName
- GITEA__auth__LDAP_ATTRIBUTE_FULL_NAME=displayName
- GITEA__auth__LDAP_ATTRIBUTE_EMAIL=mail`
´

Screenshots

No response

Originally created by @proofy on GitHub (Jun 25, 2024). ### Feature Description I would like to be able to transfer all LDAP settings in the docker configuration with transfer parameters so that I can start immediately with an (employee) group without further configuration in the GUI. Example: ´ - GITEA__auth__ACTIVE_CODE_LIFE=72h - GITEA__auth__RESET_PASSWD_CODE_LIFE=1h - GITEA__auth__DISABLE_REGISTRATION=false - GITEA__auth__REQUIRE_SIGNIN_VIEW=false - GITEA__auth__ENABLE_CAPTCHA=true - GITEA__auth__ENABLE_2FA=false - GITEA__auth__ENABLE_EMAIL_NOTIFICATIONS=true - GITEA__auth__ENABLE_LOCAL_LOGIN=true - GITEA__auth__ENABLE_LDAP=true - GITEA__auth__LDAP_TYPE=ldap - GITEA__auth__LDAP_HOST=ad.example.com - GITEA__auth__LDAP_PORT=389 - GITEA__auth__LDAP_USER_DN=cn=admin,dc=example,dc=com - GITEA__auth__LDAP_PASSWORD=your_ad_password - GITEA__auth__LDAP_NAME=MyAD - GITEA__auth__LDAP_BASEDN=dc=example,dc=com - GITEA__auth__LDAP_FILTER=(sAMAccountName=%s) - GITEA__auth__LDAP_ATTRIBUTE_USERNAME=sAMAccountName - GITEA__auth__LDAP_ATTRIBUTE_FULL_NAME=displayName - GITEA__auth__LDAP_ATTRIBUTE_EMAIL=mail` ´ ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 10:34:50 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13205