Home All Groups Group Topic Archive Search About

Forms-based authentication in Exchange 2003 AND Exchange 2007

Author
8 Jan 2009 2:54 PM
mahbub79

I have developed a C# application to connect to Exchange Server via
WebDAV, that I want to work for Exchange 2003 AND Exchange 2007.

To do this in 2003 I use:
AuthURL = new System.Uri("https://" + strServerName + "/exchweb/bin/
auth/owaauth.dll");

In 2007 will this still work, or do I have to change?
To e.g.:
AuthURL = new System.Uri("https://" + strServerName + "/owa/auth/
owaauth.dll");

Is there any way of checking / testing this in the code rather than me
having to have two versions of my code?

Also I would create Post fields in 2003 as:
string strPostFields = "destination=https%3A%2F%2F" + strServerName +
"%2Fexchange%2F" + strUserName + "%2F&username=" + strDomain + "%5C" +
strUserName + "&password=" + strPassword + "&SubmitCreds=Log
+On&forcedownlevel=0&trusted=0";

In 2007 do I have to change this? Add flags=0 for example? Could I add
flags=0 and this not affect 2003?

Many thanks.
Author
8 Jan 2009 4:39 PM
Lee Derbyshire [MVP]
<mahbu***@gmail.com> wrote in message
Show quoteHide quote
news:8cb59c2c-cb79-4a32-86ae-b3c5bb331dd7@o4g2000pra.googlegroups.com...
>I have developed a C# application to connect to Exchange Server via
> WebDAV, that I want to work for Exchange 2003 AND Exchange 2007.
>
> To do this in 2003 I use:
> AuthURL = new System.Uri("https://" + strServerName + "/exchweb/bin/
> auth/owaauth.dll");
>
> In 2007 will this still work, or do I have to change?
> To e.g.:
> AuthURL = new System.Uri("https://" + strServerName + "/owa/auth/
> owaauth.dll");
>
> Is there any way of checking / testing this in the code rather than me
> having to have two versions of my code?
>
> Also I would create Post fields in 2003 as:
> string strPostFields = "destination=https%3A%2F%2F" + strServerName +
> "%2Fexchange%2F" + strUserName + "%2F&username=" + strDomain + "%5C" +
> strUserName + "&password=" + strPassword + "&SubmitCreds=Log
> +On&forcedownlevel=0&trusted=0";
>
> In 2007 do I have to change this? Add flags=0 for example? Could I add
> flags=0 and this not affect 2003?
>
> Many thanks.

Yes, you need to change the path in your AuthURL to contain /owa/, because
that's where the DDL is now.  You don't change the path in strPostFields,
because you're telling it what you want to access (the WebDAV access path
hasn't changed).  You only need to post the username and password.
forcedownlevel, trusted, flags, etc. aren't required in either version.

Lee.

--
______________________________________

Outlook Web Access For PDA , OWA For WAP
www.leederbyshire.com
email a@t leederbyshire d.0.t c.0.m
______________________________________
Are all your drivers up to date? click for free checkup

Author
9 Jan 2009 2:11 PM
mahbub79
On Jan 8, 4:39 pm, "Lee Derbyshire [MVP]" <email a@t leederbyshire d.
0.t c.0.m> wrote:
Show quoteHide quote
> <mahbu***@gmail.com> wrote in message
>
> news:8cb59c2c-cb79-4a32-86ae-b3c5bb331dd7@o4g2000pra.googlegroups.com...
>
>
>
> >I have developed a C# application to connect to Exchange Server via
> > WebDAV, that I want to work for Exchange 2003 AND Exchange 2007.
>
> > To do this in 2003 I use:
> > AuthURL = new System.Uri("https://" + strServerName + "/exchweb/bin/
> > auth/owaauth.dll");
>
> > In 2007 will this still work, or do I have to change?
> > To e.g.:
> > AuthURL = new System.Uri("https://" + strServerName + "/owa/auth/
> > owaauth.dll");
>
> > Is there any way of checking / testing this in the code rather than me
> > having to have two versions of my code?
>
> > Also I would create Post fields in 2003 as:
> > string strPostFields = "destination=https%3A%2F%2F" + strServerName +
> > "%2Fexchange%2F" + strUserName + "%2F&username=" + strDomain + "%5C" +
> > strUserName + "&password=" + strPassword + "&SubmitCreds=Log
> > +On&forcedownlevel=0&trusted=0";
>
> > In 2007 do I have to change this? Add flags=0 for example? Could I add
> > flags=0 and this not affect 2003?
>
> > Many thanks.
>
> Yes, you need to change the path in your AuthURL to contain /owa/, because
> that's where the DDL is now.  You don't change the path in strPostFields,
> because you're telling it what you want to access (the WebDAV access path
> hasn't changed).  You only need to post the username and password.
> forcedownlevel, trusted, flags, etc. aren't required in either version.
>
> Lee.
>
> --
> ______________________________________
>
> Outlook Web Access For PDA , OWA For WAPwww.leederbyshire.com
> email a@t leederbyshire d.0.t c.0.m
> ______________________________________

thanks a lot Lee
Author
17 Feb 2009 11:23 AM
Prashant
Hi,

Is it a way to use same code without giving password.Actually in my code,
Defaultcredentials have to be used. I tried a lot but didn't get any pointer
in this. Can anybody help?

Show quoteHide quote
"mahbu***@gmail.com" wrote:

> On Jan 8, 4:39 pm, "Lee Derbyshire [MVP]" <email a@t leederbyshire d.
> 0.t c.0.m> wrote:
> > <mahbu***@gmail.com> wrote in message
> >
> > news:8cb59c2c-cb79-4a32-86ae-b3c5bb331dd7@o4g2000pra.googlegroups.com...
> >
> >
> >
> > >I have developed a C# application to connect to Exchange Server via
> > > WebDAV, that I want to work for Exchange 2003 AND Exchange 2007.
> >
> > > To do this in 2003 I use:
> > > AuthURL = new System.Uri("https://" + strServerName + "/exchweb/bin/
> > > auth/owaauth.dll");
> >
> > > In 2007 will this still work, or do I have to change?
> > > To e.g.:
> > > AuthURL = new System.Uri("https://" + strServerName + "/owa/auth/
> > > owaauth.dll");
> >
> > > Is there any way of checking / testing this in the code rather than me
> > > having to have two versions of my code?
> >
> > > Also I would create Post fields in 2003 as:
> > > string strPostFields = "destination=https%3A%2F%2F" + strServerName +
> > > "%2Fexchange%2F" + strUserName + "%2F&username=" + strDomain + "%5C" +
> > > strUserName + "&password=" + strPassword + "&SubmitCreds=Log
> > > +On&forcedownlevel=0&trusted=0";
> >
> > > In 2007 do I have to change this? Add flags=0 for example? Could I add
> > > flags=0 and this not affect 2003?
> >
> > > Many thanks.
> >
> > Yes, you need to change the path in your AuthURL to contain /owa/, because
> > that's where the DDL is now.  You don't change the path in strPostFields,
> > because you're telling it what you want to access (the WebDAV access path
> > hasn't changed).  You only need to post the username and password.
> > forcedownlevel, trusted, flags, etc. aren't required in either version.
> >
> > Lee.
> >
> > --
> > ______________________________________
> >
> > Outlook Web Access For PDA , OWA For WAPwww.leederbyshire.com
> > email a@t leederbyshire d.0.t c.0.m
> > ______________________________________
>
> thanks a lot Lee
>

Bookmark and Share