|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Forms-based authentication in Exchange 2003 AND Exchange 2007WebDAV, 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. <mahbu***@gmail.com> wrote in message
Show quoteHide quote news:8cb59c2c-cb79-4a32-86ae-b3c5bb331dd7@o4g2000pra.googlegroups.com... Yes, you need to change the path in your AuthURL to contain /owa/, because >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. 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 ______________________________________ 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 thanks a lot Lee> > 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 > ______________________________________ 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 >
Other interesting topics
How to find message limit
Pipe mail to script Exchange Web Service - Listening events on all user's mailboxes Exchange 2003 store.exe CPU usage Exchange OWA 2003 Frontend Convert to 2007 StgOpenStorageEx and MAPI_E_CORRUPT_DATA Masking e-mail address upload email to drafts folder MAPI: Hang on Exchange server unavaliable Adding a new property to the mail |
|||||||||||||||||||||||