Thursday, March 8, 2007

Anonymous sites in MOSS 2007

One of the first problems I encountered when I began with SharePoint 2007 was the impossibility to show a list (doc lib, survey, pic lib, ...) to anonymous users. After configure the anonymous access for the site collection, site and list I only could show list to my authenticated users.

After googling I found the reason and the most important, the solution. By default the publish site collections ans all subsites has the LockDown mode on that makes that unauthenticated users cannot view lists.

The solution is simple, disable the LockMode. This action only will affect to the new sites that we create and the old sites still will continue with the LockMode on. To disable the LockMode you have to type:
stsadm -o deactivatefeature -url http://mysitecollection -filename ViewFormPagesLockDown\feature.xml

After that all sites created under the will have the LockMode off and theirs lists will be accessible by anonymous users.

Links:
http://technet2.microsoft.com/Office/en-us/library/f507f5d6-4c9d-4f98-909f-069c53b9a3f61033.mspx?mfr=true
http://www.sharepointplatform.com/teamblog/Lists/Posts/Post.aspx?List=427bfca2-b731-4c19-87c6-83c90460e02c&ID=29 (read until the end)

12 comments:

Yehiel said...

If I have Publishing web under Publishing site, anonymous works great for father (site) and still brings auth dialog for son (web). For other templates, like Tem, it works without issues

Yehiel said...

Breaking the inheritance and explicit defining of anonymous access on son site doesn't help.

Àlex said...

Yehiel,
Have you deactivated the lockdown mode? I recommend you ensure that is deactivated and then create a new subsite. Then check if the new subsite is "anonymous enabled".

In this page (http://www.sharepointplatform.com/teamblog/Lists/Posts/Post.aspx?List=427bfca2-b731-4c19-87c6-83c90460e02c&ID=29) you will found all the steps to configure the site. Have you do it all?

michhes said...

This may be just what I need--thanks Alex!!!

http://blog.mediawhole.com

Yehiel said...

Deactivating the lockdown mode and then create a new subsite also doesn't help

Anonymous said...

Hi,
I need urgent help on this.

I have a MOSS site created using Search Center With tabs site template. It is an internet facing site. I want to control the anonymous users access to the forms items. I have tried using the Lock down feature for my site collection, which does not work. But still the anonymous user are able to accessPages/Forms/AllItems.aspx.

I have disabled anonymous access, activated Lockdown feature, reenabled anonymous access. Is it being a limitation that Lockdown feature won't work with Search Center with Tabs template.

Thanks in Advance for any help.

Àlex said...

You could try to follow this steps in order:
1 - Ensure that anonymous access is enabled.
2 - Delete Search Center site
3 - Ensure that lockmode feature is activated
4 - Create a new Search Center with the lockmode feature activated

In the future and in order to avoid this behaviour you can choose "Publishing site" as a site collection template.

Anonymous said...

Hi Alex,
I have my site collection only one site, search Center Site. So I have chosen search Center with Tabs template.
So now I can not delete that and recreate it.
Is it mandatory to use Publishing Site template to use Lockdown feature.

Please help me out, Actually I am having Site Variations. in which for Source variations also the template is Search Center with tabs.If Lockdown feature is not going to work with this template, I will try to choose Publishing Template while creating the Source site variation.

Bunch of thanks in Advance.

Àlex said...

I have not a test environment here and I cannot test.

I suggest you to create a new Publishing Site Collection, and inside it create a Search Center with tabs sub site. The publishing site collection will have the lockdown mode off by default, and the new search center too.

MNM said...

Correct me if i'm wrong, publishing portal site collection will only allow you to create a subsite based on the 'Publishing Site with Workflow' template.

Àlex said...

MNM,
That is the default behaviour. You need to allow other site templates in your site goig to http://yourserver/yoursite/_Layouts/AreaTemplateSettings.aspx and select the available templates.

cooldudemnm said...

Thanks for the tip Alex, I ll check that out :-)

 
Online Visitors