Skip to content

Commit

Permalink
Add Kerberos specific GSS-API Extensions
Browse files Browse the repository at this point in the history
Adds some 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 <jborean93@gmail.com>
  • Loading branch information
jborean93 committed Aug 6, 2021
1 parent 2bccab4 commit b011ba7
Show file tree
Hide file tree
Showing 9 changed files with 972 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ In addition to RFC 2743/2744, Python-GSSAPI also has support for:

* GGF Extensions

* Kerberos specific extensions

The Team
========

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 @@ -145,6 +145,13 @@ Acquiring Credentials With a Password Extensions
:members:
:undoc-members:

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

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

Exceptions
----------

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

0 comments on commit b011ba7

Please sign in to comment.