Having an ASP.Net server write a flie to another server

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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...
    > 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

    Paul Glavich [MVP - ASP.NET] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139