fix: Add credentials config verification

This commit is contained in:
onidoru
2024-01-31 18:30:54 +02:00
committed by Nikita K
parent aafb1a50ac
commit e7fdfa0bcc
6 changed files with 53 additions and 9 deletions
+2 -2
View File
@@ -225,14 +225,14 @@ authentication:
"startTLS":false,
"baseDN":"ou=Users,dc=example,dc=org",
"userAttribute":"uid",
"bindDN":"cn=ldap-searcher,ou=Users,dc=example,dc=org",
"bindPassword":"ldap-searcher-password",
"credentialsFile": "config-ldap-credentials.json",
"skipVerify":false,
"subtreeSearch":true
},
```
NOTE: When both htpasswd and LDAP configuration are specified, LDAP authentication is given preference.
NOTE: The separate file for storing DN and password credentials must be created. You can see example in `examples/config-ldap-credentials.json` file.
**OAuth2 authentication** (client credentials grant type) support via _Bearer Token_ configured with: