Connecting Tech Pros Worldwide Help | Site Map

Only allow anonymous Auth

Member
 
Join Date: Mar 2008
Posts: 90
#1: May 15 '08
I have disabled IWA as I want to handle the authentication my self. I have Allow Anonymous checked with the user IUSR_<MachineName> and unchecked IWA. It then says I do not have access when trying to access the aspx pages. If I enable IWA. It will prompt for login and will work. I do not want to prompt for login but only use my own login script. I have checked everywhere I can think of to make sure IUSR_ has permissions but cannot seem to fix this issue.

Can someone point me in the right direction of why it says invalid access 401.2 when IWA is disabled?

EDIT:
It is IIS6 with ASP.NET 2.0 with 3.5 Framework.
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: May 15 '08

re: Only allow anonymous Auth


Check the authentication section of your web.config file. HTH.
Quote:

Originally Posted by arggg

I have disabled IWA as I want to handle the authentication my self. I have Allow Anonymous checked with the user IUSR_<MachineName> and unchecked IWA. It then says I do not have access when trying to access the aspx pages. If I enable IWA. It will prompt for login and will work. I do not want to prompt for login but only use my own login script. I have checked everywhere I can think of to make sure IUSR_ has permissions but cannot seem to fix this issue.

Can someone point me in the right direction of why it says invalid access 401.2 when IWA is disabled?

EDIT:
It is IIS6 with ASP.NET 2.0 with 3.5 Framework.

Member
 
Join Date: Mar 2008
Posts: 90
#3: May 15 '08

re: Only allow anonymous Auth


Quote:

Originally Posted by kenobewan

Check the authentication section of your web.config file. HTH.

What do I check for? It is set for Windows auth because I want MY login script to do LDAP auth.
Member
 
Join Date: Mar 2008
Posts: 90
#4: May 15 '08

re: Only allow anonymous Auth


I figured it out... The issue was that I had <authorization mode="Windows"> Once changed to "Forms" it worked.
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#5: May 16 '08

re: Only allow anonymous Auth


Quote:

Originally Posted by arggg

I figured it out... The issue was that I had <authorization mode="Windows"> Once changed to "Forms" it worked.

Well done! Glad you figured it out.
Reply