Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mikael Mørup 297 posts 326 karma points
    Jan 05, 2010 @ 00:20
    Mikael Mørup
    0

    User control that runs in the context of another user than the default web user

    I am thinking of coding a usercontrol that has to get / serve some files that are located in a directory that is not part of the Umbraco wwwroot structure.

    The user control has to run in the context of another user than the one normally associated with the site.

    Does anyone of you godlike gurus know how to do that ?

    Happy new year to all.

    Mikael

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jan 05, 2010 @ 07:17
    Aaron Powell
    0

    I don't think that you'll be able to without changing the app pool which is running the Umbraco site to be a user which can access both folders.

  • Mikael Mørup 297 posts 326 karma points
    Jan 05, 2010 @ 08:15
    Mikael Mørup
    0

    Hmm, is there another way to get to files that are outside the filestructure that umbraco / the web user has acces to?

    What i need is something along the lines of Dirks protected media,but not integrated with the media in Umbraco.

    It's basically just word documents that has to be secured and only accessible to specific members. But they need to be really secure, so putting them in the media folder structure is not an option.

    Mikael

     

  • Mikael Mørup 297 posts 326 karma points
    Jan 05, 2010 @ 20:51
    Mikael Mørup
    0

    Well there's always the option to put the documents in the DB and get them from there.

    This wil have the added advantage of being able to store meta data about them.

Please Sign in or register to post replies

Write your reply to:

Draft