Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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:
<!-- Membership Provider --> <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <clear /> <add name="ADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" applicationName="anucbewebsite" attributeMapUsername="SAMAccountName" /> <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" /> <!--<add name="AspNetSqlMemberShipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" />--> <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" /> </providers> </membership>
Login is handled via:
<asp:Login runat="server" MembershipProvider="ADMembershipProvider" DisplayRememberMe="False">
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?
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.
if you find ny exact solution then please let me know about it.
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:
<deny users ="?" />
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...
Write your reply to:
Image will be uploaded when post is submitted