title: How to make the same Openstack Keystone authentication request in the V3 and V2 API?
body: <p>I have a single machine installation of OpenStack Mitaka on a Fedora 24 server VM that includes Keystone and Swift. I went through the OpenStack installation instructions and got the v3 keystone API working but some other software I'm installing depends on v2. I am unable to authenticate with the v2 API and get a token, even though the equivalent request to the v3 API works correctly. Here are the two requests I'm making:</p>
  
  <p>V3:</p>
  
  <pre><code>curl -i   -H "Content-Type: application/json"   -d '
  { "auth": {
      "identity": {
        "methods": ["password"],
        "password": {
          "user": {
            "name": "admin",
            "domain": { "name": "default" },
            "password": "PASSWORD"
          }
        }
      }
    }
  }'   http://SERVER:35357/v3/auth/tokens
  </code></pre>
  
  <p>V2:</p>
  
  <pre><code>curl -d -H "Content-Type: application/json"
  '{"auth": {
        "passwordCredentials": {
               "username": "admin",
               "password": "PASSWORD"
        },
        "tenantName": "admin"
      }
     }'  http://SERVER:35357/v2.0/tokens
  </code></pre>
  
  <p>The V3 request returns a token, but the V2 request fails with:</p>
  
  <pre><code>{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
  </code></pre>
  
  <p>Are these API requests equivalent? Are there keystone.conf settings that need to be changed in order to make the V2 API work?</p>