Merge pull request #12937 from chendave/auth_method

auth: Enhancement for the supported auth methods

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-01-25 06:35:10 -06:00 committed by GitHub
commit 84ae7d2f86

View File

@ -35,10 +35,12 @@ AuthMethodList::AuthMethodList(CephContext *cct, string str)
} else if (iter->compare("none") == 0) {
auth_supported.push_back(CEPH_AUTH_NONE);
} else {
auth_supported.push_back(CEPH_AUTH_UNKNOWN);
lderr(cct) << "WARNING: unknown auth protocol defined: " << *iter << dendl;
}
}
if (auth_supported.empty()) {
lderr(cct) << "WARNING: no auth protocol defined, use 'cephx' by default" << dendl;
auth_supported.push_back(CEPH_AUTH_CEPHX);
}
}