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 ?
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.
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
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.
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
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.
is working on a reply...