Re: How to create file on network share from ASP.NET
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 09:54:41 -0400
Hi, Andre.
You can use "mirrored" local accounts (that is, accounts with matching
usernames and passwords on two computers). You need to use this
approach when the computers are in separate domains with no trust
relationship or when the computers are separated by a firewall and you
cannot open the ports required for NTLM or Kerberos authentication.
See :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod15.asp
In the "ASP.NET Worker Process Identity" section
you'll find precise instructions for setting up mirrored accounts.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
"Andre" <Andre@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:84A1C352-478E-46BF-B8C6-931BCE67BB94@xxxxxxxxxxxxxxxx
> Guys,
>
> Thank you very much for your answers/suggestions.
>
> Scott,
> Does you suggestion mean that Windows will always try to login using current
> (impersonated) credentials first? What if my impersonated credentials are
> domain related, is it going to be a problem? Sorry for dumb questions I am
> not an expert in Windows security.
>
> Kevin,
> Does you suggestion mean, that it is domain, which webserver belongs to, you
> are talking about? Can impersonte user of another domain (I have domain name,
> username and password for that domain, but server is not part of that domain)?
>
> Juan,
> There are various reasons (not of a technical matter) which prevent our
> web-server to be joined with the other domain. Machines are on the same
> physical network, but webserver is maintained by one company and domain by
> another. So all I have from the domain managed box is the domain name, share
> name, username and password on THAT domain and I need to create export files
> using those credentials. I can do this from Windows GUI - access that share
> using provided credentials so it is should not a problem via .Net too.
>
> I am currently looking at using WNetAddConnection2 function to map external
> drives locally and write onto local drives. Is it a good idea?
>
> Thanks & Regards,
>
> Andre.
>
>
> "Scott Allen" wrote:
>
>> One technique I've used in the past is to use mirrored account. Set up
>> an account on both machines - same username, same password. Then
>> ASP.NET can impersonate the account on the server and be authenticated
>> / authorized on the remote machine.
>>
>> --
>> Scott
>> http://www.OdeToCode.com/blogs/scott/
>>
>>
>> On Thu, 21 Jul 2005 06:35:05 -0700, "Andre"
>> <Andre@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> >Hi Juan,
>> >
>> >Thank you for your reply, but my point is exactly that both computers ARE
>> >NOT members of the same domain - one is standalone Win2003 and another is
>> >external domain member and I can not put both onto the same domain. Is there
>> >any other way to do it?
>> >
>> >Thank you.
>> >
>>
>>
.
- References:
- How to create file on network share from ASP.NET
- From: Andre
- Re: How to create file on network share from ASP.NET
- From: Kevin Spencer
- Re: How to create file on network share from ASP.NET
- From: Andre
- Re: How to create file on network share from ASP.NET
- From: Juan T. Llibre
- Re: How to create file on network share from ASP.NET
- From: Andre
- Re: How to create file on network share from ASP.NET
- From: Scott Allen
- Re: How to create file on network share from ASP.NET
- From: Andre
- How to create file on network share from ASP.NET
- Prev by Date: Retrieve an XML stream from my business class
- Next by Date: RE: Form still being submitted despite being invalid
- Previous by thread: Re: How to create file on network share from ASP.NET
- Next by thread: Placeholder and positioning of children
- Index(es):
Relevant Pages
|