Sitemap and security trimming issues

Last post 05-14-2008 3:30 PM by yasserzaid. 1 replies.

Sort Posts:

  • Sitemap and security trimming issues

    04-23-2008, 2:39 PM
    • Loading...
    • mtinghino
    • Joined on 04-23-2008, 6:26 PM
    • Posts 1

    Microsoft Tech support has been working with us on this by phone for 15 days now, but we still have not been able to resolve the issues.  The first issue is when using Windows groups for roles:  A user in the group is not recognized as being in that group and the user is denied access to the secured folder on the web site and to the sitemap for URLs in that folder.

    The second issue is with the user not being recognized in a local group on my development machine running the website with my local IIS server.  (This was a suggested approach by the Microsoft tech support rep assigned to our case.)  I have been able to get that method to sort of work in a test project that does not connect to SQL server, however I run into problems when using it in our actual project, which does connect to SQL Server with WIndows authentication.  If I use <deny users="*">, which works find in that little non-data-aware test project, I run into a problem with SQL server treating me as connecting as anonymous. 

  • Re: Sitemap and security trimming issues

    05-14-2008, 3:30 PM

    Hi,

    try this in web.config

     

    <membership defaultProvider="MyProvider" userIsOnlineTimeWindow="25">
    			<providers>
    				<add name="MyProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="JobDBConnectionString" applicationName="/" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
    			</providers>
    		</membership>
    		<roleManager cacheRolesInCookie="true" cookieName="TaskCookie" cookiePath="/" cookieProtection="None" cookieRequireSSL="true" cookieSlidingExpiration="false " cookieTimeout="60" defaultProvider="TaskRoleProvider" enabled="true">
    			<providers>
    				<add name="TaskRoleProvider" connectionStringName="JobDBConnectionString" applicationName="/" type="System.Web.Security.SqlRoleProvider"/>
    			</providers>
    		</roleManager>
    		<!--SiteMap Provider-->
    		<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
    			<providers>
    				<add name="XmlSiteMapProvider" description="Default SiteMap provider." type="System.Web.XmlSiteMapProvider" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
    			</providers>
    		</siteMap>
     
    Regards,
    Yasser Zaid

    ~ Please remember to click Mark as Answer on this post if it helped you ~
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter