Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > External web service and Active Directory - which authentication type?

Reply
Thread Tools

External web service and Active Directory - which authentication type?

 
 
sqlman
Guest
Posts: n/a
 
      05-29-2009
Windows 2008 Server, IIS 7
ASP.NET 1.1 web service

I have a ASP.NET 1.1 web service on the external machine for which I
need to implement proper authentication mechanism. I have an Active
Directory domain also in DMZ (specifically for external users), and I
would like to use the existing user base and roles in it.

The easiest approach seems to enable Windows authentication on the
virtual directory of the web service, and let IIS handle
authentication. But from what I have seen, Microsoft strongly
discourages use of Windows authentication on the Internet.

What are my alternatives and how would I implement them?
 
Reply With Quote
 
 
 
 
DaveMo
Guest
Posts: n/a
 
      06-01-2009
On May 29, 10:41*am, sqlman <n...@abc.xyz> wrote:
> Windows 2008 Server, IIS 7
> ASP.NET 1.1 web service
>
> I have a ASP.NET 1.1 web service on the external machine for which I
> need to implement proper authentication mechanism. *I have an Active
> Directory domain also in DMZ (specifically for external users), and I
> would like to use the existing user base and roles in it.
>
> The easiest approach seems to enable Windows authentication on the
> virtual directory of the web service, and let IIS handle
> authentication. *But from what I have seen, Microsoft strongly
> discourages use of Windows authentication on the Internet.
>
> What are my alternatives and how would I implement them?


The only other decent option is to use forms-based authentication. But
really it comes down to a matter of preference for the user
interaction during authentication. With Windows Integrated AuthN the
user will see the dialog box provided by Windows. It's not very user
friendly and lacks context. Also if the user forgets their password or
needs to change it, then the user is stuck or at best confused.

For this reason, most people go with forms-based auth for external
authN scenarios. Good info here: http://msdn.microsoft.com/en-us/library/aa480476.aspx

Security issues with Windows integrated auth comes mainly when users
choose very bad passwords. This problem can be mitigated by enforcing
strong passwords or protect the initial page in your site with HTTPS.


HTH,
Dave
 
Reply With Quote
 
 
 
 
sqlman
Guest
Posts: n/a
 
      06-03-2009
On Mon, 1 Jun 2009 12:36:47 -0700 (PDT), DaveMo
<> wrote:

>On May 29, 10:41*am, sqlman <n...@abc.xyz> wrote:
>> Windows 2008 Server, IIS 7
>> ASP.NET 1.1 web service
>>
>> I have a ASP.NET 1.1 web service on the external machine for which I
>> need to implement proper authentication mechanism. *I have an Active
>> Directory domain also in DMZ (specifically for external users), and I
>> would like to use the existing user base and roles in it.
>>
>> The easiest approach seems to enable Windows authentication on the
>> virtual directory of the web service, and let IIS handle
>> authentication. *But from what I have seen, Microsoft strongly
>> discourages use of Windows authentication on the Internet.
>>
>> What are my alternatives and how would I implement them?

>
>The only other decent option is to use forms-based authentication. But
>really it comes down to a matter of preference for the user
>interaction during authentication. With Windows Integrated AuthN the
>user will see the dialog box provided by Windows. It's not very user
>friendly and lacks context. Also if the user forgets their password or
>needs to change it, then the user is stuck or at best confused.
>
>For this reason, most people go with forms-based auth for external
>authN scenarios. Good info here: http://msdn.microsoft.com/en-us/library/aa480476.aspx
>
>Security issues with Windows integrated auth comes mainly when users
>choose very bad passwords. This problem can be mitigated by enforcing
>strong passwords or protect the initial page in your site with HTTPS.
>
>
>HTH,
>Dave


Dave,

I am aware of all that, but I am talking about a web service, not an
interactive web app. So, Forms seems to be out of question.

Thanks!
 
Reply With Quote
 
DaveMo
Guest
Posts: n/a
 
      06-04-2009
On Jun 3, 9:34*am, sqlman <n...@abc.xyz> wrote:
> On Mon, 1 Jun 2009 12:36:47 -0700 (PDT), DaveMo
>
>
>
>
>
> <david.mow...@gmail.com> wrote:
> >On May 29, 10:41*am, sqlman <n...@abc.xyz> wrote:
> >> Windows 2008 Server, IIS 7
> >> ASP.NET 1.1 web service

>
> >> I have a ASP.NET 1.1 web service on the external machine for which I
> >> need to implement proper authentication mechanism. *I have an Active
> >> Directory domain also in DMZ (specifically for external users), and I
> >> would like to use the existing user base and roles in it.

>
> >> The easiest approach seems to enable Windows authentication on the
> >> virtual directory of the web service, and let IIS handle
> >> authentication. *But from what I have seen, Microsoft strongly
> >> discourages use of Windows authentication on the Internet.

