I’m not really shure what you mean by building an NTLM auth object.
What I can do at this point is to call the SOAP service with Suds + python-ntlm libraries. It looks like this:
from suds.client import Client
from suds.transport.https import WindowsHttpAuthenticated
ntlm = WindowsHttpAuthenticated(username=‘xxx’, password=‘yyy’)
client = Client(url, transport=ntlm)
result = client.service.SayHello()
This works fine. But what exactly is needed to get it working in Zato?
Finn Gruwier Larsen
Fra: Zato-discuss [mailto:email@example.com] På vegne af Dariusz Suchojad
Sendt: 29. januar 2014 12:35
Emne: Re: [Zato-discuss] Outgoing SOAP connection with NTML authentication
On 01/29/2014 12:28 PM, Finn Gruwier Larsen wrote:
I need to contact a Microsoft Dynamics NAV server that uses NTLM authentication. Zato 1.1 doesn’t seem to know this security model.
I have noticed that there is a Python module for this
but I don’t have any idea how much effort it would take to implement this in Zato.
Is there any effort going on already, or does anyone have experience with this?
This could be certainly added but until it is, please have a look at this call.
In particular, args and kwargs and passed into requests
directly as is, so if you can build an NTLM auth object and pass it to the underlying library, this would be how this can be done as of now.
This library’s examples use urllib2 whereas requests uses its own copy
urllib3 - they are related so there’s a chance everything can be made to work together.
You’d probably have to build a sort of a gluing service akin to this OpenERP client
off of which your business services would descend and inherit a method to use NTML.