{"action":"created","issue":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2402","repository_url":"https://api.github.com/repos/cockpit-project/cockpit","labels_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2402/labels{/name}","comments_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2402/comments","events_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2402/events","html_url":"https://github.com/cockpit-project/cockpit/issues/2402","id":85555759,"number":2402,"title":"atomic: correct permission denied message for users","user":{"login":"dperpeet","id":8711649,"avatar_url":"https://avatars.githubusercontent.com/u/8711649?v=3","gravatar_id":"","url":"https://api.github.com/users/dperpeet","html_url":"https://github.com/dperpeet","followers_url":"https://api.github.com/users/dperpeet/followers","following_url":"https://api.github.com/users/dperpeet/following{/other_user}","gists_url":"https://api.github.com/users/dperpeet/gists{/gist_id}","starred_url":"https://api.github.com/users/dperpeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dperpeet/subscriptions","organizations_url":"https://api.github.com/users/dperpeet/orgs","repos_url":"https://api.github.com/users/dperpeet/repos","events_url":"https://api.github.com/users/dperpeet/events{/privacy}","received_events_url":"https://api.github.com/users/dperpeet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cockpit-project/cockpit/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"petervo","id":10439156,"avatar_url":"https://avatars.githubusercontent.com/u/10439156?v=3","gravatar_id":"","url":"https://api.github.com/users/petervo","html_url":"https://github.com/petervo","followers_url":"https://api.github.com/users/petervo/followers","following_url":"https://api.github.com/users/petervo/following{/other_user}","gists_url":"https://api.github.com/users/petervo/gists{/gist_id}","starred_url":"https://api.github.com/users/petervo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petervo/subscriptions","organizations_url":"https://api.github.com/users/petervo/orgs","repos_url":"https://api.github.com/users/petervo/repos","events_url":"https://api.github.com/users/petervo/events{/privacy}","received_events_url":"https://api.github.com/users/petervo/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-05T15:12:27Z","updated_at":"2016-02-19T21:40:55Z","closed_at":null,"body":"When logging in as a user without admin role, permission should be denied. Instead, there is a different message: \"connect or authenticate: terminated\"\r\nWe currently have a workaround in the tests, but the underlying issue should be fixed:\r\nhttps://github.com/cockpit-project/cockpit/pull/2231#discussion-diff-31327545R66\r\n"},"comment":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/comments/186418977","html_url":"https://github.com/cockpit-project/cockpit/issues/2402#issuecomment-186418977","issue_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2402","id":186418977,"user":{"login":"petervo","id":10439156,"avatar_url":"https://avatars.githubusercontent.com/u/10439156?v=3","gravatar_id":"","url":"https://api.github.com/users/petervo","html_url":"https://github.com/petervo","followers_url":"https://api.github.com/users/petervo/followers","following_url":"https://api.github.com/users/petervo/following{/other_user}","gists_url":"https://api.github.com/users/petervo/gists{/gist_id}","starred_url":"https://api.github.com/users/petervo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petervo/subscriptions","organizations_url":"https://api.github.com/users/petervo/orgs","repos_url":"https://api.github.com/users/petervo/repos","events_url":"https://api.github.com/users/petervo/events{/privacy}","received_events_url":"https://api.github.com/users/petervo/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T21:40:55Z","updated_at":"2016-02-19T21:40:55Z","body":"sshd doesn't always tell us why a server disconnects. So we can't really have the same message as cockpit-session logins. If you try on the command line all you see is: \"Connection closed by xxx\"\r\n\r\nWe probably can make the message better though. We do know if we were at least prompted for credentials so we can differentiate between no connection and when our connection was closed mid-auth, for whatever reason.\r\n\r\nSo my suggested is to show \"Authentication Failed: Server closed the connection\" as the error and show the username/password prompt again.\r\n\r\n@andreasn WDYT?"}}