{"action":"created","issue":{"url":"https://api.github.com/repos/ytti/oxidized/issues/646","repository_url":"https://api.github.com/repos/ytti/oxidized","labels_url":"https://api.github.com/repos/ytti/oxidized/issues/646/labels{/name}","comments_url":"https://api.github.com/repos/ytti/oxidized/issues/646/comments","events_url":"https://api.github.com/repos/ytti/oxidized/issues/646/events","html_url":"https://github.com/ytti/oxidized/issues/646","id":196753750,"number":646,"title":"Group Authentication Not Working","user":{"login":"mattschwen","id":11743041,"avatar_url":"https://avatars.githubusercontent.com/u/11743041?v=3","gravatar_id":"","url":"https://api.github.com/users/mattschwen","html_url":"https://github.com/mattschwen","followers_url":"https://api.github.com/users/mattschwen/followers","following_url":"https://api.github.com/users/mattschwen/following{/other_user}","gists_url":"https://api.github.com/users/mattschwen/gists{/gist_id}","starred_url":"https://api.github.com/users/mattschwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattschwen/subscriptions","organizations_url":"https://api.github.com/users/mattschwen/orgs","repos_url":"https://api.github.com/users/mattschwen/repos","events_url":"https://api.github.com/users/mattschwen/events{/privacy}","received_events_url":"https://api.github.com/users/mattschwen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-20T19:09:34Z","updated_at":"2016-12-20T23:28:23Z","closed_at":null,"body":"I cannot seem to get group authentication to work. I have removed the default username and password at the top of the config file and have added the following:\r\n\r\n```\r\n\r\ngroups:\r\n  juniper:\r\n    username: xxxxxxxxxx\r\n    password: xxxxxxxxxx\r\n  cisco:\r\n    username: xxxxxxxxxx\r\n    password: xxxxxxxxxx\r\n  cumulus:\r\n    username: oxidized\r\n    publickey: /home/oxidized/.ssh/id_rsa.pub\r\n    privatekey: /home/oxidized/.ssh/id_rsa\r\n  brocade:\r\n    username: xxxxxxxxxx\r\n    password: xxxxxxxxxx\r\n  vyatta:\r\n    username: xxxxxxxxxx\r\n    password: xxxxxxxxxx\r\n```\r\n\r\n\r\n```\r\nsource:\r\n  default: csv\r\n  csv:\r\n    file: /home/oxidized/.config/oxidized/router.db\r\n    delimiter: !ruby/regexp /:/\r\n    map:\r\n      name: 0\r\n      model: 1\r\n      group: 2\r\n\r\n```\r\nI get the following error message:\r\n\r\n```\r\nPuma 2.16.0 starting...\r\n* Min threads: 0, max threads: 16\r\n* Environment: development\r\n* Listening on tcp://127.0.0.1:8888\r\nW, [2016-12-20T19:05:43.400396 #2190]  WARN -- : 10.4.3.4 raised Net::SSH::AuthenticationFailed with msg \"Authentication failed for user username@10.4.3.4\"\r\nW, [2016-12-20T19:05:43.593057 #2190]  WARN -- : lndoffesw01.corp.alianza.com status no_connection, retry attempt 1\r\n\r\n```\r\nIt is attempting to use the username of username. Which I assume is default since it is not noticing any username. \r\n\r\nI also wondered if SSH Key based authentication works instead of passwords. "},"comment":{"url":"https://api.github.com/repos/ytti/oxidized/issues/comments/268389438","html_url":"https://github.com/ytti/oxidized/issues/646#issuecomment-268389438","issue_url":"https://api.github.com/repos/ytti/oxidized/issues/646","id":268389438,"user":{"login":"ytti","id":200527,"avatar_url":"https://avatars.githubusercontent.com/u/200527?v=3","gravatar_id":"","url":"https://api.github.com/users/ytti","html_url":"https://github.com/ytti","followers_url":"https://api.github.com/users/ytti/followers","following_url":"https://api.github.com/users/ytti/following{/other_user}","gists_url":"https://api.github.com/users/ytti/gists{/gist_id}","starred_url":"https://api.github.com/users/ytti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytti/subscriptions","organizations_url":"https://api.github.com/users/ytti/orgs","repos_url":"https://api.github.com/users/ytti/repos","events_url":"https://api.github.com/users/ytti/events{/privacy}","received_events_url":"https://api.github.com/users/ytti/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T23:28:23Z","updated_at":"2016-12-20T23:28:23Z","body":"I'm interested in the early logs, where it resolves username/password."}}
{"actor":{"display_login":"ytti"}}