SlideShare a Scribd company logo
Lab 16: Create an Extranet Site
Objectives
After completing this lab, you will be able to:
• Create an extranet site with Forms Authentication based on ASP.Net Membership and Role
providers.
• Modify web.config files of both Extranet and Office SharePoint 2007 Server
Administration sites
• Add the first Administrator user for the Extranet site using Form Authentication
Prerequisites
Before working on this lab, you must have:
• Labs 1, 2, and 15 fully completed
Scenario
In this lab you will create a new site targeting your extranet audience(s). You will configure your
extranet site to use Forms Authentication.
Estimated time to complete this lab: 45 minutes
Exercise 1
Create the Internet Web Application
Create a new web application for the purpose of applying a different authentication provider.
∑ Open the Microsoft SharePoint 3.0 Central Administration site.
1. Login as Administrator and click “Start” on your desktop.
2. Select “All Programs”
3. Select “Microsoft Office Server”
4. Select “SharePoint 3.0 Central Administration”
5. Select “Application Management”
6. Click “Create or Extend Web Application”
Lab 16: Create an Extranet Site
7. Click “Create a new Web Application”
In the Create New Web Application page…
8. In the Create a new IIS Web Site section, enter the following:
IIS Web Site (section):
Description: <your initials> Extranet
Port: Keep the default Port (Write the port number here: __________ )
Host Header: leave blank
Path: C:Inetpubwwwroot<your initials>Extranet
Security Configuration (section):
Authentication Provider: NTLM
Allow Anonymous: Keep as is (No)
Use Secure Sockets Layer (SSL): Keep as is (No)
Load Balanced URL (section): Keep as is
Application Pool (section):
Create new application pool: <your initials> ExtranetAppPool
Select a security account for this application pool: click the “Configurable” radio button
Name: litwareincAdministrator
Password: pass@word1
Reset Internet Information Services (section): Keep as is.
Database Name and Authentication (section):
Database Server Name: OS
Database Name: WSS_Content_<your initials> Extranet
Database Authentication: Windows Authentication
Search Server: OS
IMPORTANT: Before Clicking Ok – please verify that all options are configured properly as
indicated above. This site will be deployed to another farm in a later exercise thus the needs to use
your own initials for differentiation between you and the other attendees’ site.
9. Click Ok (takes about 3 – 4 min to complete)
Once completed, the “Application Created” page appears.
Exercise 2
Create the Internet web application’s site Collection
Create a new site collection
Lab 16: Create an Extranet Site 3
1. In the “Application Created” page, click the “Create Site Collection” link.
Make sure the Web Application is: http://os:<port number entered in step 8 of exercise 1
above>
2. In the Title and Description section enter the following:
Title: <Your Initials>litware Inc. Extranet Site
Description: This is the main Extranet site of the Litware Inc. fictitious company.
Web Site Address section:
Select Create site at this URL: (root) “/”
Template Selection: Click on the “Publishing” tab and select the “Publishing Portal”
template.
Primary Site Collection Administrator: litwareincAdministrator (check mane to make
sure it is entered correctly)
Secondary Site Collection Administrator: litwareincbrianc (check mane to make sure it
is entered correctly)
Select a quota template: “no quota” (default).
3. Click OK
4. Click Ok again once the Top-Level site was successfully created.
To test the new extranet site simply launch you browser and point it to: “http://os:<portnumber
entered in step 8 of exercise 1 above”>
Exercise 3
Prep the site for Form Authentication - Modify Web.Config of the Extranet site
In this exercise you will modify the extranet site web.config to indicate to the web application that
a new membership and role provider is available.
∑ We now need to modify web.config of the Extranet site to apply Forms
Authentication.
Note: The Extranet site web.config needs to be modified to allow the site to communicate to the
new Memberships and Roles providers.
1. Locate the Extranet web.config file and edit it using Visual Studio.
2. Add the following
3. Click Start, Windows Explorer, navigate to the following folder
C:Inetpubwwwroot<Your Initials>Extranet.
4. Right click on web.config and open with Visual Studio.
5. Insert the following lines in web.config between </configSections> and <SharePoint> tags.
<connectionStrings>
<remove name="LocalSqlServer" />
Lab 16: Create an Extranet Site
<add name="LocalSqlServer" connectionString="Data Source=localhost;Initial
Catalog=aspnetdb;Integrated Security=True" providerName="System.Data.SqlClient"/>
<add name="AspNetSqlMembershipProvider" connectionString="server=OS;
database=aspnetdb; Trusted_Connection=True" />
</connectionStrings>
6. Insert the following text after the </httpHandlers> tags to add the Membership and Role
provider.
<!-- Start - Added by “Your Initial Here” for Forms Authentication -->
<membership defaultProvider="AspNetSqlMembershipProvider">
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add connectionStringName="AspNetSqlMembershipProvider"
passwordAttemptWindow="10" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
applicationName="Extranet" requiresUniqueEmail="false" passwordFormat="Hashed"
description="Stores and retrieves membership data from the Microsoft SQL Server
database" name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0,
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</membership>
<roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
<providers>
<remove name="AspNetSqlRoleProvider" />
<add connectionStringName="LocalSqlServer" applicationName="Extranet"
description="Stores and retrieves roles data from the local Microsoft SQL Server database"
name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>
<!-- End Added by “You Initial Here” for Forms Authentication -->
7. Save the file.
Lab 16: Create an Extranet Site 5
Exercise 4
Modify web.config of the Central Administrator site
The Central Administration site web.config will also need to be modified to allow it to select users
from the newly created membership database and have them become Administrator on the Extranet
site. The “Role” provider is not required and should not be use by The Central Administrator site.
∑ We now need to modify web.config of the Extranet site to apply Forms
Authentication.
1. Locate the appropriate web.config file and edit it.
2. Add the following
3. Click Start, Windows Explorer, navigate to the following folder
C:InetpubwwwrootwssVirtualDirectories4e4b73d4-1f9b-42f9-bd71-d931872a00c1.
4. Right click on web.config and open it up with Visual Studio.
5. Insert the following lines in web.config between </configSections> and <SharePoint> tags.
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=localhost;Initial
Catalog=aspnetdb;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
6. Add a second connection string to the access the new aspnetdb database.
<add name="AspNetSqlMembershipProvider" connectionString="server=OS;
database=aspnetdb; Trusted_Connection=True" />
7. Insert the following text after the </httpHandlers> tags. Please notice that there is no Role
provider required for the Administration site.
<!-- Start - Added by “You Initial Here” for Forms Authentication -->
<membership defaultProvider="AspNetSqlMembershipProvider">
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add connectionStringName="AspNetSqlMembershipProvider"
passwordAttemptWindow="10" enablePasswordRetrieval="false" enablePasswordReset="true"
requiresQuestionAndAnswer="true" applicationName="Extranet" requiresUniqueEmail="false"
passwordFormat="Hashed" description="Stores and retrieves membership data from the Microsoft
SQL Server database" name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</membership>
<!-- End Added by “You Initial Here” for Forms Authentication -->
Lab 16: Create an Extranet Site
8. Save the file and close Visual Studio and Windows Explorer.
9. Perform an IISRESET
Exercise 5
Configure the Extranet site for anonymous access and assign the first
Administrator.
Form Authentication requires that the web application has anonymous access enabled.
1. In the Central Administration. (Start, All Programs, Microsoft Office Server, SharePoint
3.0 Central Administration)
2. Select “Application Management” (in the main Central Administration site)
3. In the “Application Security” section, select “Authentication Providers”
Make sure the Web Application is “OS: <portnumber entered in step 8 of exercise 1 above”>”
4. Click “Default” just below the “Zone” in the main content section.
5. In the “Authentication Type” section, select Forms
6. Locate the “Anonymous Access” section and check the “Enable anonymous access” box.
7. In the “Membership Provider Name” section, enter the following in the text box
“AspNetSqlMembershipProvider”.
8. In the “Role Manager Name” section, enter the following in the text box
“AspNetSqlRoleProvider”.
9. In the “Client Integration” section, select No.
10. Click Save.
Once saved the Authentication Providers page should now indicate
“AspNetSqlMembershipProvider” under the Membership Provider Name.
11. To assign the first administrator user to the Extranet site, click on the “Application
Management” in the breadcrumb, then click “Policy for Web Application” in the
“Application security” section.
12. Make sure the Web Application is set to os:<portnumber entered in step 8 of exercise 1
above> and click Add Users.
13. In the Add Users page, Select the “Default” zone and click Next
14. Click Browse in the Choose Users section
15. In the “Add People and Groups” dialog box, enter the “musera” user and click search
(right hand side magnifier glass image)
16. There should be only one account name displayer – musera. Click Add and then click OK.
17. Apply “Full Control – Has full control” to the “musera” user and click Finish.
Lab 16: Create an Extranet Site 7
You now added you first Administrator to your Extranet site!
Exercise 6
Add the first user of the Form Authentication Provider
In this exercise you will add the first user (from the membership provider) which will become
the Administrator of the Extranet site. This user will then be able to add other users to different
roles.
1. In the Central Administration. (Start, All Programs, Microsoft Office Server, SharePoint
3.0 Central Administration) under the “Application Security” section, select “Policy for
Web Application”.
2. Click “Change Anonymous Access Permission Policy” link located in the left navigation.
3. In the “Anonymous User Policy” page, make sure the “Web Application” is
http://os:<portnumber>
4. In the Select the Zones section, select the Default zone.
5. In the Permissions section, select Deny Write – Has no write access.
6. Click Save
7. Launch you browser and test the site access http://os:<port number>
8. In the form, enter “musera” as the user id and “pass@word1” as the password
9. Once authenticated, the home page of the extranet site will be displayed.
10. Browse the Extranet site
11. To add more users click the “Site Actions” link and add People and Groups by selecting
any of the users you added in the aspnetdb membership database.
12. Close all Browser sessions
Lab Completed!

