Riak backend for node-ldapjs
JavaScript
Latest commit 626f804 Jan 12, 2012 @mcavage Merge pull request #4 from yunong/master
add changelog to riak entries, expose riak client
Permalink
Failed to load latest commit information.
docs version bump Dec 21, 2011
lib add changelog attribute to ldap entries, make changelog commit first … Jan 12, 2012
tst add changelog attribute to ldap entries, make changelog commit first … Jan 12, 2012
.gitignore
LICENSE
Makefile version bump Dec 21, 2011
README.md remove moddn Dec 20, 2011
package.json version bump Jan 9, 2012

README.md

A fully backend for ldapjs built over Riak.

Usage

var ldap = require('ldapjs');
var ldapRiak = require('ldapjs-riak');

var SUFFIX = 'o=example';

var server = ldap.createServer();
var backend = ldapRiak.createBackend({
  "host": "localhost",
  "port": 8098,
  "bucket": "o_example",
  "indexes": ["l", "cn"],
  "uniqueIndexes": ["uid"],
  "numConnections": 5
});

server.add(SUFFIX, backend, backend.add());
server.modify(SUFFIX, backend, backend.modify());
server.bind(SUFFIX, backend, backend.bind());
server.compare(SUFFIX, backend, backend.compare());
server.del(SUFFIX, backend, backend.del());
server.search(SUFFIX, backend, backend.search(searchSalt));

server.listen(config.port, config.host, function() {
  console.log('ldap-riak listening at: %s', server.url);
});

More docs to follow...

Installation

npm install ldapjs-riak

License

MIT.

Bugs

See https://github.com/mcavage/node-ldapjs-riak/issues.