Blogger

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

    Recent items

Login

Working with anonymous zone in SharePoint is every time very hard to work.

First of all you need to:

  • enable it into the web application with a specific zone
    • Navigate to SharePoint 2010 Central Administration -> Application management -> Manage web applications.
    • Choose the web application you would like to configure and click on Authentication Providers
    • Click on the zone that you would configure
    • On the Edit Authentication screen choose the Enable anonymous access option and click on save.
  • use the URL of the configured zone to enable the anonymous
    1. Our next step is to open your SharePoint site -> Site Actions -> Site Permissions
    2. Specify which parts of your web site you would like to enable anonymous access for and click on OK (Entire web site is suggested)
    3. Navigate to Galleries -> Master Pages and page layouts
    4. Click on the library tab
    5. Click on Library Permissions
    6. Click on Anonymous Access
    7. Specify the permission level of anonymous users. In our case we would like anonymous users to be able to view items.
    8. Navigate to Site Actions –> View All Site Content
    9. Click on Style Library and repeat the actions in steps 4 – 8.
  • Now is the time to test. Close the browser and re-open it (is suggested to use a Chrome of Firefox browser for these test to not allow Internet Explorer to send automatically the credentials if configured). If we see the ” Sign In” button on the top of the screen that means our configuration is correct and we can access the site anonymously.

It worked for us for a long time but a particular day, it stopped to work. The users started to receive 401 error (access denied).

We started the analysis and we:

  • checked the configuration in another web application and it worked
  • checked the file web.config and it was correctly filled
  • parsed GBs and GBs of logs to find out the issue

After long days we found out the issue: the reason was a user policy which denied access on the web application for one user account on all zones. After removing this policy from the zone providing the anonymous access eveything is working as expected.

I hope that this solution can help someone else :)

Published in SharePoint
Tuesday, 19 November 2013 11:10

Enable mobile access to anonymous zone

SharePoint 2010 has two visualization types:

  • Desktop
  • Mobile

For the mobile view, the system provide to read the user agent and redirect the requestes to a system pages that after redirect the requestes to the mobile views (for the lists, doc libraries, etc.).

If you wanto to give the desktop view also to the mobile terminal to the anonymous zones, with the OOB settings you have an access denied because the system redirect your requestes to a system pages that is under permission. If you try to access to the public portal with a mobile terminal (with a desktop terminal you don't have problems), you receive the popup for the credentials.

So, to enable the view also for the mobile terminal, you need to modify the web.config file for each Web Front End.

Under the section

Show/Hidden xml code

View source
 
 
 
<configuration>
 
<system.web>
 
<browserCaps>
 
              <result type="System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
 
              <filter>isMobileDevice=false</filter>
 
</browserCaps>
 
...
 
</system.web>
 
 
</configuration>
 
 
 

Published in SharePoint