Solved

Change SQL Srvr 2005 Authentication modes

Posted on 2010-11-21
12
407 Views
Last Modified: 2012-05-10
I have a SQL 2005 db that the software vendor has set up with SQL Authentication.  The System DSN on the cllent machines uses the SA account to connect to the DB.

When I tried to explain to the software vendor that we should use Windows Authentication, they had no idea what I was talking about.  

Is there a simple trustworthy way to change the security on the DB to use Windows Authentication instead of SQL.
0
Comment
Question by:mbkitmgr
  • 6
  • 3
  • 2
  • +1
12 Comments
 
LVL 7

Accepted Solution

by:
macentrap earned 125 total points
ID: 34185807
in SQL 2005, if its using SQL mode its already using mixed mode ( SQL server and Windows).

There are only two options in properties:
Windows authentication and mixed mode.

to use windows authentication you would have to create users in security group
SQL-Security.png
0
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 34185816
Yes, In property of Server in SSMS,  change authentication mode. PAge
0
 
LVL 7

Expert Comment

by:macentrap
ID: 34185817
misinterpretd the question:

you would like to change the system DSN on client machine

just select option for windows authentication and create that user as part of security -> logins

it should work!!
0
 
LVL 7

Assisted Solution

by:macentrap
macentrap earned 125 total points
ID: 34185830
from server it looks fine... how about security logins ... are the domain users' created.

or do you need help from System DSN on client machine
0
 
LVL 7

Expert Comment

by:macentrap
ID: 34185858
link to guide through create ODBC connection

http://www.truthsolutions.com/sql/odbc/creating_a_new_odbc_dsn.htm
0
 
LVL 5

Author Comment

by:mbkitmgr
ID: 34185875
I guess I need to clarify the issue.

+ The System DSN on the existing client machines are using the SA credential, which isnt an AD account
+ When I try to configure System DSN on a new machine with the SA credential, it fails with an error that the username and password are incorrect
+ When I check the Logins under the Instance, there is no SA acc listed
+ When I check the Database properties SA is listed as the owner
+ I cant find a user SA in the database Users either.

I had hoped by switching to Windows Authentication we could do away with the SA paradox
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 7

Assisted Solution

by:macentrap
macentrap earned 125 total points
ID: 34185943
SA is default sql server account (sql adminstrator)
This wont be part of AD
System dsn got sql method checked to connect at database

When sytem dsn is created it ask for how you would like to conect to database
I.e. Windows nt or sql
Thts where u got sql


Regarding setup on new machine wht error do you get?

Does your existing client work with initial setup of SA?


0
 
LVL 7

Expert Comment

by:macentrap
ID: 34186610
you wont find user SA in database user, there will be dbo

I assume u are trying to find it in
DatabaseEngine<InstanceName> -> databases<databaseName> -> security -> logins

whereas it is in

DatabaseEngine<InstanceName>- > security -> logins

image attached for ref.




sql-sec-2005.png
0
 
LVL 2

Expert Comment

by:marat-oz
ID: 34193472
If your Vendors application is not win app there is no way you can use win authentication; otherwise create win login, give it necessary server/DB access privileges and ask Vendor to change login account for application.
If all your users and apps are using Windows you can set Win authentication mode on server otherwise keep it mixed.
sa account has administrative rights on server and this could be security issue.
If your Vendor app isn't Windows app you can create SQL Server account with less access privileges than sa but with all necessary privileges for Vendors app and ask your Vendor to change app login account to newly created one.
0
 
LVL 2

Expert Comment

by:marat-oz
ID: 34193697
PS
"ask Vendor to change login account for application."
"ask your Vendor to change app login account to newly created one."

Actually, I believe you can do it yourself, all you need is to ask vendor what Server/DB access privileges this account needs.
0
 
LVL 5

Author Comment

by:mbkitmgr
ID: 34296208
Hi Guys,

An Update on the issue - the initial problem with the creation of the OBDC Sys DSN has been resolved.  It seems the OEM image was the problem.  I deleted the OEM install of Win7, re-installed Win7 from the OEM media kit and "hey presto" the ODBC connection now works.  

The app was Lawware. I have also expressed to the vendor that under the current settings any user with Excel can query the db and obtain user-names and passwords because the DSN is using the sa login.  Sadly some vendors don't consider the risk this poses.

So for now the problem has receded, and I have left the vendor to make their own decision on how Lawware's ODBC connector authenticates.
0
 
LVL 5

Author Closing Comment

by:mbkitmgr
ID: 34296247
perhaps my description of the issue was insufficient to deliver an answer
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now