add Kerberos delegation #5

Merged
merenber merged 2 commits from delegation into v1 2021-08-18 15:39:14 -04:00
Owner

This PR adds unconstrained Kerberos delegation to the API.

The client obtains a forwarded TGT and sends it, base64-encoded, in an HTTP header named 'X-KRB5-CRED'. The server reads this credential, creates a new credentials cache for the user, and stores the credential into the new cache. The server can now authenticate to other services (e.g. LDAP) over GSSAPI using the forwarded client's credentials.

This PR adds unconstrained Kerberos delegation to the API. The client obtains a forwarded TGT and sends it, base64-encoded, in an HTTP header named 'X-KRB5-CRED'. The server reads this credential, creates a new credentials cache for the user, and stores the credential into the new cache. The server can now authenticate to other services (e.g. LDAP) over GSSAPI using the forwarded client's credentials.
merenber added 1 commit 2021-08-17 22:05:37 -04:00
merenber requested review from r345liu 2021-08-17 22:07:25 -04:00
r345liu approved these changes 2021-08-18 12:37:45 -04:00
r345liu left a comment
Owner

Don't know much about Kerobos but the code looks good to me.

Don't know much about Kerobos but the code looks good to me.
README.md Outdated
@ -9,13 +9,25 @@ this repo in one of the dev environment containers.
Next, install and activate a virtualenv:
```sh
sudo apt install libkrb5-dev python3-dev
Owner

I also needed libsasl2-dev and libldap2-dev when I setup my environment

I also needed `libsasl2-dev` and `libldap2-dev` when I setup my environment
merenber added 1 commit 2021-08-18 15:37:29 -04:00
Author
Owner

We're not using python-ldap anymore so libldap2-dev should no longer be necessary.

We're not using python-ldap anymore so libldap2-dev should no longer be necessary.
merenber merged commit d78d31eec0 into v1 2021-08-18 15:39:14 -04:00
merenber deleted branch delegation 2021-08-18 15:41:35 -04:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: public/pyceo#5
No description provided.