More Related Content

What's hot (16)

PDF
C sharp and asp.net interview questions
Akhil Mittal
 
PDF
Glassfish JEE Server Administration - The Enterprise Server
Danairat Thanabodithammachari
 
DOCX
V mware view 4
Licensed Killer'o
 
PDF
JEE Programming - 05 JSP
Danairat Thanabodithammachari
 
PDF
Oracle fusionmiddlewarecontinuosintegration slideshare_v1
Rakesh Gujjarlapudi
 
DOCX
Setting up an odi agent
Dharmaraj Borse
 
PDF
Install sccm 2007 on windows server 2008 r2 – step by step
d0wonload
 
PDF
Step by step installation of microsoft dynamics 365 finance and operations on...
Umesh Pandit
 
PPT
Keyword Driven Testing
anandarajta
 
PDF
154090896 installation-of-oracle-database-12c
Venkatesh Ramiya Krishnamoorthy
 
TXT
armür magnet
Mehmet Kocayiğit
 
PDF
JEE Programming - 06 Web Application Deployment
Danairat Thanabodithammachari
 
DOCX
CIS 246 Technology levels--snaptutorial.com
sholingarjosh55
 
PPTX
Top Issues For Microsoft Support For Windows Server
Blauge
 
DOCX
Sharepoint 2010 mcq
Anuja Sharma
 
