Re: Impersonation issues
From: William F. Robertson, Jr. (theman_at_nameht.org)
Date: 02/04/05
- Next message: Joerg Jooss: "Re: filename without extension in URL query"
- Previous message: William F. Robertson, Jr.: "Re: Simple Question"
- In reply to: Tom Wells: "Impersonation issues"
- Next in thread: bruce barker: "Re: Impersonation issues"
- Messages sorted by: [ date ] [ thread ]
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
>
>
- Next message: Joerg Jooss: "Re: filename without extension in URL query"
- Previous message: William F. Robertson, Jr.: "Re: Simple Question"
- In reply to: Tom Wells: "Impersonation issues"
- Next in thread: bruce barker: "Re: Impersonation issues"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|