Welcome to MSDN Blogs Sign in | Join | Help

What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

In Part 1 of my blog series on Alternate Access Mappings, I gave a brief introduction to the feature and an example of how it can be used.  In Part 2, I described some of the common AAM-related problems people run into when deploying SharePoint and how to avoid them.  For the final article in our series, I'll discuss how AAM integrates with some other features in SharePoint.

 

Authentication Providers

 

As I mentioned in Part 1 of this blog series, AAM allows you to expose a web application in as many as 5 different AAM zones, with a different IIS Web site backing each zone.  (As an aside, some people accidentally refer to this as having up to 5 different web applications sharing the same content database(s).  In reality, there is just one web application.)  Not only do these zones allow you to use multiple URLs to access the same web application, they allow you to use multiple authentication providers to access the same web application as well.

 

When extending a web application into a zone, SharePoint only offers you the choice of using Windows authentication provided by Internet Information Services.  Once the web application has been extended into the zone, you can modify that zone to use a different type of authentication.  To do this, browse to the SharePoint 3.0 Central Administration site and click Application Management --> Authentication providers.  Next, select your web application from the Web Application selector on the right side of the page.  Finally, select the zone that you wish to modify.  Now you change your authentication settings for that zone.

 

The power of this feature is that it allows you to configure completely independent authentication settings to access the very same content.  For example, you might configure some content to be anonymously accessible while other content requires credentials.  You could configure one zone to have anonymous access enabled and all other forms of authentication disabled, guaranteeing that only the anonymous content will be accessible.  At the same time, another zone can have anonymous access disabled while NTLM authentication is enabled, guaranteeing that only authenticated access will be allowed.  Plus, you can even have different types of accounts to access the same content - one zone can be configured to use Windows Active Directory (AD) accounts while another zone can be configured to use non-AD accounts via ASP.NET Forms authentication.

 

Web Application Policies

 

Web application policies allow administrators to grant or deny access to accounts and security groups for all sites exposed through a zone.  This can be useful for a variety of scenarios.

 

For example, the SharePoint search crawler must go through the same authorization infrastructure as everyone else - it can only crawl content that it has access to.  However, users would still like search to crawl restricted content so that authorized users can find that content in search results.  The search service uses a "Full Read" policy on the web applications to give its crawler permission to read all content on that web application.  That way, it can crawl and index all existing and future content, even content that the site administrator hasn't explicitly given it access to.

 

Another example would be help desk personnel who need administrative access to SharePoint sites so that they can assist users.  To do this, you can create a web application policy that grants the help desk staff accounts "Full Control" permission so that they have full administrative access to all current and future sites on the web application.

 

Because policies are tied to both web applications and their zones, you can ensure that the policy you've applied to one zone doesn't affect other zones.  This can be useful if you have content exposed both on the corporate network and to the Internet.  For example, suppose you've given a help desk staff account Full Control permission over a web application's zone that has been assigned to the corporate network.  If someone were to try and use that account to access the site over the Internet, that Full Control policy wouldn't apply because it would recognize that the URL is in a different zone.  Therefore, the account wouldn't automatically be given administrative access to the site.

 

External Resource Mappings

 

On the Alternate Access Mappings page, you may have noticed a button on the toolbar called "Map to External Resource."  It allows you to extend the AAM functionality to content that is not hosted within the SharePoint farm.  When you click on this button, you will be asked to create an entry for an external resource, which you could conceptually think of as another web application.  Once you have an external resource, you can assign different URLs and zones to it in the same way that you do for SharePoint web applications.  This feature isn't utilized in Windows SharePoint Services 3.0, but third party products that build on top of WSS can make use of it.

 

For example, Office SharePoint Server 2007's search technology is able to crawl content external to the SharePoint farm such as file shares and Web sites.  If that content is available at different URLs on different networks, then you would want search to return search results using the appropriate URLs for the user's current network.  By using AAM's external resource mapping technology, search can remap the external URLs in its search results to match the user's zone.

 

I hope you've found this series on AAM helpful.  As always, feel free to ask any questions via the blog comments.

 

 

Troy Starr

Published Wednesday, April 18, 2007 3:54 PM by LLiu

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Merchant Accounts » What every SharePoint administrator needs to know about Alternate …

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Nice series Troy.  As a side note I released a screencast on this topic and it can be viewed at

http://bobfox.net/spblog/Lists/Posts/Post.aspx?ID=38

Thursday, April 19, 2007 8:58 PM by Bob Fox [MVP Windows Sharepoint Services]

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Is there a way to create a default Site Collection Admins group that would be automatically added when any new Top Level Site collection is created, in addition to the Primary and Secondary that is manually keyed in?  Similar to the way the crawl account is granted Read access via the Web Policy.

Thanks!

Tuesday, April 24, 2007 4:48 PM by ABates

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Just had a brief look at this series. Very interested in your last point, since we are developing a sharepoint solution for a customer. They would like to be able to access their network file shares from within SharePoint. Please can you tell me if this is possible using AAM? If it is possible, is this something you would recommend?