>
> >> What are my alternatives and how would I implement them?

>
> >The only other decent option is to use forms-based authentication. But
> >really it comes down to a matter of preference for the user
> >interaction during authentication. With Windows Integrated AuthN the
> >user will see the dialog box provided by Windows. It's not very user
> >friendly and lacks context. Also if the user forgets their password or
> >needs to change it, then the user is stuck or at best confused.

>
> >For this reason, most people go with forms-based auth for external
> >authN scenarios. Good info here:http://msdn.microsoft.com/en-us/library/aa480476.aspx

>
> >Security issues with Windows integrated auth comes mainly when users
> >choose very bad passwords. This problem can be mitigated by enforcing
> >strong passwords or protect the initial page in your site with HTTPS.

>
> >HTH,
> >Dave

>
> Dave,
>
> I am aware of all that, but I am talking about a web service, not an
> interactive web app. *So, Forms seems to be out of question.
>
> Thanks!- Hide quoted text -
>
> - Show quoted text -


Ahh, sorry. Missed the web service piece in my first read. For
automated processes the choice comes down to password-based challenge
response protocols which include NTLM and Digest. The two have
similiar security characteristics, so I'd likely suggest NTLM.
Otherwise you can choose client certificate authentication using X.509
certificates. These are all out of the box mechanisms. Note that
client cert authN requires SSL, but if you use SSL then NTLM auth is
perfectly secure as well. It really just comes down to what your
external customers are going to have to do to manage their credentials
of whichever type you choose to accept. Is it easier for them to
manage passwords or certificates?

For completeness I should probably mention federation-based
approaches, but knowing nothing about the external users I couldn't
say whether that approach would be worth looking in to.
HTH,
Dave
 
Reply With Quote
 
sqlman
Guest
Posts: n/a
 
      06-08-2009
On Thu, 4 Jun 2009 09:24:42 -0700 (PDT), DaveMo
<> wrote:

>On Jun 3, 9:34*am, sqlman <n...@abc.xyz> wrote:
>> On Mon, 1 Jun 2009 12:36:47 -0700 (PDT), DaveMo
>>
>>
>>
>>
>>
>> <david.mow...@gmail.com> wrote:
>> >On May 29, 10:41*am, sqlman <n...@abc.xyz> wrote:
>> >> Windows 2008 Server, IIS 7
>> >> ASP.NET 1.1 web service

>>
>> >> I have a ASP.NET 1.1 web service on the external machine for which I
>> >> need to implement proper authentication mechanism. *I have an Active
>> >> Directory domain also in DMZ (specifically for external users), and I
>> >> would like to use the existing user base and roles in it.

>>
>> >> The easiest approach seems to enable Windows authentication on the
>> >> virtual directory of the web service, and let IIS handle
>> >> authentication. *But from what I have seen, Microsoft strongly
>> >> discourages use of Windows authentication on the Internet.

>>
>> >> What are my alternatives and how would I implement them?

>>
>> >The only other decent option is to use forms-based authentication. But
>> >really it comes down to a matter of preference for the user
>> >interaction during authentication. With Windows Integrated AuthN the
>> >user will see the dialog box provided by Windows. It's not very user
>> >friendly and lacks context. Also if the user forgets their password or
>> >needs to change it, then the user is stuck or at best confused.

>>
>> >For this reason, most people go with forms-based auth for external
>> >authN scenarios. Good info here:http://msdn.microsoft.com/en-us/library/aa480476.aspx

>>
>> >Security issues with Windows integrated auth comes mainly when users
>> >choose very bad passwords. This problem can be mitigated by enforcing
>> >strong passwords or protect the initial page in your site with HTTPS.

>>
>> >HTH,
>> >Dave

>>
>> Dave,
>>
>> I am aware of all that, but I am talking about a web service, not an
>> interactive web app. *So, Forms seems to be out of question.
>>
>> Thanks!- Hide quoted text -
>>
>> - Show quoted text -

>
>Ahh, sorry. Missed the web service piece in my first read. For
>automated processes the choice comes down to password-based challenge
>response protocols which include NTLM and Digest. The two have
>similiar security characteristics, so I'd likely suggest NTLM.
>Otherwise you can choose client certificate authentication using X.509
>certificates. These are all out of the box mechanisms. Note that
>client cert authN requires SSL, but if you use SSL then NTLM auth is
>perfectly secure as well. It really just comes down to what your
>external customers are going to have to do to manage their credentials
>of whichever type you choose to accept. Is it easier for them to
>manage passwords or certificates?
>
>For completeness I should probably mention federation-based
>approaches, but knowing nothing about the external users I couldn't
>say whether that approach would be worth looking in to.
>HTH,
>Dave