PPT
GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2
Shay Hassidim
 
C sharp and asp.net interview questions
Akhil Mittal
 
Glassfish JEE Server Administration - The Enterprise Server
Danairat Thanabodithammachari
 
V mware view 4
Licensed Killer'o
 
JEE Programming - 05 JSP
Danairat Thanabodithammachari
 
Oracle fusionmiddlewarecontinuosintegration slideshare_v1
Rakesh Gujjarlapudi
 
Setting up an odi agent
Dharmaraj Borse
 
Install sccm 2007 on windows server 2008 r2 – step by step
d0wonload
 
Step by step installation of microsoft dynamics 365 finance and operations on...
Umesh Pandit
 
Keyword Driven Testing
anandarajta
 
154090896 installation-of-oracle-database-12c
Venkatesh Ramiya Krishnamoorthy
 
armür magnet
Mehmet Kocayiğit
 
JEE Programming - 06 Web Application Deployment
Danairat Thanabodithammachari
 
CIS 246 Technology levels--snaptutorial.com
sholingarjosh55
 
Top Issues For Microsoft Support For Windows Server
Blauge
 
Sharepoint 2010 mcq
Anuja Sharma
 
GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2
Shay Hassidim
 

Viewers also liked (7)

PDF
Hol262 Building%20 Info Path%20 Forms%20that%20 Run%20as%20 Both%20 Rich%20 C...
LiquidHub
 
