mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
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:
commit
84ae7d2f86
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user