Quick question

What is the diff between difference between os-domain-name and os-user-domain name ?

When trying to retrieve a token with following command it works for '--os-domain-name default' and not for '--os-user-domain-name default'

Reason for asking is that v3 token requests works when specifying os-domain-name and when using v2 I get

openstack --os-identity-api-version 2 --os-project-name service --os-username swift --os-password swift --os-auth-url http://192.168.0.165:5000/v2.0 token issue The request you have made requires authentication. (HTTP 401) (Request-ID: req-8bd70046-d2f4-42b0-a2f7-13073894130d)

openstack --os-identity-api-version 3 --os-project-name service --os-username swift --os-password swift --os-domain-name default --os-project-domain-name default --os-auth-url http://192.168.0.165:5000/v3 token issue

+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field      | Value |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| expires    | 2017-02-24 18:14:34+00:00 |
| id | gAAAAABYsGn6izy9kqs8cCtGtLFtNB5_WRcjtRNve6v7B3w_9B0neH4MINIV4idc0TAahrq7p09V0-zQ6XdgJbXS3Nu_ueIBiAAoj0MnugO8hc2QYQNrHVuzVi2m2R_fq-sv1bBIIC12wrqihlg3HVEXun0T0oEh0SLWQwMPtqqb5W4CDWHEneQ |
| project_id | 73401b0851e449738b09b5a0b9e7f19f |
| user_id    | 0c37b9936b51464aabaefa17e4b98149 |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

user swift has domain id for default domain set:

 openstack user list
+----------------------------------+-------+
| ID                               | Name  |
+----------------------------------+-------+
| 0c37b9936b51464aabaefa17e4b98149 | swift |
| 0ee3acb49f7c4890bfd00cf3da91deba | demo  |
| 663308530655472bb392b21b6f74a277 | admin |
+----------------------------------+-------+
 openstack user show swift
+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| default_project_id  | 73401b0851e449738b09b5a0b9e7f19f |
| domain_id           | aab1f1c19fb6450798567050cfbf4aea |
| enabled             | True                             |
| id                  | 0c37b9936b51464aabaefa17e4b98149 |
| name                | swift                            |
| password_expires_at | None                             |
+---------------------+----------------------------------+
 openstack domain list
+----------------------------------+---------+---------+----------------+
| ID                               | Name    | Enabled | Description    |
+----------------------------------+---------+---------+----------------+
| aab1f1c19fb6450798567050cfbf4aea | default | True    | Default Domain |
+----------------------------------+---------+---------+----------------+
openstack project show service
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Service Project                  |
| domain_id   | aab1f1c19fb6450798567050cfbf4aea |
| enabled     | True                             |
| id          | 73401b0851e449738b09b5a0b9e7f19f |
| is_domain   | False                            |
| name        | service                          |
| parent_id   | aab1f1c19fb6450798567050cfbf4aea |
+-------------+----------------------------------+


--
Regards,

Peter Brouwer, Principal Software Engineer,
Oracle Application Integration Engineering.
Phone:  +44 1506 672767, Mobile +44 7720 598 226
E-Mail: peter.brou...@oracle.com


_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to