{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/b8c2c6e24d1f12f810e1c81770686757?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b8c2c6e24d1f12f810e1c81770686757","url":"https://api.github.com/users/rrobe53","login":"rrobe53","id":561836},"milestone":null,"updated_at":"2011-11-10T00:24:40Z","labels":[],"assignee":null,"closed_at":null,"comments":7,"url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/33","body":"I'm going to start off by saying that I'm not LDAP expert so this may be user error, if so please advise.\r\n\r\nI've been using other libraries (https://github.com/jeremycx/node-LDAP) for LDAP authentication but due to various issues with them would like to move away from them. Anyways, the binding in that would allow me to provide the users network login information (which is in the LDAP as sAMAccountName) in a method of binding. I'd pretty much call it like \r\n\r\n    client.SimpleBind(\"Username\", \"Password\", function (success) { ... })\r\n\r\nAnyways, the bind method here requires me to provide a DN in the first variable, which I'm not sure what to provide. I've tried it without the \"DN=\" and that doesn't work. The following does not work either.\r\n\r\n    client.bind('sAMAccountName=Username', 'Password', function(err) {\r\n       assert.ifError(err);\r\n    });\r\n\r\nFor what it's worth, using tools like JXplorer I can connect using Username/Password without specifying a DN and it works. When I search for the Username it will bring it up by matching the sAMSAccountName.","html_url":"https://github.com/mcavage/node-ldapjs/issues/33","title":"Client Binding Possible Issue?","number":33,"id":2180445,"created_at":"2011-11-08T22:40:34Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/d4303c5963bae19094178768c8aead0c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d4303c5963bae19094178768c8aead0c","url":"https://api.github.com/users/mcavage","login":"mcavage","id":365262},"updated_at":"2011-11-10T00:24:40Z","url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/comments/2689818","body":"This should do what you need in 0.2.8 now.  If `Domain\\Username` is what works, use that. Let me know if it works, and I'll close this out.\r\n\r\nm","id":2689818,"created_at":"2011-11-10T00:24:40Z"}}