mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
AuthNone: encode entity name in authorizer
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
This commit is contained in:
parent
37a976222f
commit
9e9cec694a
@ -38,7 +38,7 @@ public:
|
||||
AuthAuthorizer *build_authorizer(uint32_t service_id) {
|
||||
AuthNoneAuthorizer *auth = new AuthNoneAuthorizer();
|
||||
if (auth) {
|
||||
auth->build_authorizer(global_id);
|
||||
auth->build_authorizer(cct->_conf->name, global_id);
|
||||
}
|
||||
return auth;
|
||||
}
|
||||
|
@ -19,9 +19,10 @@
|
||||
|
||||
struct AuthNoneAuthorizer : public AuthAuthorizer {
|
||||
AuthNoneAuthorizer() : AuthAuthorizer(CEPH_AUTH_NONE) { }
|
||||
bool build_authorizer(uint64_t global_id) {
|
||||
bool build_authorizer(const EntityName &ename, uint64_t global_id) {
|
||||
__u8 struct_v = 1;
|
||||
::encode(struct_v, bl);
|
||||
::encode(ename, bl);
|
||||
::encode(global_id, bl);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user