Start basic LDAP server groundwork
This commit is contained in:
7
app/ldap/controllers/LDAPController.js
Normal file
7
app/ldap/controllers/LDAPController.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const { Injectable } = require('flitter-di')
|
||||
|
||||
class LDAPController extends Injectable {
|
||||
|
||||
}
|
||||
|
||||
module.exports = exports = LDAPController
|
||||
10
app/ldap/middleware/LDAPMiddleware.js
Normal file
10
app/ldap/middleware/LDAPMiddleware.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const { Injectable } = require('flitter-di')
|
||||
const ImplementationError = require('libflitter/errors/ImplementationError')
|
||||
|
||||
class LDAPMiddleware extends Injectable {
|
||||
async test(req, res, next) {
|
||||
throw new ImplementationError()
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = exports = LDAPMiddleware
|
||||
27
app/ldap/routes/example.routes.js
Normal file
27
app/ldap/routes/example.routes.js
Normal file
@@ -0,0 +1,27 @@
|
||||
const example_routes = {
|
||||
|
||||
prefix: 'dc=base',
|
||||
|
||||
middleware: [
|
||||
|
||||
],
|
||||
|
||||
search: {
|
||||
|
||||
},
|
||||
|
||||
bind: {
|
||||
|
||||
},
|
||||
|
||||
add: {
|
||||
|
||||
},
|
||||
|
||||
del: {
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
module.exports = exports = example_routes
|
||||
Reference in New Issue
Block a user