PPT
Anne
guru111
 
PDF
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
LiquidHub
 
PPS
Scientific Breakthrough Of 2008
anu partha
 
PPTX
Sharepoint 2013 upgrade process
LiquidHub
 
PPTX
Share point 2013
LiquidHub
 
PDF
Share point 2013 coding standards and best practices 1.0
LiquidHub
 
Hol262 Building%20 Info Path%20 Forms%20that%20 Run%20as%20 Both%20 Rich%20 C...
LiquidHub
 
Anne
guru111
 
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
LiquidHub
 
Scientific Breakthrough Of 2008
anu partha
 
Sharepoint 2013 upgrade process
LiquidHub
 
Share point 2013
LiquidHub
 
Share point 2013 coding standards and best practices 1.0
LiquidHub
 
Ad

Similar to ( 16 ) Office 2007 Create An Extranet Site With Forms Authentication (20)

DOC
( 16 ) Office 2007 Create An Extranet Site With Forms Authentication
LiquidHub
 
DOC
( 2 ) Office 2007 Create A Portal
LiquidHub
 
DOC
( 2 ) Office 2007 Create A Portal
LiquidHub
 
DOC
( 15 ) Office 2007 Create A Membership Database
LiquidHub
 
PPTX
Share point 2010_overview-day4-code
Narayana Reddy
 
PPTX
Share point 2010_overview-day4-code
Narayana Reddy
 
PPTX
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Vishal Parekh
 
PPTX
LoadUI web performance testing tool
Milind Rupchandani
 
DOC
( 17 ) Office 2007 Deploy Your Extranet Site
LiquidHub
 
PPTX
DEVICE CHANNELS
Assaf Biton
 
DOC
( 15 ) Office 2007 Create A Membership Database
LiquidHub
 
PDF
Microsoft Lync Server 2010 Installation
Shahab Al Yamin Chawdhury
 
DOC
( 17 ) Office 2007 Deploy Your Extranet Site
LiquidHub
 
PPT
Asp.net tips
actacademy
 
PDF
Azure hands on lab
Atanas Gergiminov
 
PPT
5060 A 03
LiquidHub
 
PPT
5060 A 03
LiquidHub
 
PPT
5060 A 03
LiquidHub
 
PPT
5060 A 03
LiquidHub
 
PDF
Aws project jenkins-build-server
saifam
 
( 16 ) Office 2007 Create An Extranet Site With Forms Authentication
LiquidHub
 
( 2 ) Office 2007 Create A Portal
LiquidHub
 
( 2 ) Office 2007 Create A Portal
LiquidHub
 
( 15 ) Office 2007 Create A Membership Database
LiquidHub
 
Share point 2010_overview-day4-code
Narayana Reddy
 
Share point 2010_overview-day4-code
Narayana Reddy
 
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Vishal Parekh
 
LoadUI web performance testing tool
Milind Rupchandani
 
( 17 ) Office 2007 Deploy Your Extranet Site
LiquidHub
 
DEVICE CHANNELS
Assaf Biton
 
( 15 ) Office 2007 Create A Membership Database
LiquidHub
 
Microsoft Lync Server 2010 Installation
Shahab Al Yamin Chawdhury
 
( 17 ) Office 2007 Deploy Your Extranet Site
LiquidHub
 
Asp.net tips
actacademy
 
Azure hands on lab
Atanas Gergiminov
 
5060 A 03
LiquidHub
 
5060 A 03
LiquidHub
 
5060 A 03
LiquidHub
 
5060 A 03
LiquidHub
 
Aws project jenkins-build-server
saifam
 
Ad

More from LiquidHub (20)

PPTX
Share point 2010-uiimprovements
LiquidHub
 
