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.
Message body not shown because it is not plain text.