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.
15 lines
336 B
15 lines
336 B
14 years ago
|
#!/usr/bin/env node
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
);
|