When i open the sharepoint site,th开发者_如何学编程e login dialog box appears on the screen.How can i ensure that when the user wants to login,he clicks the sign in(button) at the top of the page and login into the website? And if user clicks cancel on login dialog box then the page is redirected to a page which showing an error message as 401 unauthorized.I want the page to redirect to home page when the user clicks cancel button.what to do?
Then you need to enable anonymous access to your site. If the user wants to sign in he can sign in by clicking the sign in link at the top (which will appear when you enable anonymous access to the site).
To enable anonymous access
- Central Administration -> Application Management -> Authentication Providers
- Select you web application and zone
- Check 'Enable Anonymous Access'
- Save it
- Go to the web application
- People & Groups -> Site permissions -> Settings -> Anonymous Access
- Select 'Entire Web Site'
- Save it
精彩评论