mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-17 02:01:03 +10:00
Create Auth/NTLM Endpoint
- Adds NTLM challenge negotiation - Checks NTLM auth user & domain against AD / LDAP and returns info - Adds relevant .env entries
This commit is contained in:
@ -110,6 +110,22 @@ export class EnvironmentService {
|
||||
return this.configService.get<string>('POSTMARK_TOKEN');
|
||||
}
|
||||
|
||||
getLdapBaseDn(): string {
|
||||
return this.configService.get<string>('LDAP_BASEDN')
|
||||
}
|
||||
|
||||
getLdapDomainSuffix(): string {
|
||||
return this.configService.get<string>('LDAP_DOMAINSUFFIX');
|
||||
}
|
||||
|
||||
getLdapUsername(): string {
|
||||
return this.configService.get<string>('LDAP_USERNAME')
|
||||
}
|
||||
|
||||
getLdapPassword(): string {
|
||||
return this.configService.get<string>('LDAP_PASSWORD')
|
||||
}
|
||||
|
||||
isCloud(): boolean {
|
||||
const cloudConfig = this.configService
|
||||
.get<string>('CLOUD', 'false')
|
||||
|
||||
Reference in New Issue
Block a user