mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-24 13:41:02 +10:00
Minimum viable NTLM auth implementation
Added env variable "VITE_NTLM_AUTH", if true, login page will attempt NTLM auth challenge instead of showing login page. If challenge is successful and an authenticate message is received, it will check for the existence of the user using the provided mail attribute, and create an account with a random, complex password, and then authenticate as the user.
This commit is contained in:
@ -7,14 +7,17 @@ APP_SECRET=REPLACE_WITH_LONG_SECRET
|
||||
|
||||
JWT_TOKEN_EXPIRES_IN=30d
|
||||
|
||||
# Use NTLM for user authentication
|
||||
NTLM_AUTH=false
|
||||
# Use NTLM for user authentication, exposes to browser
|
||||
VITE_NTLM_AUTH=false
|
||||
|
||||
# LDAP settings for NTLM authentication
|
||||
LDAP_BASEDN=
|
||||
LDAP_DOMAINSUFFIX=
|
||||
LDAP_USERNAME=
|
||||
LDAP_PASSWORD=
|
||||
# User object attributes for docmost
|
||||
LDAP_NAMEATTRIBUTE=
|
||||
LDAP_MAILATTRIBUTE=
|
||||
|
||||
DATABASE_URL="postgresql://postgres:password@localhost:5432/docmost?schema=public"
|
||||
REDIS_URL=redis://127.0.0.1:6379
|
||||
|
||||
Reference in New Issue
Block a user