Thanks

Thursday, April 26, 2007 12:04 PM by Carl

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Great series on AAM, very insightful

I am troubleshooting an issue with integrated Reporting Services that seems to be related to the AAM.  Here’s my layout (simplified)

DNS >> NLB >> Web1 or Web2

In the AAM when the Public URL for Zone is the DNS name Reporting Services calls fail with connection closed errors (see below).  If I use one of the Web front end servers for the Public URL everything works as expected.

I am unsure how the Public URL is affecting the calls to Reporting Services.  Any help or insight would be much appreciated.

An unexpected error occurred while connecting to the report server.

Verify that the report server is available and configured for SharePoint integrated mode.

 --> The underlying connection was closed: An unexpected error occurred on a receive.

   --> Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

     --> An existing connection was forcibly closed by the remote host

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

An existing connection was forcibly closed by the remote host

Thursday, April 26, 2007 1:42 PM by cvallandingham

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Hi folks -

ABates: Not unless you created an event handler that acted on a site collection creation event.  If you don't want to code, you could also grant a user "Full Control" to a web application via the web application permission policy feature, which would give it site administrator access to all sites on that web application.  It's not quite site collection administrator access, but it's close.

Carl: I'm not sure what you mean when you say "access their network file shares from within SharePoint."  Can you elaborate?

cvallandingham: I'm sorry, I'm not familiar with Reporting Services.  You might want to follow up with that team.

- Troy Starr

Thursday, April 26, 2007 10:01 PM by Troy Starr [MSFT]

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Troy,

Our customer is an educational establishment. currently staff and students have various network drives they use for file storage. (one that is only accessible to them and one that is shared between members of a year group). There are so many different files on these network drives that the customer does not want to move them  all on to sharepoint.

However, the customer does want staff and students to be able to access the school intranet (based on sharepoint) from the internet. Presumably we need to use AAM for this. Once staff and students have access from the intranet, will they be able to access their networked file storage.

We are thinking of programming a page viewer web part in file mode to pick up the user name and access the correct network path.

Hope that is clear enough (its not really that clear to me - i am taking my first few steps on a very steep learning path)

Friday, April 27, 2007 10:19 AM by Carl

# How to configure Alternate Access Mappings (AAM) successfully

To avoid many questions and simplify troubleshooting, I would suggest this order when configuring AAM,

Friday, April 27, 2007 5:51 PM by Duray Akar's Blog

# What every SharePoint and EPM administrator needs to know about Alternate Access Mappings

Thursday, June 07, 2007 4:50 PM by Christophe Fiessinger's Blog

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Troy,

Is there any way to delete a zone after it was created?

Where is zone information kept?

Thanks

Thursday, July 05, 2007 12:07 PM by Alex

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Is there a way to mask links in emails sent from one zone to another? For instance, you have a site called inside.demo.com that used windows authentication for internal employees and another site called outside.demo.com that used LDAP for external clients. In this scenarion an internal employee assigns a task to an outside client. Since the internal employee does this from the inside.demo.com site the links generated in the email will point to inside.demo.com and when the client clicks on them they will not resolve.

Is there a way to have the links in the emails generated from inside.demo.com show up as outside.demo.com when going to an external participant?

Thansk,

Joe

Wednesday, September 05, 2007 12:26 PM by jshepherd

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

is there a way to delete zone after creation?

yes

stsadm.exe -o unextendvs -url [your extended application to delete] -deleteiissites

Friday, September 07, 2007 2:48 PM by borisk

# Všetko o Alternate Access Mappings (AAM)

Troy Starr napisal velmi pekny 3-dielny serial o AAMČasť 1Časť 2Časť 3

Saturday, September 15, 2007 5:25 AM by Cvalik's blog

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Hi Troy,

After I configured the aam, when I access sharepoint document library from internet via webdav, IE pops up a dialog to ask me log in "www.contoso.com".

This even happens in intranet when accessing "http://sharepoint.dmz.contoso.com" if "http://sharepoint.dmz.contoso.com"'s zone is set to internet.

How can I avoid this?

Thanks!

Wednesday, September 19, 2007 7:56 AM by Michael

# Same url - multiple providers

Scenario:

We have to create an extranet. Both internal and external people will collaborate on this extranet. According to MOSS guidelines have created an application, extended it into the extranet zone ( with forms authentication) and intranet zone ( with windows authentication)

The issue is around the host header ( url)

The business requires that

1. we should have a single url for both of them,  and

2. based on the browser zone it should provide either forms or windows authentication.

User navigates to the site -if the browser is intranet then windows authentication should be attempted, else it should fall back to forms authentication.

MOSS doesnt provide this out of the box,

PLEASE, has anyone attempted to solve such a scenario,

PLEASE HELP

Thursday, November 15, 2007 7:35 PM by techienerd

# Troubleshooting WSS Search - EventID 2424 & 2436

Corpo: Olá pessoal, Bom, este é um artigo muito interessante ... basicamente por tratar de alguns detalhes

