vijalpatel has asked for the wisdom of the Perl Monks concerning the following question:
In short, I'm a Java Software Engineer and published a handful of WSDLs for other applications within my company to use. Due to security reasons, we require users of these (along with the web application accompanying these web services) to be authenticated ntlm.
We have an existing framework written in PERL that needs access to these wsdls for data.
This is about how far I've gotten!:
-- Need to add in authentication (LWP-UserAgent ?) because as it stands,use SOAP::Lite; print SOAP::Lite -> service('http://localhost:808/wsdl/BuildService.wsdl') -> addBuild ('Name');
Thoughts/tips/solutions ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: soap::lite + ntlm + wsdls, how?
by Anonymous Monk on Oct 09, 2009 at 00:31 UTC | |
| [reply] | |
|
Re: soap::lite + ntlm + wsdls, how?
by bv (Friar) on Oct 09, 2009 at 16:47 UTC | |
Do check out the link above, it seems valuable. I just wanted to point out that Authen::Ntlm (that LWP::Authen::Ntlm uses without actually depending on it, which would have been useful) takes some liberties with the NTLMv2 protocol. I'm not saying it doesn't work, but the client nonce is always null, the time is calculated wrong (needs bigint support to really count the tenths of a microsecond since 1601), and unicode conversion is done by inserting nulls every other ASCII char, so if your password uses actual Unicode characters, it won't work.
print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))
| [reply] [d/l] |
|
Re: soap::lite + ntlm + wsdls, how?
by vijalpatel (Initiate) on Oct 12, 2009 at 16:14 UTC | |
Response: Any pointers? It doesn't look like it's authorizing correctly. I've tried both one \ and two \\ in the username | [reply] [d/l] [select] |
by vijalpatel (Initiate) on Oct 12, 2009 at 17:12 UTC | |
Response: Am I overriding the wrong method with the sub-- thing? Ty | [reply] [d/l] [select] |