CoreID/app/ldap/routes/groups.routes.js

51 lines
957 B
JavaScript
Raw Normal View History

2020-05-04 01:16:54 +00:00
const groups_routes = {
prefix: false, // false | string
middleware: [
'Logger'
],
search: {
'ou=groups': [
'ldap_middleware::BindUser',
'ldap_controller::Groups.search_groups',
],
},
/*bind: {
'ou=groups': ['ldap_controller::Users.bind'],
},*/
/*add: {
'ou=groups': [
'ldap_middleware::BindUser',
'ldap_controller::Groups.add_group',
],
},
del: {
'ou=people': [
'ldap_middleware::BindUser',
'ldap_controller::Users.delete',
],
},
modify: {
'ou=people': [
'ldap_middleware::BindUser',
'ldap_controller::Users.modify_people',
],
},
compare: {
'ou=people': [
'ldap_middleware::BindUser',
'ldap_controller::Users.compare',
],
},*/
}
module.exports = exports = groups_routes