{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1491","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1491/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1491/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1491/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/1491","id":118852092,"number":1491,"title":"LDAP authentication with active directory [$10]","user":{"login":"tpetrosy","id":10773969,"avatar_url":"https://avatars.githubusercontent.com/u/10773969?v=3","gravatar_id":"","url":"https://api.github.com/users/tpetrosy","html_url":"https://github.com/tpetrosy","followers_url":"https://api.github.com/users/tpetrosy/followers","following_url":"https://api.github.com/users/tpetrosy/following{/other_user}","gists_url":"https://api.github.com/users/tpetrosy/gists{/gist_id}","starred_url":"https://api.github.com/users/tpetrosy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpetrosy/subscriptions","organizations_url":"https://api.github.com/users/tpetrosy/orgs","repos_url":"https://api.github.com/users/tpetrosy/repos","events_url":"https://api.github.com/users/tpetrosy/events{/privacy}","received_events_url":"https://api.github.com/users/tpetrosy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/bounty","name":"bounty","color":"129e5e"},{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/feat:%20oauth%20/%20sso","name":"feat: oauth / sso","color":"207de5"},{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2015-11-25T14:48:59Z","updated_at":"2015-12-09T15:23:00Z","closed_at":null,"body":"Hello,\r\nWe try to integrate rocketchat with AD using LDAP.\r\nLogin works, but  we have problem with active sessions.\r\nSeems main.js creates new session with LDAP server for each user login and keeps connection up. \r\nAfter 15 minutes LDAP server sends RST packet to application and drop established connection.\r\nAs soon as LDAP server drop session with application, all connected clients lose connection with rocketchat server.\r\nThere is what I get from logs when it happens\r\n\r\nError: read ECONNRESET\r\n    at errnoException (net.js:905:11)\r\n    at TCP.onread (net.js:559:19)\r\n\r\n/var/www/rocket.chat/bundle/programs/server/packages/meteor.js:974\r\n    throw new Error(\"Meteor code must always run within a Fiber. \" +          \r\n          ^\r\nError: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.\r\n    at Object.Meteor._nodeCodeMustBeInFiber (packages/meteor/dynamics_nodejs.js:9:1)\r\n    at [object Object]._.extend.get (packages/meteor/dynamics_nodejs.js:21:1)\r\n    at Object.Meteor.isRestricted (packages/dispatch_run-as-user/packages/dispatch_run-as-user.js:137:1)\r\n    at [object Object].Mongo.Collection.(anonymous function) [as update] (packages/dispatch_run-as-user/packages/dispatch_run-as-user.js:268:1)\r\n    at Object.UserPresence.removeConnectionsByInstanceId (packages/konecty_user-presence/packages/konecty_user-presence.js:88:1)\r\n    at process.<anonymous> (packages/konecty_user-presence/packages/konecty_user-presence.js:223:1)\r\n    at process.emit (events.js:117:20)\r\n    at process.exit (node.js:740:17)\r\n    at process.catchException (/usr/lib/node_modules/pm2/node_modules/pmx/lib/notify.js:52:15)\r\n    at process.g (events.js:180:16)\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nThere is a **[$10 open bounty](https://www.bountysource.com/issues/28604137-ldap-authentication-with-active-directory?utm_campaign=plugin&utm_content=tracker%2F16890630&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F16890630&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/163289126","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/1491#issuecomment-163289126","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1491","id":163289126,"user":{"login":"miscs","id":878463,"avatar_url":"https://avatars.githubusercontent.com/u/878463?v=3","gravatar_id":"","url":"https://api.github.com/users/miscs","html_url":"https://github.com/miscs","followers_url":"https://api.github.com/users/miscs/followers","following_url":"https://api.github.com/users/miscs/following{/other_user}","gists_url":"https://api.github.com/users/miscs/gists{/gist_id}","starred_url":"https://api.github.com/users/miscs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miscs/subscriptions","organizations_url":"https://api.github.com/users/miscs/orgs","repos_url":"https://api.github.com/users/miscs/repos","events_url":"https://api.github.com/users/miscs/events{/privacy}","received_events_url":"https://api.github.com/users/miscs/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T15:23:00Z","updated_at":"2015-12-09T15:23:00Z","body":"We also have server crashes using LDAP with sync activated. We do use an LDAP Server, no AD.\r\nWe are using latest docker images."}}