Re: Windows Authentication question
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Tue, 3 Apr 2007 22:29:19 +0000 (UTC)
Mark Clark (M-Clark-nospam@xxxxxxxxxxxxx) writes:
Currently we use SQL authentication on SQL Server 2005, with a few
logins for our applications, because we are using NetWare for users. We
are planning on moving to Active Directory, and therefore I am
considering Windows Authentication. My concern is that if/when we
switch, users would then be able to use query analyzer or Management
Studio or other tools to log in directly to the server, whereas they
can't now. Is there some way to use Windows Auth. and allow them to
connect via an application but not "directly"?
No. Mgmt Studio is just another application.
Short of that, what other suggestions do you have? I am considering
removing the SQL authentication accounts so we don't have to maintain
them (change passwords every so often) and because from what I've read
Windows authentication is more secure. I am not opposed to staying with
SQL authentication if it makes more sense in this scenario.
The tested-and-tried solution for security in my opinion is to use
stored procedure. Then the users only need EXEC permissions on the stored
procedures. But if you are using ad-hoc statements today, switching
to stored procedures means a major rewrite.
An alternative is to have the application authenticate the users, and
then connect to SQL Server on your behalf. This appears to be what
you are doing today. But if the applications are three-tier apps, the
middle tier could run with its own login, and log into SQL Server with
that login over Windows authentication.
If your application is a two-tier app, the current construction is
certainly very insecure, as it's not difficult for a crafty user
to find the SQL logins and the passwords.
I have been starting to read about application roles, which look like a
possibility, except that some apps traverse more than one DB. From what
I've seen, when you need to do that, you have to start enabling and
granting things for guest, which I really don't want to do. It seems
like that's opening things up for possible trouble.
And the same issue applies to application roles on two-tier apps.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Windows Authentication question
- From: Mark Clark
- Windows Authentication question
- Prev by Date: Re: SQL 2k5 Views Referencing Different Schemas - Permissions Issues
- Next by Date: Re: SQL User SID format?
- Previous by thread: Windows Authentication question
- Next by thread: SQL User SID format?
- Index(es):
Relevant Pages
|