LDAP server - add handling for root DSE queries (needed for Radicale 3.5.2+)
This commit is contained in:
37
app/ldap/routes/rootdse.routes.js
Normal file
37
app/ldap/routes/rootdse.routes.js
Normal file
@@ -0,0 +1,37 @@
|
||||
const rootdse_routes = {
|
||||
|
||||
prefix: false, // false | string
|
||||
|
||||
/*
|
||||
* The Root DSE lives at the zero-length DN, which sits outside every naming
|
||||
* context by definition, so these routes must not be suffixed with the
|
||||
* server's base DC the way every other router's are. (RFC 4512 §5.1)
|
||||
*/
|
||||
absolute: true,
|
||||
|
||||
middleware: [
|
||||
'Logger'
|
||||
],
|
||||
|
||||
/*
|
||||
* No BindUser here on purpose. RFC 4512 §5.1 expects the Root DSE to be
|
||||
* readable before the client has bound, and ldap3 reads it as part of
|
||||
* connecting. Nothing it exposes is sensitive.
|
||||
*/
|
||||
search: {
|
||||
'': ['ldap_controller::RootDSE.search_root_dse'],
|
||||
},
|
||||
|
||||
bind: {},
|
||||
|
||||
add: {},
|
||||
|
||||
del: {},
|
||||
|
||||
modify: {},
|
||||
|
||||
compare: {},
|
||||
|
||||
}
|
||||
|
||||
module.exports = exports = rootdse_routes
|
||||
Reference in New Issue
Block a user