Skip to content

Commit

Permalink
auth: Kerberos authentication
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Oliveira <[email protected]> (github: oliveiradan)
  • Loading branch information
oliveiradan authored and Daniel Oliveira committed Dec 4, 2018
1 parent 91bd5a3 commit 6778406
Show file tree
Hide file tree
Showing 39 changed files with 2,274 additions and 18 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ if(WITH_OPENLDAP)
set(HAVE_OPENLDAP ${OPENLDAP_FOUND})
endif()

option(WITH_GSSAPI "GSSAPI/KRB5 is here" ON)
if(WITH_GSSAPI)
find_package(GSSApi REQUIRED)
set(HAVE_GSSAPI ${GSSApi_FOUND})
endif()

option(WITH_FUSE "Fuse is here" ON)
if(WITH_FUSE)
find_package(fuse)
Expand Down
1 change: 1 addition & 0 deletions alpine/APKBUILD.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ makedepends="
lvm2-dev
nss-dev
openldap-dev
krb5-dev
parted
procps
python-dev
Expand Down
3 changes: 3 additions & 0 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ BuildRequires: keyutils-devel
BuildRequires: libopenssl-devel
BuildRequires: lsb-release
BuildRequires: openldap2-devel
BuildRequires: krb5
BuildRequires: krb5-devel
BuildRequires: cunit-devel
BuildRequires: python%{_python_buildid}-base
BuildRequires: python%{_python_buildid}-Cython
Expand All @@ -238,6 +240,7 @@ BuildRequires: keyutils-libs-devel
BuildRequires: libibverbs-devel
BuildRequires: librdmacm-devel
BuildRequires: openldap-devel
BuildRequires: krb5-devel
BuildRequires: openssl-devel
BuildRequires: CUnit-devel
BuildRequires: redhat-lsb-core
Expand Down
22 changes: 22 additions & 0 deletions cmake/modules/FindGSSApi.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# - Find KRB5/GSSAPI C Libraries
#
# GSSAPI_FOUND - True if found.
# GSSAPI_INCLUDE_DIR - Path to the KRB5/gssapi include directory
# GSSAPI_LIBRARIES - Paths to the KRB5/gssapi libraries

find_path(GSSAPI_INCLUDE_DIR gssapi.h PATHS
/usr/include
/opt/local/include
/usr/local/include)

find_library(GSSAPI_KRB5_LIBRARY gssapi_krb5)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GSSApi DEFAULT_MSG
GSSAPI_INCLUDE_DIR GSSAPI_KRB5_LIBRARY)

set(GSSAPI_LIBRARIES ${GSSAPI_KRB5_LIBRARY})

mark_as_advanced(
GSSAPI_INCLUDE_DIR GSSAPI_KRB5_LIBRARY)

1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Build-Depends: bc,
librdmacm-dev,
libkeyutils-dev,
libldap2-dev,
libkrb5-dev,
libleveldb-dev,
liblttng-ust-dev,
liblz4-dev (>= 0.0~r131),
Expand Down
Loading

0 comments on commit 6778406

Please sign in to comment.