Storing network credentials

Discussion in 'ASP .Net Security' started by David Thielen, Jan 8, 2007.

  1. Hi;

    I'm pretty sure the answer to this is no because I see some security
    problems if it's yes. But I figure it can't hurt to ask.

    We want to be able to schedule a report to run at a certain time and run
    under the crednetials of the user that requested it. In this way we can
    connect to Sql Server using SSPI and do not need to store a username &
    password.

    Is there a way to store a client user's Windows Identity so we can later
    impersonate that user?

    --
    thanks - dave
    david_at_windward_dot_net
    http://www.windwardreports.com

    Cubicle Wars - http://www.windwardreports.com/film.htm
     
    David Thielen, Jan 8, 2007
    #1
    1. Advertising

  2. Hello Dave,

    A Windows identity is initialized by a user token, it is retrieved through
    a call to unmanaged code, such as a call to the Win32 API LogonUser
    function that require user's account and password. So a Windows identity
    cannot be saved anyway,

    Sincerely,

    Luke Zhang

    Microsoft Online Community Support
    ==================================================
    Get notification to my posts through email? Please refer to
    http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
    ications.

    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at
    http://msdn.microsoft.com/subscriptions/support/default.aspx.
    ==================================================

    This posting is provided "AS IS" with no warranties, and confers no rights.
     
    Luke Zhang [MSFT], Jan 8, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. toton
    Replies:
    11
    Views:
    721
    toton
    Oct 13, 2006
  2. Fresno Bob

    Network Credentials problem

    Fresno Bob, Sep 25, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    330
    Fresno Bob
    Sep 25, 2007
  3. Steve
    Replies:
    12
    Views:
    339
    Steve
    Jan 30, 2004
  4. Ken Varn
    Replies:
    0
    Views:
    222
    Ken Varn
    Jul 9, 2004
  5. Mayo

    Network credentials with Assembly.LoadFrom

    Mayo, Sep 13, 2006, in forum: ASP .Net Security
    Replies:
    0
    Views:
    127
Loading...

Share This Page