Commit Graph

13 Commits

Author SHA1 Message Date
Edwin Rodriguez
f1bac41828 Update indent settings cc
Fixes: https://tracker.ceph.com/issues/72587
Signed-off-by: Edwin Rodriguez <edwin.rodriguez1@ibm.com>
2025-10-02 17:32:57 -04:00
Max Kellermann
83d723c959 auth: add missing includes
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
2025-08-28 11:21:05 +02:00
Adam C. Emerson
04eb9ddc48 auth: Build target 'common' without using namespace in headers
Part of a changeset to allow building all of 'common' without relying
on 'using namespace std' or 'using namespace ceph' at toplevel in
headers.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2020-03-07 04:32:04 -05:00
oliveiradan
67784065ce auth: Kerberos authentication
Signed-off-by: Daniel Oliveira <doliveira@suse.com> (github: oliveiradan)
2018-12-03 18:55:46 -07:00
Kefu Chai
a8b55d034e auth/AuthMethodList: add std:: before type names
we cannot assume 'using namespace std`

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-29 08:36:26 +08:00
Dave Chen
364a6f2e39 auth: Enhancement for the supported auth methods
- If no auth protocol defined, `cephx` is used by default, it's debatable if
  ceph should abort here or use `cephx` by default, but if `cephx` is used
  in this case it's better to give some warning message.
- ceph has CEPH_AUTH_UNKNOWN auth protocol defined, change to use this
  protocol if the auth method is unknown.

Signed-off-by: Dave Chen <wei.d.chen@intel.com>
2017-01-16 15:11:02 +08:00
shawn
077af137de AUTH: optimize header file dependency.
same work as PR: https://github.com/ceph/ceph/pull/9193, https://github.com/ceph/ceph/pull/9161

Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
2016-05-20 04:43:33 -04:00
Noah Watkins
a10345a552 auth: add missing header for list
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-05 13:26:33 -08:00
Danny Al-Gaaf
c091dcc0d7 auth/AuthMethodList.cc: fix remove_supported_auth()
Make sure the iterator isn't incremented twice if a element gets erased.
Move increment out of the for-loop header and add it to a new else block.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:08:22 +01:00
Yehuda Sadeh
b3e62ad692 auth: use none auth if keyring not found
If both cephx and none are accepted auth methods, and
cephx keyring cannot be found then resort to using
none, instead of failing.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-12-21 12:19:41 -08:00
Peter Reiher
a3908a6898 auth: changed order of test for legacy and new authentication
Changed order of test for legacy and new configuration options
in several places.

Signed-off-by: Peter Reiher <reiher@inktank.com>
2012-12-07 22:33:27 -08:00
Yehuda Sadeh
907da185a8 auth: improve logging
Add some logging around failure cases.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-12-07 22:32:59 -08:00
Sage Weil
ec6ecc196e auth: AuthSupported -> AuthMethodList
Signed-off-by: Sage Weil <sage@inktank.com>
2012-07-29 19:27:31 -07:00