jasonramsden / php-ews

Automatically exported from code.google.com/p/php-ews
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Changes for Exchange 2010 #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have Exchange 2010 and I was wondering how would I use Exchange
Impersonation with this. 

Specifically I can get the following things to work:
1. User X can get his calendar information.
2. Service Account 'S' (with Impersonation privileges) can get  his
calendar information.

But, how to use Service Account 'S' credentials to authenticate in order to
get calendar information for user X?

Thanks,
Sachin

Original issue reported on code.google.com by sachinss...@gmail.com on 23 Apr 2010 at 12:22

GoogleCodeExporter commented 9 years ago
This library was developer for Exchange 2007 and I'm not sure what it may be 
lacking 
as far as support for Exchange 2010. However, I will look into this and see if 
there 
is anything I can do to help you out.

Original comment by JamesIArmes@gmail.com on 23 Apr 2010 at 11:47

GoogleCodeExporter commented 9 years ago
sachinsshukla, did you manage to achieve ExchangeImpersonation

Original comment by gore...@gmail.com on 6 Jun 2010 at 5:39

GoogleCodeExporter commented 9 years ago
Yes, I got it working with both Exchange 2010 and Exchange 2007. It requires 
different set of commands to be executed in the Exchange command/power shell 
for 2010 vs 2007.

Original comment by sachinss...@gmail.com on 26 Oct 2010 at 11:19

GoogleCodeExporter commented 9 years ago
are you able to provide more information about how where you inserted the 
ExchangeImpersonation class in your code, i have ExchangeImpersonation, however 
i'm unsure of how or where to put this in the php code

Original comment by gore...@gmail.com on 3 Nov 2010 at 9:20

GoogleCodeExporter commented 9 years ago
Hi,
I dont use the format/classes from this project, so not sure how helpful this 
is going to be. However, I do the following:

I have a simple class:

class ExchangeNTLMSoapClient extends NTLMSoapClient 
{ 
        public $user;
    public $password;

    public function Initialize()
    {
        $this->user = $GLOBALS['PrivilegedUserID'];
        $this->password = $GLOBALS['ClearPassword'];
    }
} 

which I initialize with the privileged user's user ID and password set in the 
Exchange server.

$headerbody = array ('ConnectingSID' => array('PrincipalName' => 
$EmailAddress));
$header = new SOAPHeader($ns, 'ExchangeImpersonation', $headerbody); 
$client->__setSoapHeaders($header);

where $EmailAddress is the EmailAddress of the user whose calendar information 
is required and $ns = 
"http://schemas.microsoft.com/exchange/services/2006/types";

I invoke the FindItem and GetItem request calls using the $client I created 
above.

Original comment by sachinss...@gmail.com on 8 Nov 2010 at 11:51

GoogleCodeExporter commented 9 years ago
This issue has been moved to GitHub 
https://github.com/jamesiarmes/php-ews/issues/1

Original comment by JamesIArmes@gmail.com on 14 Feb 2012 at 12:59