Skip to content

Commit be33336

Browse files
jborean93frozencemetery
authored andcommitted
Add Kerberos specific GSS-API Extensions
Adds most of the Kerberos specific GSS-API extension methods. These methods are useful when migrating from the Kerberos API to GSS-API or when needing Kerberos specific functionality that is not exposed in GSS-API. Signed-off-by: Jordan Borean <[email protected]> [[email protected]: style and grammar things]
1 parent 3724894 commit be33336

File tree

10 files changed

+947
-0
lines changed

10 files changed

+947
-0
lines changed

Diff for: README.txt

+2
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ In addition to RFC 2743/2744, Python-GSSAPI also has support for:
165165

166166
* GGF Extensions
167167

168+
* Kerberos specific extensions
169+
168170
The Team
169171
========
170172

Diff for: ci/lib-setup.sh

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ setup::debian::install() {
1212
else
1313
apt-get -y install krb5-{user,kdc,admin-server,multidev} libkrb5-dev \
1414
gss-ntlmssp
15+
16+
export GSSAPI_KRB5_MAIN_LIB="/usr/lib/x86_64-linux-gnu/libkrb5.so"
1517
fi
1618

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

5053
if [ -f /etc/fedora-release ]; then
5154
setup::fedora::install

Diff for: docs/source/gssapi.raw.rst

+7
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ Acquiring Credentials With a Password Extensions
173173
:members:
174174
:undoc-members:
175175

176+
Kerberos Specific Extensions
177+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
178+
179+
.. automodule:: gssapi.raw.ext_krb5
180+
:members:
181+
:undoc-members:
182+
176183
Other Extensions
177184
~~~~~~~~~~~~~~~~
178185

Diff for: gssapi/raw/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@
125125
except ImportError:
126126
pass
127127

128+
# optional KRB5 specific extension support
129+
try:
130+
from gssapi.raw.ext_krb5 import * # noqa
131+
except ImportError:
132+
pass
133+
128134
# optional RFC 6680 support
129135
try:
130136
from gssapi.raw.ext_rfc6680 import * # noqa

Diff for: gssapi/raw/ext_krb5.pxd

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cdef class Krb5LucidContext:
2+
cdef void *raw_ctx

0 commit comments

Comments
 (0)