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:
Ryan Palmer
2024-09-13 08:37:25 +10:00
parent 8af2d4e8cf
commit 9d0331d04f
8 changed files with 440 additions and 63 deletions

View File

@ -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')