]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
auth: return unknown if no supported auth is found
authorJosh Durgin <josh.durgin@dreamhost.com>
Fri, 28 Oct 2011 01:11:28 +0000 (18:11 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 28 Oct 2011 01:12:24 +0000 (18:12 -0700)
commit649921132b6bca1ff104c3fffe9a09bb26aba3fc
tree8d06ce99400d894b4e62e96c55e01240f22c894a
parent354055f8767f418dffaab87c8ef3994d937f96b7
auth: return unknown if no supported auth is found

If NONE is supported, it will already be in the list of supported
protocols, so there's no need to default to it here. This prevents
clients that request the NONE protocol from authenticating when the
server only accepts CEPHX. Instead, they get -ENOTSUP from the
AuthMonitor.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/auth/AuthSupported.cc