{"action":"created","issue":{"url":"https://api.github.com/repos/amiv-eth/amivapi/issues/11","labels_url":"https://api.github.com/repos/amiv-eth/amivapi/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/amiv-eth/amivapi/issues/11/comments","events_url":"https://api.github.com/repos/amiv-eth/amivapi/issues/11/events","html_url":"https://github.com/amiv-eth/amivapi/issues/11","id":51842426,"number":11,"title":"LDAP Login","user":{"login":"Leonidaz0r","id":2820690,"avatar_url":"https://avatars.githubusercontent.com/u/2820690?v=3","gravatar_id":"","url":"https://api.github.com/users/Leonidaz0r","html_url":"https://github.com/Leonidaz0r","followers_url":"https://api.github.com/users/Leonidaz0r/followers","following_url":"https://api.github.com/users/Leonidaz0r/following{/other_user}","gists_url":"https://api.github.com/users/Leonidaz0r/gists{/gist_id}","starred_url":"https://api.github.com/users/Leonidaz0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leonidaz0r/subscriptions","organizations_url":"https://api.github.com/users/Leonidaz0r/orgs","repos_url":"https://api.github.com/users/Leonidaz0r/repos","events_url":"https://api.github.com/users/Leonidaz0r/events{/privacy}","received_events_url":"https://api.github.com/users/Leonidaz0r/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/amiv-eth/amivapi/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"NotSpecial","id":7079143,"avatar_url":"https://avatars.githubusercontent.com/u/7079143?v=3","gravatar_id":"","url":"https://api.github.com/users/NotSpecial","html_url":"https://github.com/NotSpecial","followers_url":"https://api.github.com/users/NotSpecial/followers","following_url":"https://api.github.com/users/NotSpecial/following{/other_user}","gists_url":"https://api.github.com/users/NotSpecial/gists{/gist_id}","starred_url":"https://api.github.com/users/NotSpecial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NotSpecial/subscriptions","organizations_url":"https://api.github.com/users/NotSpecial/orgs","repos_url":"https://api.github.com/users/NotSpecial/repos","events_url":"https://api.github.com/users/NotSpecial/events{/privacy}","received_events_url":"https://api.github.com/users/NotSpecial/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/amiv-eth/amivapi/milestones/2","html_url":"https://github.com/amiv-eth/amivapi/milestones/Beta","labels_url":"https://api.github.com/repos/amiv-eth/amivapi/milestones/2/labels","id":902113,"number":2,"title":"Beta","description":"Full feature set working with backend(LDAP etc) as it should be in production.","creator":{"login":"Leonidaz0r","id":2820690,"avatar_url":"https://avatars.githubusercontent.com/u/2820690?v=3","gravatar_id":"","url":"https://api.github.com/users/Leonidaz0r","html_url":"https://github.com/Leonidaz0r","followers_url":"https://api.github.com/users/Leonidaz0r/followers","following_url":"https://api.github.com/users/Leonidaz0r/following{/other_user}","gists_url":"https://api.github.com/users/Leonidaz0r/gists{/gist_id}","starred_url":"https://api.github.com/users/Leonidaz0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leonidaz0r/subscriptions","organizations_url":"https://api.github.com/users/Leonidaz0r/orgs","repos_url":"https://api.github.com/users/Leonidaz0r/repos","events_url":"https://api.github.com/users/Leonidaz0r/events{/privacy}","received_events_url":"https://api.github.com/users/Leonidaz0r/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":8,"state":"open","created_at":"2014-12-12T18:57:05Z","updated_at":"2015-05-07T12:26:11Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2014-12-12T19:19:41Z","updated_at":"2015-05-07T12:32:55Z","closed_at":null,"body":"Implement to reroute the login to LDAP and when credentials match there login the user without local password check."},"comment":{"url":"https://api.github.com/repos/amiv-eth/amivapi/issues/comments/99847387","html_url":"https://github.com/amiv-eth/amivapi/issues/11#issuecomment-99847387","issue_url":"https://api.github.com/repos/amiv-eth/amivapi/issues/11","id":99847387,"user":{"login":"NotSpecial","id":7079143,"avatar_url":"https://avatars.githubusercontent.com/u/7079143?v=3","gravatar_id":"","url":"https://api.github.com/users/NotSpecial","html_url":"https://github.com/NotSpecial","followers_url":"https://api.github.com/users/NotSpecial/followers","following_url":"https://api.github.com/users/NotSpecial/following{/other_user}","gists_url":"https://api.github.com/users/NotSpecial/gists{/gist_id}","starred_url":"https://api.github.com/users/NotSpecial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NotSpecial/subscriptions","organizations_url":"https://api.github.com/users/NotSpecial/orgs","repos_url":"https://api.github.com/users/NotSpecial/repos","events_url":"https://api.github.com/users/NotSpecial/events{/privacy}","received_events_url":"https://api.github.com/users/NotSpecial/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T12:32:55Z","updated_at":"2015-05-07T12:32:55Z","body":"fubus LDAP Tool supports this already, I will try to integrate it into the API\r\n\r\nThe flow should be like this:\r\n\r\n ...\r\n\r\nPost to /sessions with username and password\r\n\r\nFirst: Try login with LDAP (since this is the majority of users)\r\n\r\n-> If successful, update user data from ldap\r\n\r\n-> If unsuccessful, try to login with database\r\n\r\n\r\n...\r\n\r\nThis way, everybody can set a specific AMIV password in case he doesn't want to trust us with his nethz credentials"}}