Re: VB6 Using ADO to Login to SQL Server using NT Authentication
- From: "jmassa01" <joemanelli@xxxxxxx>
- Date: 24 Sep 2006 16:30:50 -0700
Not sure this helps alot. I think that I need to setup a group in the
Active Directory that is the login on the SQL Server for the database
needed. Then, place the user logins into that group. Then the
connection string that needs NT Athentication should see that both the
SQL Login and NT Login are in the group that SQL Server security login
specifies. Not sure if that is the method but would like verification.
THanks..
Mark J. McGinty wrote:
"jmassa01" <joemanelli@xxxxxxx> wrote in message
news:1159055097.932324.129070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have an application that uses a secure SQL Server Database with a
UserID/Password that is different from the NT (XP) Workstation
Login/Password on the Domain. The SQL Server is setup for NT
Authentication Only. Simply stated, I need the APPLICATION to login
with its ADO connection string using its own USERID/PASSWORD to the SQL
Server to access a database regardless of the NT Login. The
application has its own user security. This application will be used on
CITRIX or Terminal Server by several users. Do I have to use ODBC or
something else?
You cannot pass credentials for NT Auth in the connection string. To
achieve this your app will need to impersonate an NT account that is valid
on the SQL Server box, which means you will have to store credentials for
that NT account in the app or in the registry (or otherwise make them
available to it at runtime.)
A less elegant but [perhaps] equally workable alternative would be to run
your app from the RUNAS command, or with the Run As checkbox in the shortcut
checked.
The key is that the ADO objects must be running under an NT user context
that has access to the SQL Server.
-Mark
Need Help ASAP. Thanks.
.
- Follow-Ups:
- Re: VB6 Using ADO to Login to SQL Server using NT Authentication
- From: Mark J. McGinty
- Re: VB6 Using ADO to Login to SQL Server using NT Authentication
- References:
- VB6 Using ADO to Login to SQL Server using NT Authentication
- From: jmassa01
- Re: VB6 Using ADO to Login to SQL Server using NT Authentication
- From: Mark J. McGinty
- VB6 Using ADO to Login to SQL Server using NT Authentication
- Prev by Date: Re: VB6 Using ADO to Login to SQL Server using NT Authentication
- Next by Date: How to cancel SQL query from VBA ADO?
- Previous by thread: Re: VB6 Using ADO to Login to SQL Server using NT Authentication
- Next by thread: Re: VB6 Using ADO to Login to SQL Server using NT Authentication
- Index(es):
Relevant Pages
|