Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Tue, 11 Mar 2008 14:44:32 -0700 (PDT),    group: microsoft.public.exchange.development        back       


Forms authentication 401 Error   
I've looked at the forms auth how to on support.microsoft.com and
several other samples that all look the same.

And I'm generating the information the same way I think (my other code
works great using standard auth). Here's what I'm writing to the
content stream:

destination=https%3a%2f%2f<ServerName>%2fExchange
%2f<alias>&username=<domain>\<user Name>&password=<password>

All URLEncoded of course.

the URL that I'm requesting from is:

https://<server name>/exchweb/bin/auth/owaauth.dll

Every time I do this, I get a (401) unauthorized exception in my c#
code.

Does anyone have any suggestions on what I"m dong wrong? I found all
kinds of people pinging about 401 but not one that had any answer on
how to solve it.

Thanks!
date: Tue, 11 Mar 2008 14:44:32 -0700 (PDT)   author:   John Galt

Re: Forms authentication 401 Error   
"John Galt"  wrote in message 
news:cd06e301-b097-452e-b86b-918d615e166c@h11g2000prf.googlegroups.com...
> I've looked at the forms auth how to on support.microsoft.com and
> several other samples that all look the same.
>
> And I'm generating the information the same way I think (my other code
> works great using standard auth). Here's what I'm writing to the
> content stream:
>
> destination=https%3a%2f%2f<ServerName>%2fExchange
> %2f<alias>&username=<domain>\<user Name>&password=<password>
>
> All URLEncoded of course.
>
> the URL that I'm requesting from is:
>
> https://<server name>/exchweb/bin/auth/owaauth.dll
>
> Every time I do this, I get a (401) unauthorized exception in my c#
> code.
>
> Does anyone have any suggestions on what I"m dong wrong? I found all
> kinds of people pinging about 401 but not one that had any answer on
> how to solve it.
>
> Thanks!

Maybe you don't have Anonymous Access enabled on your exchweb Virtual 
Directory?

Lee.

-- 
_______________________________________

Outlook Web Access for PDA, OWA For WAP:
www.leederbyshire.com
________________________________________
date: Tue, 11 Mar 2008 23:18:04 -0000   author:   Lee Derbyshire [MVP] email a@t leederbyshire d.0.t c.0.m

Re: Forms authentication 401 Error   
I turned on Anonymous access and now I get a 503 error "Server
Unavailable".
date: Wed, 12 Mar 2008 06:12:56 -0700 (PDT)   author:   John Galt

Re: Forms authentication 401 Error   
"John Galt"  wrote in message 
news:91f8b0e6-d2a1-4409-9daf-10ad41fcd672@b64g2000hsa.googlegroups.com...
>I turned on Anonymous access and now I get a 503 error "Server
> Unavailable".

I think that should be 'Service Unavailable'.  Can you have a look in the 
IIS log, and see exactly which request caused that status message to be 
returned?
date: Wed, 12 Mar 2008 14:54:36 -0000   author:   Lee Derbyshire [MVP] email a@t leederbyshire d.0.t c.0.m

Re: Forms authentication 401 Error   
> I think that should be 'Service Unavailable'.  Can you have a look in the
> IIS log, and see exactly which request caused that status message to be
> returned?

2008-03-12 12:52:20 W3SVC1 192.168.xxx.xxx POST /exchweb/bin/auth/
owaauth.dll - 443 - 75.xxx.xx.xxx - 503 0 0

I put XXX in for the ips obviously but there is the request.

Thanks!
date: Wed, 12 Mar 2008 08:14:05 -0700 (PDT)   author:   John Galt

Re: Forms authentication 401 Error   
"John Galt"  wrote in message 
news:a80ffe35-59a3-4d2a-801e-cc41847955f9@f63g2000hsf.googlegroups.com...
> I think that should be 'Service Unavailable'. Can you have a look in the
> IIS log, and see exactly which request caused that status message to be
> returned?

>2008-03-12 12:52:20 W3SVC1 192.168.xxx.xxx POST /exchweb/bin/auth/
>owaauth.dll - 443 - 75.xxx.xx.xxx - 503 0 0
>
>I put XXX in for the ips obviously but there is the request.
>
>Thanks!

Hmm.  See if this helps;
http://support.microsoft.com/kb/823159
date: Wed, 12 Mar 2008 15:55:03 -0000   author:   Lee Derbyshire [MVP] email a@t leederbyshire d.0.t c.0.m

Re: Forms authentication 401 Error   
"John Galt"  wrote in message 
news:a80ffe35-59a3-4d2a-801e-cc41847955f9@f63g2000hsf.googlegroups.com...
> I think that should be 'Service Unavailable'. Can you have a look in the
> IIS log, and see exactly which request caused that status message to be
> returned?

>2008-03-12 12:52:20 W3SVC1 192.168.xxx.xxx POST /exchweb/bin/auth/
>owaauth.dll - 443 - 75.xxx.xx.xxx - 503 0 0
>
>I put XXX in for the ips obviously but there is the request.
>
>Thanks!

Oh, one other thing.  Is OWA actually working on that server?
date: Wed, 12 Mar 2008 15:56:05 -0000   author:   Lee Derbyshire [MVP] email a@t leederbyshire d.0.t c.0.m

Re: Forms authentication 401 Error   
Yes, I'm logged in right now. It's Exchange Server 2007 sp1.
date: Wed, 12 Mar 2008 09:42:35 -0700 (PDT)   author:   John Galt

Re: Forms authentication 401 Error   
Hi John,

Exchange 2007 uses another path for the FBA authenticaiton.

Try your request with owa/auth/owaauth.dll instead of 
exchweb/bin/auth/owaauth.dll.

Kind regards,
Henning Krause

"John Galt"  wrote in message 
news:d1ec7466-a1a5-4025-a337-d8ec68ac1052@y77g2000hsy.googlegroups.com...
> Yes, I'm logged in right now. It's Exchange Server 2007 sp1.
date: Wed, 12 Mar 2008 18:06:29 +0100   author:   Henning Krause [MVP - Exchange]

Re: Forms authentication 401 Error   
On Mar 12, 1:06 pm, "Henning Krause [MVP - Exchange]"
 wrote:
> Hi John,
>
> Exchange 2007 uses another path for the FBA authenticaiton.
>
> Try your request with owa/auth/owaauth.dll instead of
> exchweb/bin/auth/owaauth.dll.
>

Thanks that worked.  Nasty that it changed... I had to put a hack in
it to handle both.. not nice at all!

I really appreciate your help,
James Hancock
date: Wed, 12 Mar 2008 11:26:44 -0700 (PDT)   author:   John Galt

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us