{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/passport-windowsauth/issues/11","repository_url":"https://api.github.com/repos/auth0/passport-windowsauth","labels_url":"https://api.github.com/repos/auth0/passport-windowsauth/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/auth0/passport-windowsauth/issues/11/comments","events_url":"https://api.github.com/repos/auth0/passport-windowsauth/issues/11/events","html_url":"https://github.com/auth0/passport-windowsauth/issues/11","id":27982442,"number":11,"title":"Connection retryer","user":{"login":"nnam","id":2849214,"avatar_url":"https://avatars.githubusercontent.com/u/2849214?v=3","gravatar_id":"","url":"https://api.github.com/users/nnam","html_url":"https://github.com/nnam","followers_url":"https://api.github.com/users/nnam/followers","following_url":"https://api.github.com/users/nnam/following{/other_user}","gists_url":"https://api.github.com/users/nnam/gists{/gist_id}","starred_url":"https://api.github.com/users/nnam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnam/subscriptions","organizations_url":"https://api.github.com/users/nnam/orgs","repos_url":"https://api.github.com/users/nnam/repos","events_url":"https://api.github.com/users/nnam/events{/privacy}","received_events_url":"https://api.github.com/users/nnam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2014-02-20T18:00:32Z","updated_at":"2016-07-11T15:04:18Z","closed_at":null,"body":"When my domain controller reboots or is unavailable, this doesn't seem to retry the connection?  What do you think about adding a retry function?"},"comment":{"url":"https://api.github.com/repos/auth0/passport-windowsauth/issues/comments/231762033","html_url":"https://github.com/auth0/passport-windowsauth/issues/11#issuecomment-231762033","issue_url":"https://api.github.com/repos/auth0/passport-windowsauth/issues/11","id":231762033,"user":{"login":"mweibel","id":307427,"avatar_url":"https://avatars.githubusercontent.com/u/307427?v=3","gravatar_id":"","url":"https://api.github.com/users/mweibel","html_url":"https://github.com/mweibel","followers_url":"https://api.github.com/users/mweibel/followers","following_url":"https://api.github.com/users/mweibel/following{/other_user}","gists_url":"https://api.github.com/users/mweibel/gists{/gist_id}","starred_url":"https://api.github.com/users/mweibel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweibel/subscriptions","organizations_url":"https://api.github.com/users/mweibel/orgs","repos_url":"https://api.github.com/users/mweibel/repos","events_url":"https://api.github.com/users/mweibel/events{/privacy}","received_events_url":"https://api.github.com/users/mweibel/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T15:04:18Z","updated_at":"2016-07-11T15:04:18Z","body":"If you get a ECONNRESET or similar (didn't try other cases), add `reconnect: true` to the ldap options you pass. \r\ne.g. from the example:\r\n```\r\npassport.use(new WindowsStrategy({\r\n  ldap: {\r\n    url:             'ldap://wellscordoba.wellscordobabank.com/DC=wellscordobabank,DC=com',\r\n    base:            'DC=wellscordobabank,DC=com',\r\n    bindDN:          'someAccount',\r\n    bindCredentials: 'andItsPass',\r\n    reconnect: true // <----------------\r\n  }\r\n}, function(profile, done){\r\n  User.findOrCreate({ waId: profile.id }, function (err, user) {\r\n    done(err, user);\r\n  });\r\n}));\r\n```"}}
{"actor":{"display_login":"mweibel"}}