LDAP authentication library for Node.JS
C++ JavaScript Python Shell
Latest commit 34f97fe Dec 17, 2013 @joewalnes Merge pull request #15 from bitdeli-chef/master
Add a Bitdeli Badge to README
Permalink
Failed to load latest commit information.
example fixing example Sep 9, 2011
.gitignore Added Node LDAP authentication library. Aug 14, 2010
README.md Add a Bitdeli badge to README Dec 17, 2013
build.sh minor fixes for compiling on node v0.6.10+ Mar 2, 2012
ldapauth.cc
ldapauth.node fixing example Sep 9, 2011
wscript Fixed linking issues Aug 14, 2010

README.md

  • This library is only for LDAP authentication. If you're looking for a more complete LDAP implementation, check out http://ldapjs.org/

LDAP Authentication for Node.JS

Provides a simple function for validating username/password credentials on an LDAP server.

This can be used in web-applications that authenticate users from a central directory.

It binds to the native OpenLDAP library (libldap) and calls ldap_simple_bind().

Building

./build.sh

Usage

Ensure libldap (OpenLDAP client library) is installed.

You need to add ldapauth.node to your application.

var ldapauth = require('./ldapauth'); // path to ldapauth.node

ldapauth.authenticate('scheme', 'some.host', 389 /*port*/, 'someuser', 'somepassword', 
  function(err, result) {
    if (err) {
      print('Error');
    } else {
      print('Credentials valid = ' + result); // true or false
    }
  });

Resources

2010, Joe Walnes, joe@walnes.com, http://joewalnes.com/

Bitdeli Badge