PPT
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
LiquidHub
 
PPTX
Managing metadata in_share_point_2010
LiquidHub
 
PPTX
Fast search for share point
LiquidHub
 
DOC
Simple Farm Server Deployment
LiquidHub
 
DOC
Pre Install Databases
LiquidHub
 
DOC
Moss 2007 Deployment Detail
LiquidHub
 
PDF
Moss 2007 Backup Strategies
LiquidHub
 
PDF
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
LiquidHub
 
RTF
Bdc Screens
LiquidHub
 
DOCX
Bdc Screens
LiquidHub
 
PDF
5060 A 01 Demonstration Steps
LiquidHub
 
PDF
5060 A 01
LiquidHub
 
DOC
Working With Infopath 2007
LiquidHub
 
PDF
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
LiquidHub
 
PDF
Overviewofthe2007 Microsoft Office System Components Refresh
LiquidHub
 
PDF
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
LiquidHub
 
PDF
Organizingand Finding Resourceswith Office Share Point Server2007
LiquidHub
 
PDF
Office Share Point Server2007 Functionaland Architectural Overview
LiquidHub
 
PDF
Office2007 Overview Express
LiquidHub
 
Share point 2010-uiimprovements
LiquidHub
 
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
LiquidHub
 
Managing metadata in_share_point_2010
LiquidHub
 
Fast search for share point
LiquidHub
 
Simple Farm Server Deployment
LiquidHub
 
Pre Install Databases
LiquidHub
 
Moss 2007 Deployment Detail
LiquidHub
 
Moss 2007 Backup Strategies
LiquidHub
 
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
LiquidHub
 
Bdc Screens
LiquidHub
 
Bdc Screens
LiquidHub
 
5060 A 01 Demonstration Steps
LiquidHub
 
5060 A 01
LiquidHub
 
Working With Infopath 2007
LiquidHub
 
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
LiquidHub
 
Overviewofthe2007 Microsoft Office System Components Refresh
LiquidHub
 
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
LiquidHub
 
Organizingand Finding Resourceswith Office Share Point Server2007
LiquidHub
 
Office Share Point Server2007 Functionaland Architectural Overview
LiquidHub
 
Office2007 Overview Express
LiquidHub
 

Recently uploaded (20)

PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 

