vmware-archive / vcd-cli

Command Line Interface for VMware vCloud Director
https://vmware.github.io/vcd-cli
Other
165 stars 107 forks source link

vcd-cli and org case sensitivity #127

Open tsugliani opened 6 years ago

tsugliani commented 6 years ago

Small issue we found out:

root@cse [ ~ ]# vcd login vcd.fqdn.com DEMO admin --password 'secretpassword' -i -w
admin logged in, org: 'DEMO', vdc: 'OvDC-PAYG-01'
root@cse [ ~ ]# vcd vdc list
in_use    name          org
--------  ------------  -----
True      OvDC-PAYG-01  DEMO
root@cse [ ~ ]# vcd login vcd.fqdn.com demo admin --password 'secretpassword' -i -w
admin logged in, org: 'demo', vdc: 'OvDC-PAYG-01'
root@cse [ ~ ]# vcd vdc list

root@cse [ ~ ]# vcd login vcd.fqdn.com DEMO admin --password 'secretpassword' -i -w
admin logged in, org: 'DEMO', vdc: 'OvDC-PAYG-01'
root@cse [ ~ ]# vcd vdc list
in_use    name          org
--------  ------------  -----
True      OvDC-PAYG-01  DEMO

That's because I suspect when you create the authentication token case sensitivity has no impact as you just POST to /api/sessions with credentials, to generate the auth token, but not the rest ?

rocknes commented 6 years ago

vCD is case insensitive when it comes to org names. However the cli isn't. We will look into this. Thanks