{ "info": { "author": "Bob Carroll", "author_email": "bob.carroll@alum.rit.edu", "bugtrack_url": null, "classifiers": [], "description": "=== Introduction ===\r\n\r\nWebDAV-Kerberos is a Kerberised subclass of the davlib.DAV class found in the\r\nPython_WebDAV_Library package. This module depends on Python_WebDAV_Library\r\nand PyKerberos. Python 3 is not (yet) supported. Installing and configuring\r\nKerberos properly is left as an exercise for the reader.\r\n\r\n\r\n=== Dependencies ===\r\n\r\nPython_WebDAV_Library (tested with version 0.4.2)\r\n\r\nPyKerberos (tested with revision 11110)\r\nhttps://svn.calendarserver.org/repository/calendarserver/PyKerberos/trunk/\r\n\r\n\r\n=== Usage ===\r\n\r\nThe interface is exactly the same as davlib.DAV:\r\nhttp://bazaar.launchpad.net/~datafinder-team/python-webdav-lib/trunk/view/head:/lib/davlib.py\r\n\r\nKrb5DAV includes an extra constructor argument and an extra function. Specify\r\nthe \"principal\" constructor argument to set the client user principal name\r\nyou wish to connect as. Omitting this argument will cause the Kerberos client\r\nto use the principal of the current user.\r\n\r\nThe Krb5DAV.whoami() function will return the authenticated user principal\r\nname. If called before authentication the function will return the value\r\nof the \"principal\" constructor argument, which may be the empty string if\r\nyou omitted the argument.\r\n\r\n\r\n=== Examples ===\r\n\r\nfrom krb5dav import Krb5DAV\r\n\r\n# Connect to SharePoint with the credentials of the current user. You must\r\n# have a fresh ticket in your Kerberos credentials cache for this to work.\r\ndav = Krb5DAV('sharepoint.example.com', protocol='http')\r\n\r\nresponse = dav.get('/MySite/Home/Shared%20Documents/foo.docx')\r\nwith open('/tmp/foo.docx', 'wb') as outfile:\r\n outfile.write(response.read())\r\ndav.close()\r\n\r\n# Connect to SharePoint with specific credentials. You must have a Kerberos\r\n# keytab file with the principal's key, and the current user must have read\r\n# access to it.\r\ndav = Krb5DAV('sharepoint.example.com', protocol='http', principal='jdoe@EXAMPLE.COM')\r\n\r\nwith open('/tmp/foo.docx', 'rb') as infile:\r\n buf = infile.read()\r\ndav.put('/MySite/Home/Shared%20Documents/foo2.docx', buf)\r\ndav.close()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rcarz/WebDAV-Kerberos", "keywords": "", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "WebDAV-Kerberos", "package_url": "https://pypi.org/project/WebDAV-Kerberos/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/WebDAV-Kerberos/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rcarz/WebDAV-Kerberos" }, "release_url": "https://pypi.org/project/WebDAV-Kerberos/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Kerberised WebDAV client library", "version": "0.2.0" }, "last_serial": 1022827, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ab6563efb9517c24fce48afe2ad3609f", "sha256": "b6d4e12d65dae8fdade6002c1a060b91037221934295d6aef1db1e528dfd8458" }, "downloads": -1, "filename": "WebDAV-Kerberos-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ab6563efb9517c24fce48afe2ad3609f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15043, "upload_time": "2013-04-27T06:21:01", "url": "https://files.pythonhosted.org/packages/2d/55/a0fb772227c27ce17b6c74715c4eafe793763b1cc20ba0aa1845eaa6ae94/WebDAV-Kerberos-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a24474d036c1b00d542c648a6c6cd9c2", "sha256": "fed9f11ba3df2c1bcaac1b5a82d069434ca0749d712f3b276d3214fa0e9d1820" }, "downloads": -1, "filename": "WebDAV-Kerberos-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a24474d036c1b00d542c648a6c6cd9c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15052, "upload_time": "2013-05-02T00:15:38", "url": "https://files.pythonhosted.org/packages/6b/58/25543a9a34fc284564e33cba9e5f9a0fb8cf39546635c90814212b21d02c/WebDAV-Kerberos-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a24474d036c1b00d542c648a6c6cd9c2", "sha256": "fed9f11ba3df2c1bcaac1b5a82d069434ca0749d712f3b276d3214fa0e9d1820" }, "downloads": -1, "filename": "WebDAV-Kerberos-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a24474d036c1b00d542c648a6c6cd9c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15052, "upload_time": "2013-05-02T00:15:38", "url": "https://files.pythonhosted.org/packages/6b/58/25543a9a34fc284564e33cba9e5f9a0fb8cf39546635c90814212b21d02c/WebDAV-Kerberos-0.2.0.tar.gz" } ] }