Re: why not SQL Authentication?

From: Brock Allen (ballen_at_NOSPAMdevelop.com)
Date: 03/29/05


Date: Tue, 29 Mar 2005 09:11:47 -0800

Absolutely. That's why I said "for some websites it's not a problem" and
in fact for your situation it wouldn't help since you have more than one
database. Connection pooling with a single user for the database doesn't
really buy you anything since in general you're only ever using one conenction
to communicate to the DB.

-Brock
DevelopMentor
http://staff.develop.com/ballen

> My application is serving small businesses. Each one has its own DB.
> Most of the time there is one user per DB. This user my be connected
> all day long. To use connection pooling I'l have to log all the users
> to one DB and the switch them to appropriate DB. I think this creates
> a security risk.
>
> "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
> news:283855632475988240591776@msnews.microsoft.com...
>
>> The main drawback of SqlAuthentication (authing from browser thru
>> website thru database) is that connections can't be pooled. For some
>> websites this is not a concern, but for others where you have huge
>> volume (and/or you're not doing windows auth against the clients) if
>> you use the client's creds for SqlAuth then that's an independant
>> connection. So 1000 users on your site, that's 1000 distinct
>> connections. If you use the same credentials (like a "SqlUser"
>> account) then those connections get pooled and thus shared. It's a
>> performance enhancement.
>>
>> -Brock
>> DevelopMentor
>> http://staff.develop.com/ballen
>>> With Forms authentication and SQL Server, MS recommends creating a
>>> User
>>> table and storing user names and password hashes to that table.
>>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnn
>>> e
>>> tsec/html/SecNetHT03.aspThey go on proposing a Roles table and so
>>> on.I
>>> wonder why not just use SQL Server authentication and just try to
>>> loginwith the user supplied credentials?



Relevant Pages

  • Re: banned by ip
    ... you've given us was "some situations like some websites don't allow more ... than one connection to their website from a single ip address!!! ... of requests for various elements of a single page to be rendered... ... manifests itself as seemingly random network connection failures (you'd ...
    (Ubuntu)
  • Re: Online connection turtle-slow
    ... connection with online banking and other websites that requires my login ... Here is the fix: ... save the file and reboot; ...
    (Ubuntu)
  • Re: Online connection turtle-slow
    ... connection with online banking and other websites that requires my login ... sudo gedit /etc/sysctl.conf ... save the file and reboot; ...
    (Ubuntu)
  • Re: Orange
    ... still have no access to websites. ... download a file from Limewire) I have tried Firefox and IE6, ... 100% have a connection, but cant view yahoo or ebay etc. ... I tried with yahoo.co.uk and it came back successful, but I still cant ...
    (uk.telecom.broadband)
  • Cant access internet
    ... This is in regard to my son's PC: Windows XP Home SP1 ... Uses Ethernet connection through college server, had access to all websites. ... but could access iMesh by typing address on IE, or, ...
    (microsoft.public.windowsxp.general)