17

I need to write a script in python to check a webpage, which is protected by kerberos. Is there any possibility to do this from within python and how? The script is going to be deployed on a linux environment with python 2.4.something installed.

dertoni

dertoni
  • 1,763
  • 2
  • 24
  • 47

1 Answers1

15

I think that python-krbV and most Linux distributions also have a python-kerberos package. For example, Debian has one of the same name. Here's the documentation on it

Extract from link:

"This Python package is a high-level wrapper for Kerberos (GSSAPI) operations. The goal is to avoid having to build a module that wraps the entire Kerberos.framework, and instead offer a limited set of functions that do what is needed for client/server Kerberos authentication based on http://www.ietf.org/rfc/rfc4559.txt. "

Abhijeet Kasurde
  • 3,937
  • 1
  • 24
  • 33
batbrat
  • 5,155
  • 3
  • 32
  • 38
  • This is the method I've used in the past. I thought it was ugly but it does work. – hernan43 Feb 13 '09 at 11:27
  • Sorry hernan, I am relatively new, so I don't have a better idea. All the best. – batbrat Feb 13 '09 at 11:43
  • Here is a good tutorial on using the python kerberos module: https://ncoghlan_devs-python-notes.readthedocs.org/en/latest/python_kerberos.html – John B Mar 28 '13 at 21:21