deNBI / perunKeystoneAdapter

Perun Keystone Adapter parses data propagated by Perun data and modifies a connected Keystone.
https://perunkeystoneadapter.readthedocs.io/en/latest/
Apache License 2.0
5 stars 0 forks source link

Fix/target domain #24

Closed Be-El closed 5 years ago

Be-El commented 5 years ago

Fixes in this branch:

Tested with domain admin credentials on test domain: blinke@bcf-pc01:~/source/perunKeystoneAdapter$ python denbi/scripts/perun_propagation.py --role member -v -v --domain 4d5930b754054c1e874b06d382374a97 test/resources/perun.tar.gz DEBUG:denbi:Working on domain 4d5930b754054c1e874b06d382374a97 DEBUG:denbi:Using existing default role member (id 9fe2ff9ee4384b1894a90878d3e92bab) INFO:denbi.perun.endpoint:Importing data mode=denbi_portal_compute_center users_path=/tmp/tmpmQVsiy/users.scim groups_path=/tmp/tmpmQVsiy/groups.scim DEBUG:denbi:Found denbi associated project Test Projekt (id 5cd05f4c26f847c1bcf5f335a926b599) DEBUG:denbi:Found user 6a5ac1b6a502463cab237c844bc2ad82 as member in project Test Projekt DEBUG:denbi:Found user 7689c2ce3b9847bf8a97e0f0ef53d48e as member in project Test Projekt DEBUG:denbi:Found user 86fa95b194f74164b3cefdbc1b9c2585 as member in project Test Projekt DEBUG:denbi:Found denbi associated project Test Projekt 2 (id 2e9c820106fd487683d0a383601b56b4) DEBUG:denbi:Found user 60d9d2c32a044651be6be1e15333ffc6 as member in project Test Projekt 2

Keep in mind that domain admins cannot list all domains; domain lookups by name will fail. You need to pass the domain as id if you want to use domain admin credentials. Fallback to default behaviour for cloud admins and name based lookups if present, but currently untested.

Fixes #23, fixes #22

pep8speaks commented 5 years ago

Hello @Be-El! Thanks for updating the PR.

Comment last updated on November 09, 2018 at 10:08 Hours UTC