Python, Sharepoint, .NET, NTLM

kyosohma at gmail.com kyosohma at gmail.com
Wed Aug 15 11:48:23 EDT 2007


On Aug 15, 10:11 am, frikk <frik... at gmail.com> wrote:
> Hey everyone,
>   I need to authenticate with a Sharepoint server. It looks to be
> using 'NTLM' authentication.  I've looked on the newsgroup and it
> looks like there has been talk of using python and NTLM but no
> definite solutions are apparent.
>
>   Can anyone provide me with any kind of help on this issue? URLLIB2
> keeps getting a 401 error when I try any kind of authentication.
>
> I am trying to use python here in my company (for obvious reasons -
> python is awesome!) and this is the first major project that would use
> it.  Unfortunately if I cannot talk to Sharepoint (I am just trying to
> get a list of .xml files and data from a form library) I cannot use
> python.
>
>  The other solution would be: Does anyone know how to get xml files
> from a sharepoint library in python?  The worst case would be using
> another language to compile just the xml file downloader.  This is not
> the optimal solution.
>
> Thank you,
> Blaine

NTLM is mentioned here: http://ntlmaps.sourceforge.net/

Others have pointed to Iron Python for this sort of thing. I would
think that you could use COM.

Here's a link that uses Iron Python: http://blog.glenc.net/2007/08/12/sharepoint-meet-python/

Finally, it looks like someone wrote some kind interface:
http://sourceforge.net/projects/pysharepoint

Hope that helps!

Mike




More information about the Python-list mailing list