Skip Menu |

This queue is for tickets about the EWS-Client CPAN distribution.

Report information
The Basics
Id: 56189
Status: resolved
Priority: 0/
Queue: EWS-Client

People
Owner: OLIVER [...] cpan.org
Requestors: shawgreg [...] cisco.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: How to add ntlm authentication and Impersonation to EWS::Client
Date: Thu, 1 Apr 2010 09:43:04 +0800
To: <bug-EWS-Client [...] rt.cpan.org>
From: "Greg Shaw (shawgreg)" <shawgreg [...] cisco.com>
I have managed to add ntlm authentication and Impersonation to EWS:Client To add ntlm authentication you need to call credentials() on the UserAgent. This then triggers the required negotiation provided LWP::Authen::Ntlm is installed. This is done in the attached EWS::Client::Role::SOAP.pm. It depends on the username containing a '\'. This may or not be a good trigger. To add Impersonation I've added an impersonate attribute to EWS::Client.pm and then in EWS::Calendar::Role::RetrieveWithinWindow.pm detect that value and optionally add it to the FindItem and GetItem calls. To use it set the impersonate attribute to an SMTP address (eg. bob@bob.com) and provided the username used has sufficient privilege you will get back the details for the impersonated email address. Distribution: EWS-Client-0.06 Perl: 5.8.6 OS: Based on RHEL: Kernel: 2.6.9-78.0.5.Elsmp Cheers, Greg.
Download EWS.tar.gz
application/x-gzip 3.6k

Message body not shown because it is not plain text.

Hello Greg, On Wed Mar 31 21:43:22 2010, shawgreg@cisco.com wrote: Show quoted text
> I have managed to add ntlm authentication and Impersonation to > EWS:Client
This is great, many thanks, and again sorry for not dealing with this earlier in the year. The new release on CPAN has an option to enable negotiated authentication, and an option for Contacts and Calendar queries to pass an "impersonate" SMTP address. Many thanks for your interest in the module and if you are still using it and have any other contributions they are most welcome. regards, oliver.