void tick() {}
- AuthAuthorizer *build_authorizer(uint32_t service_id) { return new AuthNoneAuthorizer(); }
+ AuthAuthorizer *build_authorizer(uint32_t service_id) {
+ AuthNoneAuthorizer *auth = new AuthNoneAuthorizer();
+ if (auth)
+ auth->build_authorizer();
+ return auth;
+ }
void validate_tickets() { }
bool need_tickets() { return false; }
struct AuthNoneAuthorizer : public AuthAuthorizer {
AuthNoneAuthorizer() : AuthAuthorizer(CEPH_AUTH_NONE) { }
bool build_authorizer() {
- ::encode(g_conf.entity_name, bl);
+ ::encode(*g_conf.entity_name, bl);
return 0;
}
bool verify_reply(bufferlist::iterator& reply) { return true; }
bool MDS::ms_get_authorizer(int dest_type, AuthAuthorizer **authorizer, bool force_new)
{
- dout(0) << "OSD::ms_get_authorizer type=" << dest_type << dendl;
+ dout(0) << "MDS::ms_get_authorizer type=" << dest_type << dendl;
/* monitor authorization is being handled on different layer */
if (dest_type == CEPH_ENTITY_TYPE_MON)