{"action":"created","issue":{"url":"https://api.github.com/repos/vesse/node-ldapauth-fork/issues/17","labels_url":"https://api.github.com/repos/vesse/node-ldapauth-fork/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/vesse/node-ldapauth-fork/issues/17/comments","events_url":"https://api.github.com/repos/vesse/node-ldapauth-fork/issues/17/events","html_url":"https://github.com/vesse/node-ldapauth-fork/issues/17","id":73110610,"number":17,"title":"ldap authentication error","user":{"login":"chacliff","id":2320528,"avatar_url":"https://avatars.githubusercontent.com/u/2320528?v=3","gravatar_id":"","url":"https://api.github.com/users/chacliff","html_url":"https://github.com/chacliff","followers_url":"https://api.github.com/users/chacliff/followers","following_url":"https://api.github.com/users/chacliff/following{/other_user}","gists_url":"https://api.github.com/users/chacliff/gists{/gist_id}","starred_url":"https://api.github.com/users/chacliff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chacliff/subscriptions","organizations_url":"https://api.github.com/users/chacliff/orgs","repos_url":"https://api.github.com/users/chacliff/repos","events_url":"https://api.github.com/users/chacliff/events{/privacy}","received_events_url":"https://api.github.com/users/chacliff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-04T19:45:04Z","updated_at":"2015-05-07T05:01:20Z","closed_at":"2015-05-07T00:01:14Z","body":"I hope your still maintaining this and can answer my question. \r\ni keep getting the same invalidCredentialsError no matter what credentials i have been putting in, i know the credentials i am using are correct does it not traverse the directories properly?\r\n\r\n     LdapAuth = require('ldapauth-fork'); \r\n     var options = { \r\n\t    url: \"ldap://10.213.200.5\", \r\n\t     bindDn: \"uid=adminuser, ou=company, o=directory\",\r\n\t     bindCredentials: \"password\",\r\n\t    searchBase: \"ou=company, o=directory\",\r\n\t    searchFilter: \"(uid={{username}})\"\r\n    };\r\n    var auth = new LdapAuth(options); \r\n    var ldapValidate = function (username, password, callback){\r\n\t    console.log(username + \" \" + password); \r\n\t    auth.authenticate(username, password, function(err, user){\r\n\t\t    if(err){\r\n\t\t\t    console.log(\"an error occured while authenticating\"); \r\n\t\t\t    console.log(err); \r\n\t\t    }else{\r\n\t\t\t    console.log(user); \r\n\t\t    }\r\n\t\t    callback(err, user); \r\n\t    });\r\n    };\r\n    server.auth.strategy('psit-auth', 'basic', {validateFunc: ldapValidate }); "},"comment":{"url":"https://api.github.com/repos/vesse/node-ldapauth-fork/issues/comments/99718736","html_url":"https://github.com/vesse/node-ldapauth-fork/issues/17#issuecomment-99718736","issue_url":"https://api.github.com/repos/vesse/node-ldapauth-fork/issues/17","id":99718736,"user":{"login":"vesse","id":738763,"avatar_url":"https://avatars.githubusercontent.com/u/738763?v=3","gravatar_id":"","url":"https://api.github.com/users/vesse","html_url":"https://github.com/vesse","followers_url":"https://api.github.com/users/vesse/followers","following_url":"https://api.github.com/users/vesse/following{/other_user}","gists_url":"https://api.github.com/users/vesse/gists{/gist_id}","starred_url":"https://api.github.com/users/vesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vesse/subscriptions","organizations_url":"https://api.github.com/users/vesse/orgs","repos_url":"https://api.github.com/users/vesse/repos","events_url":"https://api.github.com/users/vesse/events{/privacy}","received_events_url":"https://api.github.com/users/vesse/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T05:01:20Z","updated_at":"2015-05-07T05:01:20Z","body":"Cool. Yeah I know the documentation is not exceptional, I just forked the project for an urgent need back in the day and then kept on fixing the issues (last commit to the original project was made a year and a half ago). But really, the library just wraps `ldapjs` and most of the options are just passed forward to `ldapjs`, so you might as well look into [ldapjs documentation](http://ldapjs.org/client.html), especially because the basic parameters (bind credentials, search base, and filter) are core LDAP parameters and extensively documented elsewhere."}}