ldapjs-rate-limit
v1.0.1
Published
rate limit middleware for ldapjs
Downloads
1
Maintainers
Readme
ldapjs-rate-limit
This is just a port from express-rate-limit to ldapjs.
Example
var ldapjs = require('ldapjs');
var rateLimit = require('ldapjs-rate-limit');
var server = ldapjs.createServer();
server.search('o=example', rateLimit({ delayMs: 100, delayAfter: 2 }), function (req, res) { res.end(); });
server.listen(389, '127.0.0.1', function () {});