{"action":"created","issue":{"url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/243","labels_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/243/comments","events_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/243/events","html_url":"https://github.com/mcavage/node-ldapjs/issues/243","id":50863760,"number":243,"title":"Binding only works sometimes","user":{"login":"petermikitsh","id":1571918,"avatar_url":"https://avatars.githubusercontent.com/u/1571918?v=3","gravatar_id":"","url":"https://api.github.com/users/petermikitsh","html_url":"https://github.com/petermikitsh","followers_url":"https://api.github.com/users/petermikitsh/followers","following_url":"https://api.github.com/users/petermikitsh/following{/other_user}","gists_url":"https://api.github.com/users/petermikitsh/gists{/gist_id}","starred_url":"https://api.github.com/users/petermikitsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermikitsh/subscriptions","organizations_url":"https://api.github.com/users/petermikitsh/orgs","repos_url":"https://api.github.com/users/petermikitsh/repos","events_url":"https://api.github.com/users/petermikitsh/events{/privacy}","received_events_url":"https://api.github.com/users/petermikitsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pfmooney","id":1555070,"avatar_url":"https://avatars.githubusercontent.com/u/1555070?v=3","gravatar_id":"","url":"https://api.github.com/users/pfmooney","html_url":"https://github.com/pfmooney","followers_url":"https://api.github.com/users/pfmooney/followers","following_url":"https://api.github.com/users/pfmooney/following{/other_user}","gists_url":"https://api.github.com/users/pfmooney/gists{/gist_id}","starred_url":"https://api.github.com/users/pfmooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfmooney/subscriptions","organizations_url":"https://api.github.com/users/pfmooney/orgs","repos_url":"https://api.github.com/users/pfmooney/repos","events_url":"https://api.github.com/users/pfmooney/events{/privacy}","received_events_url":"https://api.github.com/users/pfmooney/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2014-12-03T17:02:34Z","updated_at":"2015-01-28T16:03:14Z","closed_at":null,"body":"Binding fails ~9/10 times. Not sure if I am improperly using the node-ldapjs client, or if there is a problem with the server I am connecting to.\r\n\r\nMy code: \r\n\r\n```javascript\r\nvar client = ldap.createClient({\r\n  url: 'ldap://main.ad.rit.edu',\r\n});    \r\n\r\nclient.bind(credentials.username, credentials.password, function (err) {\r\n  if (err) {\r\n    console.log(\"[ERROR] when binding:\");\r\n    console.log(err, err.dn, err.code, err.name, err.message);\r\n  } else {\r\n    ...\r\n  }\r\n}\r\n```\r\n\r\nOutput (on failure case):\r\n\r\n```\r\n[ERROR] when binding:\r\n{ [ConnectionError: ldap://main.ad.rit.edu closed]\r\n  dn: [Getter],\r\n  code: [Getter],\r\n  name: [Getter],\r\n  message: [Getter] } '' 128 'ConnectionError' 'ldap://main.ad.rit.edu closed'\r\n```\r\n\r\nOtherwise, when it succeeds, I can run queries and the client functions as expected."},"comment":{"url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/comments/71860286","html_url":"https://github.com/mcavage/node-ldapjs/issues/243#issuecomment-71860286","issue_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/243","id":71860286,"user":{"login":"rrkkumar","id":10198111,"avatar_url":"https://avatars.githubusercontent.com/u/10198111?v=3","gravatar_id":"","url":"https://api.github.com/users/rrkkumar","html_url":"https://github.com/rrkkumar","followers_url":"https://api.github.com/users/rrkkumar/followers","following_url":"https://api.github.com/users/rrkkumar/following{/other_user}","gists_url":"https://api.github.com/users/rrkkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/rrkkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrkkumar/subscriptions","organizations_url":"https://api.github.com/users/rrkkumar/orgs","repos_url":"https://api.github.com/users/rrkkumar/repos","events_url":"https://api.github.com/users/rrkkumar/events{/privacy}","received_events_url":"https://api.github.com/users/rrkkumar/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T16:03:14Z","updated_at":"2015-01-28T16:03:14Z","body":"Any update on this? we are also facing similar issue"}}