Re: security: sql or win connections ?

From: Aaron Bertrand [MVP] (aaron_at_TRASHaspfaq.com)
Date: 04/01/04


Date: Thu, 1 Apr 2004 16:08:18 -0500

You can use windows authentication if your web app only requires one user,
and the application / site is set to use anonymous access but has a domain
user set as the anonymous user (who is also allowed in SQL Server).

Or, if you have all 4 users set up as Windows users, and you disable
anonymous access, and force the users to authenticate as one of the four
users.

In either case, you only need one connection string. See
http://www.aspfaq.com/2126

-- 
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Hernán Castelo" <hhh@hotmail.com> wrote in message 
news:u1mf7mCGEHA.3180@TK2MSFTNGP12.phx.gbl...
> hi
> i have 4 accounts in sql : userType1...., 4
> and .Asp pages that connect to sql2K using one of them
>
> each account can only execute its stored procedures
> each account have its own password
> then i have the connection strings in an #include file
>
> I readed that existence of a plain text connection string is a weak,
> that is better to use windows authentication to connect
> in this situation :
> how can i distinguish the user type that is connecting ???
> do i have to make the connection specifying
> a user type or something like this..... ??
> how should i connect?
> have anyone a sample ?
>
> thanks
> -- 
> atte,
> Hernán Castelo
> UTN Buenos Aires
> .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
> .
>
> 


Relevant Pages

  • Re: Problems with writing to a file on IIS 6.0
    ... Is there any disadvantage of using the windows authentication over ... will use Network Service ... And i also need to use the anonymous access to provide access without ... IIS). ...
    (microsoft.public.inetserver.iis.security)
  • Re: sysprocesses and Visual Basic Program
    ... I did see that I could use windows authentication. ... > current user is logged in to SQL Server using SQL Server Authentication, ... > SYSTEM_USER returns the SQL Server login identification name, for example, ... use windows authentication in your connection string. ...
    (microsoft.public.sqlserver.programming)
  • Re: Installing MSDE 2000 Release A on a XP Home Machine
    ... Windows authentication will be of less importance and all user will be local ... security then what groups the users are a member of is entirely up to you. ... > Thanks Jim! ... >> store the ADO connection string or the parameters for the connection ...
    (microsoft.public.sqlserver.msde)
  • Re: Authentication tag confusion
    ... I was referring to the DataSourceInfo tag in the datasources.xml file. ... >> What you can do is to put the following in your connection string: ... >> access to this role and enable Anonymous access. ... If the virtual directory is configured as ...
    (microsoft.public.data.xmlanalysis)
  • Re: authentication not kept when deploying application
    ... Are you using windows authentication? ... in IIS still allows anonymous access. ... setting in IIS that's different on your machine than the live webserver. ...
    (microsoft.public.dotnet.framework.aspnet.security)