From: Radoslaw Zarzynski Date: Thu, 8 Jun 2017 12:33:51 +0000 (+0200) Subject: rgw: external auth engines of S3 honor rgw_keystone_implicit_tenants. X-Git-Tag: ses5-milestone7~3^2~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=82c77bcb52167b7e713899c3bdfea2388e54998d;p=ceph.git rgw: external auth engines of S3 honor rgw_keystone_implicit_tenants. Fixes: http://tracker.ceph.com/issues/17779 Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/rgw/rgw_auth_s3.h b/src/rgw/rgw_auth_s3.h index cbc0bee69af0..0f36837d19b0 100644 --- a/src/rgw/rgw_auth_s3.h +++ b/src/rgw/rgw_auth_s3.h @@ -38,7 +38,7 @@ class ExternalAuthStrategy : public rgw::auth::Strategy, ) const override { auto apl = rgw::auth::add_sysreq(cct, store, s, rgw::auth::RemoteApplier(cct, store, std::move(acl_alg), info, - false /* no implicit tenants */)); + cct->_conf->rgw_keystone_implicit_tenants)); /* TODO(rzarzynski): replace with static_ptr. */ return aplptr_t(new decltype(apl)(std::move(apl))); } diff --git a/src/rgw/rgw_rest_s3.h b/src/rgw/rgw_rest_s3.h index d426b3d40caa..6d33bace8be1 100644 --- a/src/rgw/rgw_rest_s3.h +++ b/src/rgw/rgw_rest_s3.h @@ -842,7 +842,7 @@ public: ) const override { return aplptr_t( new rgw::auth::RemoteApplier(cct, store, std::move(acl_alg), info, - false /* no implicit tenants */)); + cct->_conf->rgw_keystone_implicit_tenants)); } aplptr_t create_apl_local(CephContext* const cct,