]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: only all ms_handle_authentication() if auth method says we're done
authorSage Weil <sage@redhat.com>
Mon, 14 Jan 2019 23:18:13 +0000 (17:18 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 12:53:03 +0000 (06:53 -0600)
commit596fcff1ed002e094240f8be76d002b2116c0745
tree850bb7af8a656a7591540571771543dffd717677
parentda326e7ab81bb126f829a6ebb4ac2708c3b3d8b7
mon: only all ms_handle_authentication() if auth method says we're done

Previously we would call ms_handle_authentication() possibly multiple
times, and without knowning whether it might succeed. Instead, only call
it when start_session() or handle_request() returns >0 to indicate that
we should.

Signed-off-by: Sage Weil <sage@redhat.com>
src/auth/cephx/CephxServiceHandler.cc
src/auth/none/AuthNoneServiceHandler.h
src/auth/unknown/AuthUnknownServiceHandler.h
src/mon/AuthMonitor.cc