seneca-ldap-store
Seneca node.js data-storage plugin for LDAP
This is a plugin for the Seneca framework. It provides a storage engine that uses LDAP.
The Seneca framework provides an ActiveRecord-style data storage API. Each supported database has a plugin, such as this one, that provides the underlying Seneca plugin actions required for data persistence.
Support
If you're using this module, feel free to contact me on twitter if you have an questions @gangleri_
Quick example
var seneca = require('seneca')()seneca.use('ldap-store', { url: 'ldap://127.0.0.1:1389', password: 'secret', dn: 'cn=root'}) seneca.ready(function(){ var user = seneca.make$('dev') user.dn = 'cn=foo, ou=users, o=example' user.objectClass= 'unixUser' user.save$(function(err, user){ console.log( "user.id = " + user.id ) })})
Install
npm install seneca-ldap-store
Test
npm test