Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Permissions in web.config filePermissions in web.config file
Previous
 
Next
New Post
5/28/2009 11:37 AM
 

Hello,

I know that is possible to set permissions in "File Manager" menù, but I need to use web.config file. I'd like to store web.config file in a folder (i.e. /Portals/2/Test) specifing this section:

<configuration>
  <appSettings/>
  <connectionStrings/>
  <system.web>
    <authorization>
      <allow roles ="Administrators"/>
      <deny users="*"/>
    </authorization>
  </system.web>
</configuration>

 

This seems that this not work, I can access to the files stored in /Portals/2/Test directory even if the user is anonymous. Where I am wrong?

Thank you!

 
New Post
5/29/2009 4:05 AM
 

Please be aware, that web.config needs to reside in portal root and you cannot have another file with this name in any folder beneath.

Besides, ASP.net does not know anything about roles specified inside DotNetNuke, therefore your approach cannot lead to any succees.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/29/2009 7:44 AM
 

Sebastian Leupold wrote

Besides, ASP.net does not know anything about roles specified inside DotNetNuke, therefore your approach cannot lead to any succees.

:( it would be nice for me...

Sebastian Leupold wrote

Please be aware, that web.config needs to reside in portal root and you cannot have another file with this name in any folder beneath.

This is not really true, usually web.config files can be stored in any asp.net folder in order to set permissions. Obviously all the other settings must be in the web.config version stored in the root folder

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Permissions in web.config filePermissions in web.config file


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out