Adds a static shutdown() method to rgw::auth::s3::LDAPEngine, and
calls it from main.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
delete olog;
RGWStoreManager::close_storage(store);
-
+ rgw::auth::s3::LDAPEngine::shutdown();
rgw_tools_cleanup();
rgw_shutdown_resolver();
curl_global_cleanup();
auto apl = apl_factory->create_apl_remote(cct, s, get_acl_strategy(),
get_creds_info(base64_token));
return result_t::grant(std::move(apl), completer_factory(boost::none));
-}
+} /* rgw::auth::s3::LDAPEngine::authenticate */
+void rgw::auth::s3::LDAPEngine::shutdown() {
+ if (ldh) {
+ delete ldh;
+ ldh = nullptr;
+ }
+}
/* LocalEndgine */
rgw::auth::Engine::result_t
const char* get_name() const noexcept override {
return "rgw::auth::s3::LDAPEngine";
}
+
+ static void shutdown();
};