Windows Authentication
From: Eran Librach (eran.librach@verizon.net)
Date: 01/02/03
- Next message: Ed: "SQL Server Agent - Job HELL"
- Previous message: mike singer: "Re: Renamed Windows login not found in SQL Server 2000"
- In reply to: Mike Beltran: "Windows Authentication"
- Next in thread: Alvin Zhao[MSFT]: "RE: Windows Authentication"
- Reply: Alvin Zhao[MSFT]: "RE: Windows Authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Eran Librach" <eran.librach@verizon.net> Date: Thu, 2 Jan 2003 07:23:33 -0800
I'm not sure about VB6, but there is a mechanism in Win32
to impersonate another login, called
ImpersonateLoggedOnUser, used alongside LogonUser.
If done correctly, you can have your application ask the
user for a username/password and use these to impersonate
that user. While impersonating, any new SQL sessions
should see the impersonated user.
Hope that helps.
-Eran
>-----Original Message-----
>Can anyone tell me if this is possible using VB6 and SQL
>2000?
>
>I am using Windows Authentication in SQL so that I don't
>have to create logins. All the domain users in my domain
>are created as a single login. The Public group has no
>permissions. Individual users from the domain are
created
>and placed in a user group that has permissions to the
>database.
>
>My dilemma is this. I want a user to be able to login to
>my application from a workstation that they are not
>currently logged into. I already know how to validate
the
>user's Windows login and password. But I believe SQL's
>Windows Authentication doesn't care about my VB user, it
>cares about the user that is logged onto that
workstation.
>Is it possible for me to connect the user to the
database
>using Windows Authentication and the user id of the user
>logging into my app?
- Next message: Ed: "SQL Server Agent - Job HELL"
- Previous message: mike singer: "Re: Renamed Windows login not found in SQL Server 2000"
- In reply to: Mike Beltran: "Windows Authentication"
- Next in thread: Alvin Zhao[MSFT]: "RE: Windows Authentication"
- Reply: Alvin Zhao[MSFT]: "RE: Windows Authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|