1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Matthieu Lalonde bf116ab0e8
Link to man page for ldap uri's
14 years ago
src Added README and gitignores 14 years ago
.gitignore Added README and gitignores 14 years ago
README.md Link to man page for ldap uri's 14 years ago
test.js Initial Import of node-ldapsearch 14 years ago
wscript Initial Import of node-ldapsearch 14 years ago

README.md

LDAP Search Bindings for Node.JS

This is a fork and merge of node-LDAP and node-ldapauth.

Provides a simple function for running search queries on an LDAP server.

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

It has SSL (ldaps) and LDAP URI support see @man 3 ldap_url@.

It does not yet support LDAP bind.

It is still experimental, YMMV!

Building

node-waf configure build

Usage

Ensure libldap (OpenLDAP client library) is installed.

You need to add ldap.node to your application.

var sys		= require("sys"),
LDAPClient	= require("./build/default/ldap.node"); // Path to ldapauth.node

LDAPClient.Search("ldaps://ldap.example.tld/ou=people,dc=example,dc=tld?*?sub?uid=*",
	function(err, result) {
		if (err) {
			sys.puts(err);
		} else {
			sys.puts("Result: ");
			console.log(result);
		}
	}
);

Resources

2010, xSmurf, xsmurf@smurfturf.net, http://mlalonde.net/