SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Login using AD credentials (service account)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

CreatoX
Starting Member

2 Posts

Posted - 11/01/2012 :  08:15:59  Show Profile  Reply with Quote
Hi all,

Is it possible to login to SQL using another AD-credential?

We want to use a service account loging into an application. This application is running onto 3 client PC's and is used by multiple users. For whatever reason we may not use a SQL account, but must use a service account.

I cannot get it to work. All I get is a login failed. Login in using a SQL account works great.

Current DataLink Properties:
Servername: databaseserver
User name: DOMAIN/service_account
Password: password
Database: database

Ar is it possible to map a AD account to a SQL account?

What would be the best option?

Thanks

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 11/01/2012 :  10:07:51  Show Profile  Reply with Quote
is that domain user account added into server as a valid user account?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

CreatoX
Starting Member

2 Posts

Posted - 11/01/2012 :  11:32:13  Show Profile  Reply with Quote
Yes. If you mean the service-account is added to the security group in SQL.

When I login (or 'run as' the application) under this service-account, then I can make a connection using Windows Authentication.
But we want to store the login information so everone who uses the application, the application connects to the database with the service account credentials.

The account in SQL:


The account in the connection settings (which does not work atm):
Go to Top of Page

jeffw8713
Aged Yak Warrior

USA
806 Posts

Posted - 11/05/2012 :  14:44:03  Show Profile  Reply with Quote
You cannot set this up that way - you would need to have the processes impersonate the service account, authenticate on Windows using that service account - then it might work.

I would recommend setting up an AD group with each individual who access the application added to the group, then change your connection to use Windows NT Integrated Security.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000