These are handled by AuthClient and AuthServer now.
Signed-off-by: Sage Weil <sage@redhat.com>
timer(m->cct, mds_lock),
gss_ktfile_client(m->cct->_conf.get_val<std::string>("gss_ktab_client_file")),
beacon(m->cct, mc, n),
- authorize_handler_cluster_registry(new AuthAuthorizeHandlerRegistry(m->cct,
- m->cct->_conf->auth_supported.empty() ?
- m->cct->_conf->auth_cluster_required :
- m->cct->_conf->auth_supported)),
- authorize_handler_service_registry(new AuthAuthorizeHandlerRegistry(m->cct,
- m->cct->_conf->auth_supported.empty() ?
- m->cct->_conf->auth_service_required :
- m->cct->_conf->auth_supported)),
name(n),
messenger(m),
monc(mc),
delete mds_rank;
mds_rank = NULL;
-
- delete authorize_handler_service_registry;
- delete authorize_handler_cluster_registry;
}
class MDSSocketHook : public AdminSocketHook {
#define CEPH_MDS_PROTOCOL 34 /* cluster internal */
-class AuthAuthorizeHandlerRegistry;
class Messenger;
class MonClient;
protected:
Beacon beacon;
- AuthAuthorizeHandlerRegistry *authorize_handler_cluster_registry;
- AuthAuthorizeHandlerRegistry *authorize_handler_service_registry;
-
std::string name;
Messenger *messenger;
py_modules(py_modules_),
clog(clog_),
audit_clog(audit_clog_),
- auth_cluster_registry(g_ceph_context,
- g_conf()->auth_supported.empty() ?
- g_conf()->auth_cluster_required :
- g_conf()->auth_supported),
- auth_service_registry(g_ceph_context,
- g_conf()->auth_supported.empty() ?
- g_conf()->auth_service_required :
- g_conf()->auth_supported),
lock("DaemonServer"),
pgmap_ready(false),
timer(g_ceph_context, lock),
#include <msg/Messenger.h>
#include <mon/MonClient.h>
-#include "auth/AuthAuthorizeHandler.h"
-
#include "ServiceMap.h"
#include "MgrSession.h"
#include "DaemonState.h"
PyModuleRegistry &py_modules;
LogChannelRef clog, audit_clog;
- // Authentication methods for cluster peers
- AuthAuthorizeHandlerRegistry auth_cluster_registry;
- // Authentication methods for clients
- AuthAuthorizeHandlerRegistry auth_service_registry;
-
// Connections for daemons, and clients with service names set
// (i.e. those MgrClients that are allowed to send MMgrReports)
std::set<ConnectionRef> daemon_connections;
tick_timer_lock("OSD::tick_timer_lock"),
tick_timer_without_osd_lock(cct, tick_timer_lock),
gss_ktfile_client(cct->_conf.get_val<std::string>("gss_ktab_client_file")),
- authorize_handler_cluster_registry(new AuthAuthorizeHandlerRegistry(cct,
- cct->_conf->auth_supported.empty() ?
- cct->_conf->auth_cluster_required :
- cct->_conf->auth_supported)),
- authorize_handler_service_registry(new AuthAuthorizeHandlerRegistry(cct,
- cct->_conf->auth_supported.empty() ?
- cct->_conf->auth_service_required :
- cct->_conf->auth_supported)),
cluster_messenger(internal_messenger),
client_messenger(external_messenger),
objecter_messenger(osdc_messenger),
delete shards.back();
shards.pop_back();
}
- delete authorize_handler_cluster_registry;
- delete authorize_handler_service_registry;
delete class_handler;
cct->get_perfcounters_collection()->remove(recoverystate_perf);
cct->get_perfcounters_collection()->remove(logger);
#include "OSDCap.h"
#include "auth/KeyRing.h"
+
#include "osd/ClassHandler.h"
#include "include/CompatSet.h"
class Watch;
class PrimaryLogPG;
-class AuthAuthorizeHandlerRegistry;
-
class TestOpsSocketHook;
struct C_FinishSplits;
struct C_OpenPGs;
const double OSD_TICK_INTERVAL = { 1.0 };
double get_tick_interval() const;
- AuthAuthorizeHandlerRegistry *authorize_handler_cluster_registry;
- AuthAuthorizeHandlerRegistry *authorize_handler_service_registry;
-
Messenger *cluster_messenger;
Messenger *client_messenger;
Messenger *objecter_messenger;
}
};
-typedef boost::scoped_ptr<AuthAuthorizeHandlerRegistry> AuthHandlerRef;
class OSDStub : public TestStub
{
- AuthHandlerRef auth_handler_registry;
int whoami;
OSDSuperblock sb;
OSDMap osdmap;
OSDStub(int _whoami, CephContext *cct)
: TestStub(cct, "osd"),
- auth_handler_registry(new AuthAuthorizeHandlerRegistry(
- cct,
- cct->_conf->auth_cluster_required.length() ?
- cct->_conf->auth_cluster_required :
- cct->_conf->auth_supported)),
whoami(_whoami),
gen(whoami),
mon_osd_rng(STUB_MON_OSD_FIRST, STUB_MON_OSD_LAST)