auth: add LDAP support

fixes #23
This commit is contained in:
Ramkumar Chinchani
2019-08-15 09:34:54 -07:00
parent be7ce56343
commit 6295e0c91e
15 changed files with 634 additions and 48 deletions
+11
View File
@@ -12,6 +12,17 @@
"key":"test/data/server.key"
},
"auth": {
"ldap": {
"address":"ldap.example.org",
"port":389,
"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",
"skipVerify":false,
"subtreeSearch":true
},
"htpasswd": {
"path": "test/data/htpasswd"
},
+10
View File
@@ -11,6 +11,16 @@ http:
cert: test/data/server.cert
key: test/data/server.key
auth:
ldap:
address: ldap.example.org
port: 389
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
skipVerify: false
subtreeSearch: true
htpasswd:
path: test/data/htpasswd
failDelay: 5