Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
LDAP authentication library for Node.JS
C++ JavaScript Python Shell
tree: 34d9cd9022

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
.gitignore
README.md
build.sh
ldapauth.cc
ldapauth.node
wscript

README.md

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('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/

Something went wrong with that request. Please try again.