Dave,

The whole point of this is to use the Active Directory to manage
users, and let them get authenticated against it. From what I gather,
client certificates lead to something else.

I am also still confused: what is wrong with using Windows
authentication (with SSL or not), and how is it inferior to NTLM or
Digest?

Thanks!
 
Reply With Quote
 
DaveMo
Guest
Posts: n/a
 
      06-11-2009
On Jun 8, 10:45*am, sqlman <n...@abc.xyz> wrote:
> On Thu, 4 Jun 2009 09:24:42 -0700 (PDT), DaveMo
>
>
>
>
>
> <david.mow...@gmail.com> wrote:
> >On Jun 3, 9:34*am, sqlman <n...@abc.xyz> wrote:
> >> On Mon, 1 Jun 2009 12:36:47 -0700 (PDT), DaveMo

>
> >> <david.mow...@gmail.com> wrote:
> >> >On May 29, 10:41*am, sqlman <n...@abc.xyz> wrote:
> >> >> Windows 2008 Server, IIS 7
> >> >> ASP.NET 1.1 web service

>
> >> >> I have a ASP.NET 1.1 web service on the external machine for which I
> >> >> need to implement proper authentication mechanism. *I have an Active
> >> >> Directory domain also in DMZ (specifically for external users), andI
> >> >> would like to use the existing user base and roles in it.

>
> >> >> The easiest approach seems to enable Windows authentication on the
> >> >> virtual directory of the web service, and let IIS handle
> >> >> authentication. *But from what I have seen, Microsoft strongly
> >> >> discourages use of Windows authentication on the Internet.

>
> >> >> What are my alternatives and how would I implement them?

>
> >> >The only other decent option is to use forms-based authentication. But
> >> >really it comes down to a matter of preference for the user
> >> >interaction during authentication. With Windows Integrated AuthN the
> >> >user will see the dialog box provided by Windows. It's not very user
> >> >friendly and lacks context. Also if the user forgets their password or
> >> >needs to change it, then the user is stuck or at best confused.

>
> >> >For this reason, most people go with forms-based auth for external
> >> >authN scenarios. Good info here:http://msdn.microsoft.com/en-us/library/aa480476.aspx

>
> >> >Security issues with Windows integrated auth comes mainly when users
> >> >choose very bad passwords. This problem can be mitigated by enforcing
> >> >strong passwords or protect the initial page in your site with HTTPS.

>
> >> >HTH,
> >> >Dave

>
> >> Dave,

>
> >> I am aware of all that, but I am talking about a web service, not an
> >> interactive web app. *So, Forms seems to be out of question.

>
> >> Thanks!- Hide quoted text -

>
> >> - Show quoted text -

>
> >Ahh, sorry. Missed the web service piece in my first read. For
> >automated processes the choice comes down to password-based challenge
> >response protocols which include NTLM and Digest. The two have
> >similiar security characteristics, so I'd likely suggest NTLM.
> >Otherwise you can choose client certificate authentication using X.509
> >certificates. These are all out of the box mechanisms. Note that
> >client cert authN requires SSL, but if you use SSL then NTLM auth is
> >perfectly secure as well. It really just comes down to what your
> >external customers are going to have to do to manage their credentials
> >of whichever type you choose to accept. Is it easier for them to
> >manage passwords or certificates?

>
> >For completeness I should probably mention federation-based
> >approaches, but knowing nothing about the external users I couldn't
> >say whether that approach would be worth looking in to.
> >HTH,
> >Dave

>
> Dave,
>
> The whole point of this is to use the Active Directory to manage
> users, and let them get authenticated against it. From what I gather,
> client certificates lead to something else.
>
> I am also still confused: what is wrong with using Windows
> authentication (with SSL or not), and how is it inferior to NTLM or
> Digest?
>
> Thanks!- Hide quoted text -
>
> - Show quoted text -


Windows authentication includes both Kerberos and NTLM authentication.
Kerb won't work in your scenario, so Windows authentication = NTLM.

Client certificates can be used to authenticate users in Active
Directory. Everything I've mentioned so far is a way to authenticate
AD users, so it's up to you to pick the option you like the best.

Dave
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web app authentication to active directory Nick Brown Ruby 3 03-18-2010 08:18 PM
External web service and Active Directory - which authentication type? sqlman ASP .Net 5 06-11-2009 10:09 PM
Web Application Authentication - Active Directory and SQL BizSolutions ASP .Net Security 1 09-21-2008 08:46 AM
web service authentication with active directory =?Utf-8?B?R2VpciBTYW5uZQ==?= ASP .Net 2 03-15-2005 11:35 AM
Active Directory Search fails ("The directory service is unavailab ejcosta ASP .Net Security 2 10-08-2004 09:57 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57