CoreID/app/ldap/routes/users.routes.js

51 lines
946 B
JavaScript
Raw Permalink Normal View History

2020-04-18 00:25:33 +00:00
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: {
'ou=people': [
'ldap_middleware::BindUser',
'ldap_controller::Users.add_people',
],
2020-04-18 00:25:33 +00:00
},
del: {
'ou=people': [
'ldap_middleware::BindUser',
'ldap_controller::Users.delete',
],
},
2020-04-18 00:25:33 +00:00
modify: {
'ou=people': [
'ldap_middleware::BindUser',
'ldap_controller::Users.modify_people',
],
},
compare: {
'ou=people': [
'ldap_middleware::BindUser',
'ldap_controller::Users.compare',
],
2020-04-18 00:25:33 +00:00
},
}
module.exports = exports = users_routes