Ask a Question related to ASP.NET Security, Design and Development.
-
Jake #1
Having an ASP.Net server write a flie to another server
Hi all
I am trying to have my ASP.Net server write a file onto another server. I continue to have security issues when attempting to do this. Ideally what I would like to achieve is to have the specific code within the function run under a specific account that has access to the other server. Or will I have to allocate the permissions to the actual ASP.Net process, which i can see will have other security implications. Any ideas
Thanks in advance
Cheers Jake
Jake Guest
-
Write input text to server file.
:confused; Googlepages is my server. It does NOT support PHP or I suspect any other 'backend'. Problem. I have a quiz application where I... -
Can I use Flex to write a server app?
I know Flex is mostly used as UI or front end. My scenario is to use Flex as a running server app to receive update from remote device and then... -
write text file to the server
What I am trying to do is get query results then use the results mixed with a little bit of simple HTML and then save that as a .txt file in a... -
How to read an SQL Server into a ASP page and then change, add, delete and write it back to SQL Server
Hello All I need to read a SQL Server table into a Web Page and within the Web Page to permit my users to make changes to the records, delete or... -
write a text file to a server
hi is it possible to open, change and save a simple txt file on a remote server with flash mx without php or cfm? the idea is to have a very simple... -
Paul Glavich [MVP - ASP.NET] #2
Re: Having an ASP.Net server write a flie to another server
You could use the DPAPI to store a specific users credentials on the machine
somewhere (config file, registry etc.) in encrypted format, and when you
want to write the file, simply impersonate that user in code, write the
file, then undo the impersonation. The link below has a sample of how to
impersonate a user, then undo that impersonation.
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/[/url]
frlrfSystemSecurityPrincipalWindowsImpersonationCo ntextClassTopic.asp
Also, below is a link to a DPAPI library I have written that contains full
source code and is ready to use from .Net. (ie. all the calls to unmanaged
code are already done for you)
[url]http://authors.aspalliance.com/glav/downloads/dpapi_wrapper.zip[/url]
--
- Paul Glavich
Microsoft MVP - ASP.NET
"Jake" <anonymous@discussions.microsoft.com> wrote in message
news:6B8734A0-1197-4CC2-B461-A19657E81363@microsoft.com...continue to have security issues when attempting to do this. Ideally what I> Hi all,
>
> I am trying to have my ASP.Net server write a file onto another server. I
would like to achieve is to have the specific code within the function run
under a specific account that has access to the other server. Or will I
have to allocate the permissions to the actual ASP.Net process, which i can
see will have other security implications. Any ideas?>
> Thanks in advance.
>
> Cheers Jake
Paul Glavich [MVP - ASP.NET] Guest



Reply With Quote

