Files
CoreID/app/ldap/routes/rootdse.routes.js
garrettmills e1d7a809f9
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/deployment/woodpecker Pipeline was successful
LDAP server - add handling for root DSE queries (needed for Radicale 3.5.2+)
2026-09-22 22:39:18 -05:00

38 lines
798 B
JavaScript

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