Add basic LDAP bind functionality
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
const example_routes = {
|
||||
|
||||
prefix: 'dc=base',
|
||||
|
||||
middleware: [
|
||||
|
||||
],
|
||||
|
||||
search: {
|
||||
|
||||
},
|
||||
|
||||
bind: {
|
||||
|
||||
},
|
||||
|
||||
add: {
|
||||
|
||||
},
|
||||
|
||||
del: {
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
module.exports = exports = example_routes
|
||||
30
app/ldap/routes/users.routes.js
Normal file
30
app/ldap/routes/users.routes.js
Normal 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
|
||||
Reference in New Issue
Block a user