]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
auth/AuthServiceHandler: keep track of global_id and whether it is new
authorIlya Dryomov <idryomov@gmail.com>
Tue, 9 Mar 2021 15:33:55 +0000 (16:33 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 12 Apr 2021 18:50:53 +0000 (20:50 +0200)
commitec5ee926bdc2011c9b96073e6588e11cbba2fecf
tree38f94261c5bfaafd2d40e55fef5b4275c9186b61
parente4babc69197655aeaf60ceeaf69410acd3254bcd
auth/AuthServiceHandler: keep track of global_id and whether it is new

AuthServiceHandler already has global_id field, but it is unused.
Revive it and let the handler know whether global_id is newly assigned
by the monitor or provided by the client.

Lift the setting of entity_name into AuthServiceHandler.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit b50b6abd60e730176a7ef602bdd25d789a3c467d)
src/auth/AuthServiceHandler.cc
src/auth/AuthServiceHandler.h
src/auth/cephx/CephxServiceHandler.cc
src/auth/cephx/CephxServiceHandler.h
src/auth/krb/KrbServiceHandler.cpp
src/auth/krb/KrbServiceHandler.hpp
src/auth/none/AuthNoneServiceHandler.h
src/mon/AuthMonitor.cc
src/mon/Monitor.cc