Re: Impersonation issues

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: William F. Robertson, Jr. (theman_at_nameht.org)
Date: 02/04/05


Date: Fri, 4 Feb 2005 11:59:59 -0600

We had the same problem with communication between our file server and
webserver. We didn't want to take the impersonation route as we have a user
pool of 20,000 users and that gets hard to maintain.

On the webserver we have the "aspnet" local account that runs the website.
One the fileserver we created a "aspnet" local account that has permissions
on the file server.

We manually set the passwords for both "webserver/aspnet" and
"fileserver/aspnet" account to the same. We also changed the machine.config
file, manually setting the machine (aspnet) password.

When the webserver tries to make a connection to the fileserver, it passes
his name/pass combination and the file server authenticated successfully and
the webserver can now browse the fileserver.

I am not sure if this is the direction you are looking for, but it will work
for your situation, unless of course you are using Domain accounts for
permissions on the actual directories.

HTH,

bill

"Tom Wells" <twells@les.com> wrote in message
news:uspe%23DuCFHA.1408@TK2MSFTNGP10.phx.gbl...
> My server admin and I are trying to figure out how to get impersonation
> working to be able to upload a file from the client browser thru the web
> server to a network file server. My network ID for testing is twells.
Our
> domain for testing is dev.com. If I don't have impersonation set in
> web.config the user ID shown by
> System.Security.Principal.WindowsIdentity.GetCurrent().Name is
> "twells/ASPNET" which does not exist on our network. If I set <identity
> impersonate="true"/> in web.config the the user ID is "twells_IUSR1" which
> also does not exist on our network. If I set <identity impersonate="true"
> UserName="twells" Password="MyDevPass5"/> (MyDevPass5 is my dev password)
I
> get a web.config syntax error. I've tried several variations on "twells"
> such as "twells/dev.com" or "twells\dev.com" or "dev.com/twells" or
> "dev.com\twells", but I get the same error. Om MSDN I can't find anything
> useful that explains why this is happening or how to fix it.
>
> Any help is greatly appreciated.
> Thanks!
> Tom
>
>



Relevant Pages

  • Re: Accessing a DB on a file server through ASP on the Web Server
    ... one that is available to the webserver. ... >>I have a split Access database that resides on a file server. ... >> several ways to get the ASP code to work and pull the data off of the DB ...
    (comp.databases.ms-access)
  • Re: Database Connection ? (Newbie)
    ... > I create a Dbase connection, using a system DSN file on my ... > webserver pointing to a Dbase on a File Server. ... > exclusively or I don't have enough rights. ... > the file server or is it the user who opens the web site. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Accessing a DB on a file server through ASP on the Web Server
    ... one that is available to the webserver. ... >I have a split Access database that resides on a file server. ... > several ways to get the ASP code to work and pull the data off of the DB ...
    (comp.databases.ms-access)
  • Re: xml reader?
    ... So that needs these log files to be placed ... >>somewhere under the documentroot on a webserver so that they can be ... this is our file server that does ...
    (comp.unix.admin)
  • Database Connection ? (Newbie)
    ... I create a Dbase connection, using a system DSN file on my ... webserver pointing to a Dbase on a File Server. ... exclusively or I don't have enough rights. ... the file server or is it the user who opens the web site. ...
    (microsoft.public.inetserver.asp.general)