Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kerberos specific GSS-API Extensions #261

Merged
merged 1 commit into from
Aug 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ In addition to RFC 2743/2744, Python-GSSAPI also has support for:

* GGF Extensions

* Kerberos specific extensions

The Team
========

Expand Down
3 changes: 3 additions & 0 deletions ci/lib-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ setup::debian::install() {
else
apt-get -y install krb5-{user,kdc,admin-server,multidev} libkrb5-dev \
gss-ntlmssp

export GSSAPI_KRB5_MAIN_LIB="/usr/lib/x86_64-linux-gnu/libkrb5.so"
fi

apt-get -y install gcc virtualenv python3-{virtualenv,dev} cython3
Expand Down Expand Up @@ -46,6 +48,7 @@ setup::fedora::install() {
setup::rh::install() {
setup::rh::yuminst krb5-{devel,libs,server,workstation} \
which gcc findutils gssntlmssp
export GSSAPI_KRB5_MAIN_LIB="/usr/lib64/libkrb5.so"

if [ -f /etc/fedora-release ]; then
setup::fedora::install
Expand Down
7 changes: 7 additions & 0 deletions docs/source/gssapi.raw.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ Acquiring Credentials With a Password Extensions
:members:
:undoc-members:

Kerberos Specific Extensions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. automodule:: gssapi.raw.ext_krb5
:members:
:undoc-members:

Other Extensions
~~~~~~~~~~~~~~~~

Expand Down
6 changes: 6 additions & 0 deletions gssapi/raw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@
except ImportError:
pass

# optional KRB5 specific extension support
try:
from gssapi.raw.ext_krb5 import * # noqa
except ImportError:
pass

# optional RFC 6680 support
try:
from gssapi.raw.ext_rfc6680 import * # noqa
Expand Down
2 changes: 2 additions & 0 deletions gssapi/raw/ext_krb5.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cdef class Krb5LucidContext:
cdef void *raw_ctx
Loading