( 16 ) Office 2007 Create An Extranet Site With Forms Authentication

  • 1. Lab 16: Create an Extranet Site Objectives After completing this lab, you will be able to: • Create an extranet site with Forms Authentication based on ASP.Net Membership and Role providers. • Modify web.config files of both Extranet and Office SharePoint 2007 Server Administration sites • Add the first Administrator user for the Extranet site using Form Authentication Prerequisites Before working on this lab, you must have: • Labs 1, 2, and 15 fully completed Scenario In this lab you will create a new site targeting your extranet audience(s). You will configure your extranet site to use Forms Authentication. Estimated time to complete this lab: 45 minutes Exercise 1 Create the Internet Web Application Create a new web application for the purpose of applying a different authentication provider. ∑ Open the Microsoft SharePoint 3.0 Central Administration site. 1. Login as Administrator and click “Start” on your desktop. 2. Select “All Programs” 3. Select “Microsoft Office Server” 4. Select “SharePoint 3.0 Central Administration” 5. Select “Application Management” 6. Click “Create or Extend Web Application”
  • 2. Lab 16: Create an Extranet Site 7. Click “Create a new Web Application” In the Create New Web Application page… 8. In the Create a new IIS Web Site section, enter the following: IIS Web Site (section): Description: <your initials> Extranet Port: Keep the default Port (Write the port number here: __________ ) Host Header: leave blank Path: C:Inetpubwwwroot<your initials>Extranet Security Configuration (section): Authentication Provider: NTLM Allow Anonymous: Keep as is (No) Use Secure Sockets Layer (SSL): Keep as is (No) Load Balanced URL (section): Keep as is Application Pool (section): Create new application pool: <your initials> ExtranetAppPool Select a security account for this application pool: click the “Configurable” radio button Name: litwareincAdministrator Password: pass@word1 Reset Internet Information Services (section): Keep as is. Database Name and Authentication (section): Database Server Name: OS Database Name: WSS_Content_<your initials> Extranet Database Authentication: Windows Authentication Search Server: OS IMPORTANT: Before Clicking Ok – please verify that all options are configured properly as indicated above. This site will be deployed to another farm in a later exercise thus the needs to use your own initials for differentiation between you and the other attendees’ site. 9. Click Ok (takes about 3 – 4 min to complete) Once completed, the “Application Created” page appears. Exercise 2 Create the Internet web application’s site Collection Create a new site collection
  • 3. Lab 16: Create an Extranet Site 3 1. In the “Application Created” page, click the “Create Site Collection” link. Make sure the Web Application is: http://os:<port number entered in step 8 of exercise 1 above> 2. In the Title and Description section enter the following: Title: <Your Initials>litware Inc. Extranet Site Description: This is the main Extranet site of the Litware Inc. fictitious company. Web Site Address section: Select Create site at this URL: (root) “/” Template Selection: Click on the “Publishing” tab and select the “Publishing Portal” template. Primary Site Collection Administrator: litwareincAdministrator (check mane to make sure it is entered correctly) Secondary Site Collection Administrator: litwareincbrianc (check mane to make sure it is entered correctly) Select a quota template: “no quota” (default). 3. Click OK 4. Click Ok again once the Top-Level site was successfully created. To test the new extranet site simply launch you browser and point it to: “http://os:<portnumber entered in step 8 of exercise 1 above”> Exercise 3 Prep the site for Form Authentication - Modify Web.Config of the Extranet site In this exercise you will modify the extranet site web.config to indicate to the web application that a new membership and role provider is available. ∑ We now need to modify web.config of the Extranet site to apply Forms Authentication. Note: The Extranet site web.config needs to be modified to allow the site to communicate to the new Memberships and Roles providers. 1. Locate the Extranet web.config file and edit it using Visual Studio. 2. Add the following 3. Click Start, Windows Explorer, navigate to the following folder C:Inetpubwwwroot<Your Initials>Extranet. 4. Right click on web.config and open with Visual Studio. 5. Insert the following lines in web.config between </configSections> and <SharePoint> tags. <connectionStrings> <remove name="LocalSqlServer" />
  • 4. Lab 16: Create an Extranet Site <add name="LocalSqlServer" connectionString="Data Source=localhost;Initial Catalog=aspnetdb;Integrated Security=True" providerName="System.Data.SqlClient"/> <add name="AspNetSqlMembershipProvider" connectionString="server=OS; database=aspnetdb; Trusted_Connection=True" /> </connectionStrings> 6. Insert the following text after the </httpHandlers> tags to add the Membership and Role provider. <!-- Start - Added by “Your Initial Here” for Forms Authentication --> <membership defaultProvider="AspNetSqlMembershipProvider"> <providers> <remove name="AspNetSqlMembershipProvider" /> <add connectionStringName="AspNetSqlMembershipProvider" passwordAttemptWindow="10" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="Extranet" requiresUniqueEmail="false" passwordFormat="Hashed" description="Stores and retrieves membership data from the Microsoft SQL Server database" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </providers> </membership> <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider"> <providers> <remove name="AspNetSqlRoleProvider" /> <add connectionStringName="LocalSqlServer" applicationName="Extranet" description="Stores and retrieves roles data from the local Microsoft SQL Server database" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </providers> </roleManager> <!-- End Added by “You Initial Here” for Forms Authentication --> 7. Save the file.
  • 5. Lab 16: Create an Extranet Site 5 Exercise 4 Modify web.config of the Central Administrator site The Central Administration site web.config will also need to be modified to allow it to select users from the newly created membership database and have them become Administrator on the Extranet site. The “Role” provider is not required and should not be use by The Central Administrator site. ∑ We now need to modify web.config of the Extranet site to apply Forms Authentication. 1. Locate the appropriate web.config file and edit it. 2. Add the following 3. Click Start, Windows Explorer, navigate to the following folder C:InetpubwwwrootwssVirtualDirectories4e4b73d4-1f9b-42f9-bd71-d931872a00c1. 4. Right click on web.config and open it up with Visual Studio. 5. Insert the following lines in web.config between </configSections> and <SharePoint> tags. <connectionStrings> <remove name="LocalSqlServer" /> <add name="LocalSqlServer" connectionString="Data Source=localhost;Initial Catalog=aspnetdb;Integrated Security=True" providerName="System.Data.SqlClient"/> </connectionStrings> 6. Add a second connection string to the access the new aspnetdb database. <add name="AspNetSqlMembershipProvider" connectionString="server=OS; database=aspnetdb; Trusted_Connection=True" /> 7. Insert the following text after the </httpHandlers> tags. Please notice that there is no Role provider required for the Administration site. <!-- Start - Added by “You Initial Here” for Forms Authentication --> <membership defaultProvider="AspNetSqlMembershipProvider"> <providers> <remove name="AspNetSqlMembershipProvider" /> <add connectionStringName="AspNetSqlMembershipProvider" passwordAttemptWindow="10" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="Extranet" requiresUniqueEmail="false" passwordFormat="Hashed" description="Stores and retrieves membership data from the Microsoft SQL Server database" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </providers> </membership> <!-- End Added by “You Initial Here” for Forms Authentication -->
  • 6. Lab 16: Create an Extranet Site 8. Save the file and close Visual Studio and Windows Explorer. 9. Perform an IISRESET Exercise 5 Configure the Extranet site for anonymous access and assign the first Administrator. Form Authentication requires that the web application has anonymous access enabled. 1. In the Central Administration. (Start, All Programs, Microsoft Office Server, SharePoint 3.0 Central Administration) 2. Select “Application Management” (in the main Central Administration site) 3. In the “Application Security” section, select “Authentication Providers” Make sure the Web Application is “OS: <portnumber entered in step 8 of exercise 1 above”>” 4. Click “Default” just below the “Zone” in the main content section. 5. In the “Authentication Type” section, select Forms 6. Locate the “Anonymous Access” section and check the “Enable anonymous access” box. 7. In the “Membership Provider Name” section, enter the following in the text box “AspNetSqlMembershipProvider”. 8. In the “Role Manager Name” section, enter the following in the text box “AspNetSqlRoleProvider”. 9. In the “Client Integration” section, select No. 10. Click Save. Once saved the Authentication Providers page should now indicate “AspNetSqlMembershipProvider” under the Membership Provider Name. 11. To assign the first administrator user to the Extranet site, click on the “Application Management” in the breadcrumb, then click “Policy for Web Application” in the “Application security” section. 12. Make sure the Web Application is set to os:<portnumber entered in step 8 of exercise 1 above> and click Add Users. 13. In the Add Users page, Select the “Default” zone and click Next 14. Click Browse in the Choose Users section 15. In the “Add People and Groups” dialog box, enter the “musera” user and click search (right hand side magnifier glass image) 16. There should be only one account name displayer – musera. Click Add and then click OK. 17. Apply “Full Control – Has full control” to the “musera” user and click Finish.
  • 7. Lab 16: Create an Extranet Site 7 You now added you first Administrator to your Extranet site! Exercise 6 Add the first user of the Form Authentication Provider In this exercise you will add the first user (from the membership provider) which will become the Administrator of the Extranet site. This user will then be able to add other users to different roles. 1. In the Central Administration. (Start, All Programs, Microsoft Office Server, SharePoint 3.0 Central Administration) under the “Application Security” section, select “Policy for Web Application”. 2. Click “Change Anonymous Access Permission Policy” link located in the left navigation. 3. In the “Anonymous User Policy” page, make sure the “Web Application” is http://os:<portnumber> 4. In the Select the Zones section, select the Default zone. 5. In the Permissions section, select Deny Write – Has no write access. 6. Click Save 7. Launch you browser and test the site access http://os:<port number> 8. In the form, enter “musera” as the user id and “pass@word1” as the password 9. Once authenticated, the home page of the extranet site will be displayed. 10. Browse the Extranet site 11. To add more users click the “Site Actions” link and add People and Groups by selecting any of the users you added in the aspnetdb membership database. 12. Close all Browser sessions Lab Completed!