Re: Impersonating a domain user for debugging purposes
From: Raterus (raterus_at_spam.org)
Date: 06/22/04
- Next message: Mike Dale: "Re: Security Migration"
- Previous message: Dan Guzman: "Re: Ownership Chains Not Working?"
- In reply to: Dan Guzman: "Re: Impersonating a domain user for debugging purposes"
- Next in thread: Steve Thompson: "Re: Impersonating a domain user for debugging purposes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 22 Jun 2004 09:44:36 -0400
Thank you so much, that is going to work great!
"Dan Guzman" <danguzman@nospam-earthlink.net> wrote in message news:OtYn5qFWEHA.3024@TK2MSFTNGP09.phx.gbl...
> As a sysadmin role member, you can execute a SETUSER command to use
> different security context. For example:
>
> SETUSER 'MyDomain\MyUser'
> GO
> EXEC MyProcedure
> GO
>
> You can revert back to your own security context by running SETUSER with no
> parameters. See the Books Online for more information.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> "Raterus" <raterus@spam.org> wrote in message
> news:%23uCRFd9VEHA.716@TK2MSFTNGP11.phx.gbl...
> Here is one big "gotcha" I always run into. Our SQL Server is based
> entirely off Integrated Windows Authentication. When I create SProcA and
> test it with my permissions, it works great. Security isn't really a
> question, since my account is in the Domain Admins group. Unfortunately
> when UserA attempts to execute SProcA, it fails for them, because they do
> not have the appropriate permissions.
>
> I'd like to debug these scripts at the comfort of my workstation, and not
> rely on the end-users interaction in this process, except for the initial
> error report. My problem is that since I have Domain Admin rights,
> everything works fine for me. It usually boils down to a simple permission
> somewhere, but that's hard to track when I don't have any errors I can see
> at my workstation..
>
> So my question is:
>
> Is there some way I can impersonate a specific users login, in order that I
> can test what exactly happened on their end? I'd prefer not to have to
> change their password.
>
>
- Next message: Mike Dale: "Re: Security Migration"
- Previous message: Dan Guzman: "Re: Ownership Chains Not Working?"
- In reply to: Dan Guzman: "Re: Impersonating a domain user for debugging purposes"
- Next in thread: Steve Thompson: "Re: Impersonating a domain user for debugging purposes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|