apple / ccs-pykerberos

Python Kerberos library used by CalendarServer
https://www.calendarserver.org
Apache License 2.0
117 stars 65 forks source link

[PATCH] Add delegation support, a Pythonic API, and remove base64 #22

Open macosforgebot opened 12 years ago

macosforgebot commented 12 years ago

daniel@… originally submitted this as ticket:481


The combination of these allow the creation of e.g. web interfaces that connect to other services on behalf of the user.

The delegation is to allow for services acting on behalf of the user.

Removing the previously forced base64 makes it possible to use as an authenticator in other Python modules, for instance imaplib.IMAP4.

The Pythonic API means a GSSAPI-authenticated IMAP instantiation looks like:

imap = imaplib.IMAP4('mail.example.com', 143)
imap.authenticate('GSSAPI', kerberos.GSSAPIClient('imap@mail.example.com', username='username', do_base64=False))

which IMHO looks a lot nicer than what is presently needed.

macosforgebot commented 12 years ago

daniel@… originally submitted this as attachment:pykerberos-everything.patch:⁠ticket:481


Patch implementing the above

macosforgebot commented 10 years ago

@wsanchez originally submitted this as comment:4:⁠ticket:481

macosforgebot commented 10 years ago

@wsanchez originally submitted this as comment:5:⁠ticket:481


See ticket #⁠847 prior to proceeding.

macosforgebot commented 9 years ago

@wsanchez originally submitted this as comment:6:⁠ticket:481


Trying to be more active here now, but this patch no longer applies, and is too big to tease out each thing that was done.

Best to do one thing at a time.

macosforgebot commented 9 years ago

@wsanchez originally submitted this as comment:7:⁠ticket:481


Actually, reopening for reference…