Monday, November 19, 2007 6:57 PM by Mirrored Blogs

# Creating a document library with AAM faile

I've been trying to get a site running on WSS3 to work behind a reverse proxy for some time now. I can get everything to almost work, but it always fails on the same specific operations.

The scenario is relatively simple - WSS3 & the reverse proxy are on the same machine. I can set up sharepoint with internal url http://machinename.domain.com:8080

The reverse proxy intercepts https://domain.com:443/

Most pages can be accessed fine on https://domain.com/ some pages always try to revert to the internal URL however. One page that I have noticed this on specifically is the creation of a new document library - other creation pages also do the same thing though. This means that they work fine internally & end up skipping the reverse proxy. Externally they stop working though as the internal URL is not accessible.

I've tried just about every possible configuration option to try & avoid this happening, including re-installing sharepoint, but the problem keeps recurring. Am I missing something in the way I am configuring things, or is there something else I need to be doing to avoid this happening?

Wednesday, January 02, 2008 7:38 AM by matthew taylor

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

I was wondering if I can restrict page content that a user has permission to based on AAM? For example, if they log in via AAM #1 then they can see webpart A and B but if they log in via AAM #2 then they only can see webpart A.

Monday, January 07, 2008 3:15 PM by Trung Tran

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Hi:

I am attempting to get AAM working and have attempted to follow all of the posts and comments here (excellent by the way) and stillno cigar.

Here is what I have:

server 1 = s1.mydomain.local (internal)

server 2 = s2.mydomian.local WSS 3

URL is static ip like 16.16.16.16

I can run everything fine locally in the lan.

Set a rule up in the Firewall to map port 447 to the internal ip of the S2 server (WSS).

Extended the web application and left the port at 80 and use the s2.mydomian.local for the host header and the 16.16.16.16 for the public url.

AAM has these entries:

Internal                 zone       public

http://s2                default    http://s2

http://s2.mydomain.local extranet

                           https://16.16.16.15

https://16.16.16.16  extranet  https://16.16.116.16

When I type the following in https://16.16.16.16:447

I get the Internet Explorer cannot display the page error.

Any ideas on what might be wrong?

Thanks

Tuesday, February 05, 2008 4:28 PM by Chuck

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

Nice tutorial helped me for one part of my task. I have to PUT somehow a web site on a different server than Sharepoint and i did that via the page viewer web part. On the intranet side it works but when i access from internet like https://www.contoso.com it is not displayed, and i can see it is searching for the intranet dns of the web server where the web site is published. I also would like to implement OWA site into the sharepoint as a user clicks on a menu link and the actual OWA is opened as iframe or with the web page viewer. This works when i am using the intranet computer but from internet doesn't show. I don't know what do i have to do to enable this, i guess it is connected with the Map to External Resource options in AAM. Any help?

Regards,

Tuesday, March 04, 2008 9:16 AM by babylonsr

# No search results for one AAM

I have a single WSS site that has Default and Intranet AAMs. After installing KB941422, only the default one gives search results. I have deleted and recreated the search index to no avail.

Thursday, March 06, 2008 1:02 PM by opensourcerer

# re: What every SharePoint administrator needs to know about Alternate Access Mappings (Part 3 of 3)

I read part 1, 2, & 3 and they are all a well of great information. Thanks. However I have a question. I think it may be considered an asymmetrical path conditiona but I need to confirm it.

My internal site url is: http://MyPortal.

The external url that i can use is https://www.mycompany.com/myportal.

Is this allowed if yes what is the right combination of checkboxes??

Right now when i try to access the external url i get the default web site.

Thank you, Alex

Wednesday, April 02, 2008 9:57 PM by Alex

# Microsoft SharePoint Products and Technologies Team Blog : What every SharePoint administrator needs to know about Alternate Access Mappings

A series of three posts regarding configuring and understanding one of the top reasons that SharePoint

Wednesday, April 09, 2008 9:15 AM by SharePoint Thinks, Links and Clinks

# re: Creating a document library with AAM faile

Hello Matthew,

I have exactly the same problem.

I'm publishing sharepoint with an https url on the default ssl port (443).

I have an internal url like:

http://server1:8002

and public url like:

https://portal.domain.com

When i try to create a new doc. library through the reverse proxy, sharepoint sends me to a link made by http + public url + internal url port (8002):

http://portal.domain.com:8002

So IE cannot find the page.

Was you able to solve it?

Sunday, April 27, 2008 5:28 AM by Giovanni

# MOSS Form Based Authentications

Wednesday, May 21, 2008 12:36 AM by Man On The Way

# Understanding extranet setup for MOSS 2007

Links: Design extranet farm topology (Office SharePoint Server) Downloadable book: Planning an Extranet

Wednesday, March 04, 2009 12:08 PM by SharePoint

# Useful Sharepoint Links

Useful Links · MOSS Video Demos (Total 14 Modules) · Before You Begin with SharePoint Server 2007 · MOSS

Tuesday, June 16, 2009 10:46 AM by a blog or 2

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker