Dave McGregor
Guest
|
Posted:
Wed Feb 09, 2005 3:31 am Post subject:
PROPPATCH problems with Forms-based-authentication |
|
|
Hi,
My exchange administrator in my environment has upgraded from 2k to 2003,
and in the process has moved from Basic to Forms-based-authentication.
I had an asp.net application that would SEARCH through certain people's
calendars and extract certain information, and then PROPPATCH a meeting into
their calendars. It worked perfectly before by using
webrequest.networkcredentials, but now I have to obtain cookies to
authenticate the requests to the exchange server. The code from
http://www.infinitec.de/exchange/howtos/webdavwithfba.aspx works well for the
SEARCH, but I can not execute the PROPPATCH command, due to some errors with
the cookies:
I have tried a variety of combonations of 'destination url' and when the
cookies are obtained. (destination url refers to the 'destination' form
value passed to the exchange authentication dll)
1: Getting the cookies with the destination url of
"https://exchange.example.com/Exchange/" + TargetUserName + "/Calendar/",
then using the cookies to execute a SEARCH command in the same directory.
This works perfectly up to this point. When i try to use the cookies again to
execute a PROPPATCH command in "https://exchange.example.com/Exchange/" +
TargetUserName + "/Calendar/newappt.eml", i get a 440 - Login Timeout error
2. If I try to get a new set of cookies before executing the PROPPATCH
command with the destination url of "https://exchange.example.com/Exchange/"
+ TargetUserName + "/Calendar/newappt.eml", I receive a 404 - Not Found error
when trying to obtain the cookies
3. If I try to get a new set of cookies before executing the PROPPATCH
command with the destination url of "https://exchange.example.com/Exchange/"
+ TargetUserName + "/Calendar/", I successfully get new cookies, but receive
a 440 - Login Timeout error when trying to execute the PROPPATCH command.
All three cases behave the same whether I use the my account for both the
login and the targeted calendar or whether I use the calendar of someone who
has delegated control to me.
Does anyone know what my be going on here?
Thanks again,
Dave McGregor
|
|