problem with impersonation using LogonUser

Discussion in 'ASP .Net Security' started by Swati, May 11, 2004.

  1. Swati

    Swati Guest

    Hello All

    This is what I am tring to do:
    I have some folders shared for specific users on network.
    Now from my web appl I have to access them.
    I am using forms authentication.
    I am trying to use the LogonUser call from my cs file so that i can
    log on as the network user.
    I create a windowsprincipal object using the token returned from this
    method in my code and attach it to the httpcontext.
    I do not get any errors or exceptions. The Identity.Name returns the
    correct name.
    The user has permissions on the network for that share but from my web
    app I cannot access the folders.But from my web app I cannot access
    the folders .. I get an access denied error.
    Any idea whats lacking?
    I am using Win2k and I have set the aspnet user to "Act as OS" or
    whatever that setting is required.
    Any help will be useful.

    thnx,
    Swati
     
    Swati, May 11, 2004
    #1
    1. Advertisements

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. Jason

    impersonating and LogonUser

    Jason, Dec 30, 2003, in forum: ASP .Net
    Replies:
    7
    Views:
    632
    Jim Cheshire [MSFT]
    Jan 5, 2004
  2. Nimi

    LogonUser failed error

    Nimi, Oct 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,567
    Martin Dechev
    Oct 14, 2004
  3. Rich
    Replies:
    1
    Views:
    8,513
    Scott Allen
    Nov 2, 2004
  4. Darrell

    win32security.LogonUser

    Darrell, Jul 8, 2003, in forum: Python
    Replies:
    1
    Views:
    1,532
    John Abel
    Jul 8, 2003
  5. =?Utf-8?B?U2FqaWQ=?=

    Security Error LogonUser

    =?Utf-8?B?U2FqaWQ=?=, Dec 11, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    442
    Frank Hickman [MVP]
    Dec 11, 2006
  6. =?Utf-8?B?VmlrcmFt?=

    Alternate to Logonuser API

    =?Utf-8?B?VmlrcmFt?=, Sep 26, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    519
    Michael Nemtsev, MVP
    Sep 26, 2007
  7. kellygreer1

    Permissions to call LogonUser

    kellygreer1, Nov 20, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    396
    bruce barker (sqlwork.com)
    Nov 20, 2007
  8. nilapenn
    Replies:
    3
    Views:
    853
    Joe Kaplan \(MVP - ADSI\)
    Feb 14, 2005
Loading...