{"action":"created","issue":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/2298","repository_url":"https://api.github.com/repos/arangodb/arangodb","labels_url":"https://api.github.com/repos/arangodb/arangodb/issues/2298/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangodb/issues/2298/comments","events_url":"https://api.github.com/repos/arangodb/arangodb/issues/2298/events","html_url":"https://github.com/arangodb/arangodb/issues/2298","id":205340592,"number":2298,"title":"arangosh --server.authentication false gives me 401: Unauthorized","user":{"login":"andregs","id":712092,"avatar_url":"https://avatars.githubusercontent.com/u/712092?v=3","gravatar_id":"","url":"https://api.github.com/users/andregs","html_url":"https://github.com/andregs","followers_url":"https://api.github.com/users/andregs/followers","following_url":"https://api.github.com/users/andregs/following{/other_user}","gists_url":"https://api.github.com/users/andregs/gists{/gist_id}","starred_url":"https://api.github.com/users/andregs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andregs/subscriptions","organizations_url":"https://api.github.com/users/andregs/orgs","repos_url":"https://api.github.com/users/andregs/repos","events_url":"https://api.github.com/users/andregs/events{/privacy}","received_events_url":"https://api.github.com/users/andregs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-04T10:57:28Z","updated_at":"2017-02-04T21:16:00Z","closed_at":null,"body":"I have a fresh install of ArangoDB 3.1.9 on Win10 64 bits. The server is up & running with auth enabled:\r\n\r\n```\r\nPS C:\\Users\\andre> arangod\r\n2017-02-04T08:13:23Z [135116] INFO ArangoDB 3.1.9 [win64] 64bit, using VPack 0.1.30, ICU 54.1, V8 5.0.71.39, OpenSSL 1.0.2a 19 Mar 2015\r\n2017-02-04T08:13:23Z [135116] INFO using SSL options: SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_TLS_ROLLBACK_BUG\r\n2017-02-04T08:13:23Z [135116] INFO Authentication is turned on\r\n2017-02-04T08:13:23Z [135116] INFO Authentication system only\r\n2017-02-04T08:13:24Z [135116] INFO JavaScript using startup 'C:\\ArangoDB\\/usr/share/arangodb3/js', application 'C:\\ArangoDB\\var/lib/arangodb3-apps'\r\n2017-02-04T08:13:39Z [135116] INFO In database '_system': Database is up-to-date (30109/standalone/existing)\r\n2017-02-04T08:13:39Z [135116] INFO using endpoint 'http+tcp://127.0.0.1:8529' for non-encrypted requests\r\n2017-02-04T08:13:44Z [135116] INFO ArangoDB (version 3.1.9 [win64]) is ready for business. Have fun!\r\n```\r\n\r\nNow I'm trying to connect via arangosh with auth off:\r\n\r\n```\r\nPS C:\\Users\\andre> arangosh --server.authentication false\r\n\r\n                                       _\r\n  __ _ _ __ __ _ _ __   __ _  ___  ___| |__\r\n / _` | '__/ _` | '_ \\ / _` |/ _ \\/ __| '_ \\\r\n| (_| | | | (_| | | | | (_| | (_) \\__ \\ | | |\r\n \\__,_|_|  \\__,_|_| |_|\\__, |\\___/|___/_| |_|\r\n                       |___/\r\n\r\narangosh (ArangoDB 3.1.9 [win64] 64bit, using VPack 0.1.30, ICU 54.1, V8 5.0.71.39, OpenSSL 1.0.2a 19 Mar 2015)\r\nCopyright (c) ArangoDB GmbH\r\n\r\nPretty printing values.\r\nCould not connect to endpoint 'http+tcp://127.0.0.1:8529', database: '_system', username: 'root'\r\nError message: '401: Unauthorized'\r\n\r\nType 'tutorial' for a tutorial or 'help' to see common examples\r\n127.0.0.1:8529@_system>\r\n```\r\n\r\nI was not expecting that 401 error above. I thought `--server.authentication false` would take precedence over the default setting.\r\n\r\nSo far I have only the root user with a non-empty password."},"comment":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/comments/277478535","html_url":"https://github.com/arangodb/arangodb/issues/2298#issuecomment-277478535","issue_url":"https://api.github.com/repos/arangodb/arangodb/issues/2298","id":277478535,"user":{"login":"fceller","id":392005,"avatar_url":"https://avatars.githubusercontent.com/u/392005?v=3","gravatar_id":"","url":"https://api.github.com/users/fceller","html_url":"https://github.com/fceller","followers_url":"https://api.github.com/users/fceller/followers","following_url":"https://api.github.com/users/fceller/following{/other_user}","gists_url":"https://api.github.com/users/fceller/gists{/gist_id}","starred_url":"https://api.github.com/users/fceller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fceller/subscriptions","organizations_url":"https://api.github.com/users/fceller/orgs","repos_url":"https://api.github.com/users/fceller/repos","events_url":"https://api.github.com/users/fceller/events{/privacy}","received_events_url":"https://api.github.com/users/fceller/received_events","type":"User","site_admin":false},"created_at":"2017-02-04T21:16:00Z","updated_at":"2017-02-04T21:16:00Z","body":"If you have disabled authentication in the server, then arangosh would still always ask for a password when starting up. You can suppress this using `--server.authentication false`."}}
{"actor":{"display_login":"fceller"}}