Add basic LDAP bind functionality

This commit is contained in:
garrettmills
2020-04-17 19:25:33 -05:00
parent 226b90b7bf
commit 68cc90899c
18 changed files with 387 additions and 90 deletions

View File

@@ -1,27 +0,0 @@
const example_routes = {
prefix: 'dc=base',
middleware: [
],
search: {
},
bind: {
},
add: {
},
del: {
},
}
module.exports = exports = example_routes

View File

@@ -0,0 +1,30 @@
const users_routes = {
prefix: false, // false | string
middleware: [
'Logger'
],
search: {
'ou=people': [
'ldap_middleware::BindUser',
'ldap_controller::Users.search_people',
],
},
bind: {
'ou=people': ['ldap_controller::Users.bind'],
},
add: {
},
del: {
},
}
module.exports = exports = users_routes