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: {
|
2020-04-21 03:46:19 +00:00
|
|
|
'ou=people': [
|
|
|
|
'ldap_middleware::BindUser',
|
|
|
|
'ldap_controller::Users.add_people',
|
|
|
|
],
|
2020-04-18 00:25:33 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
del: {
|
2020-04-21 03:46:19 +00:00
|
|
|
'ou=people': [
|
|
|
|
'ldap_middleware::BindUser',
|
|
|
|
'ldap_controller::Users.delete',
|
|
|
|
],
|
|
|
|
},
|
2020-04-18 00:25:33 +00:00
|
|
|
|
2020-04-21 03:46:19 +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
|