Permalink
Browse files

fixing example

  • Loading branch information...
1 parent 99a176f commit abaedc72bf244e7a5368372771f30552691ce821 @joelash joelash committed Sep 9, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 example/example.js
  2. BIN ldapauth.node
View
@@ -3,7 +3,8 @@
var sys = require('sys'),
ldapauth = require('../ldapauth'); // Path to ldapauth.node
-var ldap_host = 'some.ldap.server',
+var scheme = 'ldap',
+ ldap_host = 'some.ldap.server',
ldap_port = 389,
username = 'SOMEDOMAIN\\SOMEUSER',
password = 'SOMEPASS'
@@ -19,7 +20,7 @@ ldapauth.search(ldap_host, ldap_port, username, password, base, filter,
}
});
-ldapauth.authenticate(ldap_host, ldap_port, username, password,
+ldapauth.authenticate(scheme, ldap_host, ldap_port, username, password,
function(err, result) {
if (err) {
sys.puts(err);
View
Binary file not shown.

0 comments on commit abaedc7

Please sign in to comment.