<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Web Services Security &#8211; HTTP Basic Authentication without Active Directory</title>
	<atom:link href="http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/</link>
	<description>Musings on just about everything.</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:23:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Katja</title>
		<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132972</link>
		<dc:creator>Katja</dc:creator>
		<pubDate>Sun, 22 Jan 2012 13:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregrphoto.com/rassoc/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132972</guid>
		<description>To get this working in IIS 7 I renamed the “BasicAuthenticationModule” httpModule to “CustomBasicAuthenticationModule” as suggested by Chinh 

and ALSO had to copy this module from system.web / httpModules into system.webServer / modules

IIS 7 did not seem to pick it up under httpModules (although it did work from development server in Visual Studio).</description>
		<content:encoded><![CDATA[<p>To get this working in IIS 7 I renamed the “BasicAuthenticationModule” httpModule to “CustomBasicAuthenticationModule” as suggested by Chinh </p>
<p>and ALSO had to copy this module from system.web / httpModules into system.webServer / modules</p>
<p>IIS 7 did not seem to pick it up under httpModules (although it did work from development server in Visual Studio).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amjad</title>
		<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132926</link>
		<dc:creator>Amjad</dc:creator>
		<pubDate>Wed, 02 Nov 2011 03:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregrphoto.com/rassoc/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132926</guid>
		<description>Hi there

I am running your code with few changes after converting it to .Net 4, I can run the application perfectly fine on local machine.

However when I deploy this web service on Dev Environment and call my service in internet explorer. That gives me user prompt; I enter valid username/password but it keeps prompting me username/password, eventually after three tries I get Error message 401.2 - access is denied.

In my HttpModule every time User is authenticated, I log if authentication was successful. And I can see in log file, all three times authentication was successful. But it still error out. :(

By the way If I run web services in Integrated mode, it works fine. Unfortunately my requirement is to run web services in Classic mode.

Environment Details: Windows Server 2008 R2, IIS7.5 Classic mode

I am stuck with this from last 4 days. Please help!</description>
		<content:encoded><![CDATA[<p>Hi there</p>
<p>I am running your code with few changes after converting it to .Net 4, I can run the application perfectly fine on local machine.</p>
<p>However when I deploy this web service on Dev Environment and call my service in internet explorer. That gives me user prompt; I enter valid username/password but it keeps prompting me username/password, eventually after three tries I get Error message 401.2 &#8211; access is denied.</p>
<p>In my HttpModule every time User is authenticated, I log if authentication was successful. And I can see in log file, all three times authentication was successful. But it still error out. :(</p>
<p>By the way If I run web services in Integrated mode, it works fine. Unfortunately my requirement is to run web services in Classic mode.</p>
<p>Environment Details: Windows Server 2008 R2, IIS7.5 Classic mode</p>
<p>I am stuck with this from last 4 days. Please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edel</title>
		<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132919</link>
		<dc:creator>Edel</dc:creator>
		<pubDate>Thu, 20 Oct 2011 07:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregrphoto.com/rassoc/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132919</guid>
		<description>Just a note, typo above &#039;asmx?wsdl&#039; rather than &#039;asxm?wsdl&#039; thanks.</description>
		<content:encoded><![CDATA[<p>Just a note, typo above &#8216;asmx?wsdl&#8217; rather than &#8216;asxm?wsdl&#8217; thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edel</title>
		<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132918</link>
		<dc:creator>Edel</dc:creator>
		<pubDate>Thu, 20 Oct 2011 07:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregrphoto.com/rassoc/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132918</guid>
		<description>Hi Greg,

Thanks for your great article.

I have this up and working fine but there is one area which I am hoping you might be able to advise on please.

I need to call my newly restricted webservice through an application which requires basic authentication.  I can see from the server logging behind the app, that it is trying to call the webservice as follows: https://username:password@server/webservicename/operation.asxm?wsdl

This does not seem to work though and when I contacted the vendors of the application they said that this is the only way that their system will authenticate.

Would you know is there something that I could change in the BasicAuth.cs or web.config which would get this to work? If I just put in my WSDL address, so https://server/webservicename/operation.asxm?wsdl - it prompts for a username and password and works fine. Its just trying to pass in the details in the format which my application requires that I run into problems. I basically get a 401 error through the application and when trying this in a web browser I get &#039;Invalid Syntax Error&#039;.

Any advice would be much appreciated.

Thanks,
Edel</description>
		<content:encoded><![CDATA[<p>Hi Greg,</p>
<p>Thanks for your great article.</p>
<p>I have this up and working fine but there is one area which I am hoping you might be able to advise on please.</p>
<p>I need to call my newly restricted webservice through an application which requires basic authentication.  I can see from the server logging behind the app, that it is trying to call the webservice as follows: <a href="https://username:password@server/webservicename/operation.asxm?wsdl" rel="nofollow">https://username:password@server/webservicename/operation.asxm?wsdl</a></p>
<p>This does not seem to work though and when I contacted the vendors of the application they said that this is the only way that their system will authenticate.</p>
<p>Would you know is there something that I could change in the BasicAuth.cs or web.config which would get this to work? If I just put in my WSDL address, so <a href="https://server/webservicename/operation.asxm?wsdl" rel="nofollow">https://server/webservicename/operation.asxm?wsdl</a> &#8211; it prompts for a username and password and works fine. Its just trying to pass in the details in the format which my application requires that I run into problems. I basically get a 401 error through the application and when trying this in a web browser I get &#8216;Invalid Syntax Error&#8217;.</p>
<p>Any advice would be much appreciated.</p>
<p>Thanks,<br />
Edel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Android &#8211; Ksoap2 Authentication in .Net Web Service - Applerr.com All about Apple Products - Applerr.com All about Apple Products</title>
		<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132908</link>
		<dc:creator>Android &#8211; Ksoap2 Authentication in .Net Web Service - Applerr.com All about Apple Products - Applerr.com All about Apple Products</dc:creator>
		<pubDate>Thu, 08 Sep 2011 16:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregrphoto.com/rassoc/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132908</guid>
		<description>[...] I had download a secure WebService (this sample ask for credentials) from: Web Services Security [...]</description>
		<content:encoded><![CDATA[<p>[...] I had download a secure WebService (this sample ask for credentials) from: Web Services Security [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Event Log Monitoring with RSS &#124; Greg Reinacker&#039;s Weblog</title>
		<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132704</link>
		<dc:creator>Event Log Monitoring with RSS &#124; Greg Reinacker&#039;s Weblog</dc:creator>
		<pubDate>Tue, 26 Apr 2011 00:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregrphoto.com/rassoc/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132704</guid>
		<description>[...] ASP.NET. If your server is on the internet rather than local, try it with my HTTP security samples [Basic, Digest] to securely monitor the event log of the remote server &#8211; very handy for those [...]</description>
		<content:encoded><![CDATA[<p>[...] ASP.NET. If your server is on the internet rather than local, try it with my HTTP security samples [Basic, Digest] to securely monitor the event log of the remote server &#8211; very handy for those [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben</title>
		<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132380</link>
		<dc:creator>ben</dc:creator>
		<pubDate>Wed, 05 Jan 2011 16:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregrphoto.com/rassoc/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132380</guid>
		<description>Hi, 
Post looks old but I hope still active users out there!

I need a solution like this to support protecting all webs on an IIS7 Server 2008 64 bit box that functions as a QA server.  The ISAPI method is required because I need it to work for classic ASP, .net 1.1 and .net 2.0+ web apps.  

Has anyone got this to work on a 64 bit machine?
I know that Helicon APE only supports .net 2+ and IISPassword does not work with IIS 7.  Others don&#039;t work with 64 bit.  

Thought I&#039;d check before I dove in.  Prefer a paid / stable solution if anyone knows of one that works in the above described environment!

Thanks,
Ben</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Post looks old but I hope still active users out there!</p>
<p>I need a solution like this to support protecting all webs on an IIS7 Server 2008 64 bit box that functions as a QA server.  The ISAPI method is required because I need it to work for classic ASP, .net 1.1 and .net 2.0+ web apps.  </p>
<p>Has anyone got this to work on a 64 bit machine?<br />
I know that Helicon APE only supports .net 2+ and IISPassword does not work with IIS 7.  Others don&#8217;t work with 64 bit.  </p>
<p>Thought I&#8217;d check before I dove in.  Prefer a paid / stable solution if anyone knows of one that works in the above described environment!</p>
<p>Thanks,<br />
Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rama Krishna</title>
		<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132171</link>
		<dc:creator>Rama Krishna</dc:creator>
		<pubDate>Fri, 23 Apr 2010 10:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregrphoto.com/rassoc/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-132171</guid>
		<description>I have hosted this.and webservices working fine with Basic Authentication Module.
My problem is, i hosted web forms also in the same domain.
this authentication working not only for web services but also for web pages also.
i want this should work only foe webservices.is there a way.</description>
		<content:encoded><![CDATA[<p>I have hosted this.and webservices working fine with Basic Authentication Module.<br />
My problem is, i hosted web forms also in the same domain.<br />
this authentication working not only for web services but also for web pages also.<br />
i want this should work only foe webservices.is there a way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chinh</title>
		<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-131779</link>
		<dc:creator>Chinh</dc:creator>
		<pubDate>Mon, 24 Aug 2009 21:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregrphoto.com/rassoc/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-131779</guid>
		<description>For anyone trying to get this to work with IIS7, you need to do this:

- In web.config, change the name of the httpModule to &quot;CustomBasicAuthenticationModule&quot;. In IIS7, there&#039;s already a built-in module named &quot;BasicAuthenticationModule&quot;.
- Follow the instructions here http://bdotnet.in/blogs/navaneeth/archive/2008/07/06/2056.aspx

Chinh</description>
		<content:encoded><![CDATA[<p>For anyone trying to get this to work with IIS7, you need to do this:</p>
<p>- In web.config, change the name of the httpModule to &#8220;CustomBasicAuthenticationModule&#8221;. In IIS7, there&#8217;s already a built-in module named &#8220;BasicAuthenticationModule&#8221;.<br />
- Follow the instructions here <a href="http://bdotnet.in/blogs/navaneeth/archive/2008/07/06/2056.aspx" rel="nofollow">http://bdotnet.in/blogs/navaneeth/archive/2008/07/06/2056.aspx</a></p>
<p>Chinh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gulin</title>
		<link>http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-131768</link>
		<dc:creator>Gulin</dc:creator>
		<pubDate>Tue, 11 Aug 2009 08:44:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregrphoto.com/rassoc/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/#comment-131768</guid>
		<description>I did all the steps , added 
using System.Web in the BasicAuthenticationModule.cs Class however visual studio gives errors like IHttpModule, HttpApplication could not be found.. Could you tell me where did i make the mistake?</description>
		<content:encoded><![CDATA[<p>I did all the steps , added<br />
using System.Web in the BasicAuthenticationModule.cs Class however visual studio gives errors like IHttpModule, HttpApplication could not be found.. Could you tell me where did i make the mistake?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/feed/ ) in 0.21257 seconds, on Feb 11th, 2012 at 3:42 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 11th, 2012 at 3:52 am UTC -->
