This might be more of an ASP / IIS question than an Umbraco one, but I'm reasonably inexperienced with both so I thought I'd ask anyway. I've inherited a site to maintain and extend. The site uses ActiveDirectory to allow AD users to authenticate and view a "restricted" section.
I can check whether or not my user is logged in via:
Request.IsAuthenticated
My question is: how do I restrict access to a page based on whether or not my user is logged in? At the moment the navigation menu is hiding links based on Request.IsAuthenticated, but the linked to pages are obviously still there and visible.
I found a page on Active Directory authentication with IIS here, and it seems like I might need to add an "<authorization>" section to my web.config. The example given seems to apply to the whole site though - I just want to restrict access to the "/restricted/" area of my site.
Does anyone know of any good resources on setting this up? Is using the default IIS authentication even the correct way of going about things with Umbraco?
I want to add Active Directory user authentication for Intranet User in umbraco 4.7.
I am having same problem one of my client want me to setup Active Directory Membership as a login access. So i am checking possibilities of it.
when i am searching for it i just found your posting here. Following are the few links which i have checked so far but not able to getting any perfect solution.
Restricting front end access via Active Directory
This might be more of an ASP / IIS question than an Umbraco one, but I'm reasonably inexperienced with both so I thought I'd ask anyway. I've inherited a site to maintain and extend. The site uses ActiveDirectory to allow AD users to authenticate and view a "restricted" section.
In my web.config I have:
Login is handled via:
I can check whether or not my user is logged in via:
My question is: how do I restrict access to a page based on whether or not my user is logged in? At the moment the navigation menu is hiding links based on Request.IsAuthenticated, but the linked to pages are obviously still there and visible.
I found a page on Active Directory authentication with IIS here, and it seems like I might need to add an "<authorization>" section to my web.config. The example given seems to apply to the whole site though - I just want to restrict access to the "/restricted/" area of my site.
Does anyone know of any good resources on setting this up? Is using the default IIS authentication even the correct way of going about things with Umbraco?
Hi George,
I want to add Active Directory user authentication for Intranet User in umbraco 4.7.
I am having same problem one of my client want me to setup Active Directory Membership as a login access. So i am checking possibilities of it.
when i am searching for it i just found your posting here. Following are the few links which i have checked so far but not able to getting any perfect solution.
http://our.umbraco.org/forum/developers/extending-umbraco/23424-Active-Directory-Membership-Provider-Cannot-List-Members-Section
http://our.umbraco.org/wiki/how-tos/membership-providers/active-directory-membership-provider
http://our.umbraco.org/wiki/how-tos/membership-providers/use-active-directory-to-authenticate-site-members-%28intranet%29
http://umbracoacsextensions.codeplex.com/
if you find ny exact solution then please let me know about it.
Thanks
Rushit
I think something along these lines may be required in your web.config but I have not tested this in an Umbraco site so cannot guarantee the result:
This page may be of help but as I said I don't know how this may work in umbraco.
is working on a reply...