Accessing a network share with a non-domain account

Discussion in 'ASP .Net Security' started by lf, Jun 9, 2006.

  1. lf

    lf Guest

    Hi,

    I have an ASP.NET 2.0 application that is trying to access a shared drive.

    The shared drive requires a username and password. The username and
    password correspond to a local account on the W2K3 server where the drive is
    located.

    I have been looking at using impersonation to try and access the resource
    but it seems that this will only work for domain accounts.

    I also cannot create the same user on the web server due to password
    restrictions.

    Any thoughts/ideas on how I can access this resource would be appreciated.
    lf, Jun 9, 2006
    #1
    1. Advertising

  2. call LogonUser with the NEW_CREDENTIAL option - you can pass in the username/password
    on the account on the target machine. Then impersonate and access the resource.
    Credentials will be checked when you fo the remote access.

    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com

    > Hi,
    >
    > I have an ASP.NET 2.0 application that is trying to access a shared
    > drive.
    >
    > The shared drive requires a username and password. The username and
    > password correspond to a local account on the W2K3 server where the
    > drive is located.
    >
    > I have been looking at using impersonation to try and access the
    > resource but it seems that this will only work for domain accounts.
    >
    > I also cannot create the same user on the web server due to password
    > restrictions.
    >
    > Any thoughts/ideas on how I can access this resource would be
    > appreciated.
    >
    Dominick Baier [DevelopMentor], Jun 9, 2006
    #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. CES
    Replies:
    1
    Views:
    532
  2. Jane Davis

    Network Service account over network

    Jane Davis, Jun 22, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    424
    Kevin Spencer
    Jun 22, 2005
  3. Oriane
    Replies:
    3
    Views:
    970
    Oriane
    Apr 15, 2009
  4. CES
    Replies:
    1
    Views:
    216
  5. Saraswati lakki
    Replies:
    0
    Views:
    1,283
    Saraswati lakki
    Jan 6, 2012
Loading...

Share This Page