https://github.com/cloudron-io/ldapjs-rate-limit
Rate limit LDAP requests
https://github.com/cloudron-io/ldapjs-rate-limit
ldap ldapjs node nodejs rate-limiting
Last synced: 4 months ago
JSON representation
Rate limit LDAP requests
- Host: GitHub
- URL: https://github.com/cloudron-io/ldapjs-rate-limit
- Owner: cloudron-io
- License: mit
- Created: 2017-03-21T13:40:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T15:34:17.000Z (about 9 years ago)
- Last Synced: 2025-12-26T11:51:22.385Z (5 months ago)
- Topics: ldap, ldapjs, node, nodejs, rate-limiting
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ldapjs-rate-limit
This is just a port from [express-rate-limit](https://github.com/nfriedly/express-rate-limit) to [ldapjs](http://ldapjs.org/).
## 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 () {});
```