This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Ape and IIS7 anonymous user
Author
Message |
garryc
Newbie


Joined: 12 January 2012
Posts: 1
Posted: 12 January 2012 at 2:58pm

Hello

I'm not sure if this works or not but we are trying to setup simple authentication to an IIS7 site. What we need to do is password protect just the entry point to the site and not
pass the credentials back to the application.

Server is Windows 2008, IIS7
Application pools are ASP.net 2.0 running in Classic mode

I've installed the 45day trial of APE and setup .htaccess with the following:

# Helicon Ape version 3.0.0.76

# Authentication type
AuthType Basic
# Name of area authentication will be used for (aka realm)
AuthName "<our site name>"

# Authentication provider. Here - mod_authn_file
AuthBasicProvider file
# Info for mod_authn_file - path to password file
AuthUserFile c:\sites\main\.htpasswds
# Access will be granted to all authenticated users
Require valid-user

When I try accessing the site I get the username and password prompt, which I expect but then get a 401 error. In the IIS logs it shows:

System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received
from the server was 'Basic realm=...

thanx
Garry
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 13 January 2012 at 3:44am

Hello Garry

Please consider switching the pool to Integrated mode as it's required for Ape to operate correctly.
Also please make sure all Windows authentications except Anonymous are disabled in IIS.

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version