38 lines
798 B
JavaScript
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
|