Welcome to MSDN Blogs Sign in | Join | Help

Configuring Multiple Authentication Providers for SharePoint 2007

Hi, my name is Steve Peschka, and I’m a Lead Architect within Microsoft Enterprise Services specializing in SharePoint-based solutions. I’m part of a team known internally as the "SharePoint Rangers," and we’re usually "where the buck stops" when it comes to helping customers implement SharePoint. Since the topic of configuring multiple authentication providers for SharePoint 2007 (our nickname for the combination of Windows SharePoint Services V3 and Office SharePoint Server 2007) has become an FAQ via this blog as well as in public and private newsgroups, I’m posting our answer here for all to see.

 

Windows SharePoint Services (WSS) V3 contains several new features around authentication and authorization that make it easier to develop and deploy solutions in Internet facing environments, especially extranets.  In the previous version of WSS, all security principals needed to resolve at some point to a Windows identity – either a user account or group.  WSS V3 is built upon the ASP.NET 2.0 Framework, which allows the use of forms-based authentication (FBA) to authenticate users into the system.  By riding on top of ASP.NET 2.0’s pluggable authentication provider model, you can now support users stored in Active Directory as well as SQL Server, an LDAP directory, or any other directory that has an ASP.NET 2.0 Membership provider.  Although WSS V3 will not ship with any Membership providers, Microsoft Office SharePoint Server (MOSS) 2007 will include an LDAP V3 Membership provider, and ASP.NET 2.0 includes a SQL Server provider. But if you want to use a directory and can’t find a Membership provider for it, you can write your own!  This is a key technology enabler for heterogeneous environments.

 

In a typical extranet environment, content will have two points of access: one on the intranet for employee use and the other on the extranet, where trusted partners can access specific sites, lists and libraries or individual items.  Listed below are the WSS V3 features that support this scenario -- some are new while others are just terminology changes: 

·         Web Application: A web application is what was called a virtual server in the previous version of SharePoint.  A single web application only supports a single authentication provider, such as Windows, Forms, etc.

·         Zones: A zone is a way to map multiple web applications to a single set of content databases.  It is also can be a division of authentication providers.  For example, you can create a new web application, create a content database and configure it to use Windows authentication.  You can then create a second web application and map it to the first.  When you do that you need to assign a zone with which the second web application is associated, such as Intranet, Internet, Custom, or Extranet.  The second web application can also use a completely different authentication mechanism, such as forms.

·         Policies: A policy is useful in a number of different scenarios, including configuring a web application for forms authentication.  It allows you to create policies to grant full access, read only access, deny write access or deny all access to a user or group on a web application.  This policy grant applies to all sites in the web application, and it overrides any permissions established within individual sites, lists or items.

·         Alternate Access Mappings: In the previous version of SharePoint, it wasn’t as important in an extranet scenario to create an alternate access mapping (AAM) because SharePoint would look to IIS to get some of that information.  In WSS V3, it’s imperative to use AAM or things just flat out won’t work.  AAM is a way to define the different URL namespaces that are associated with a set of content databases.  It effectively manages the zones relationship described above.

·         Authentication Providers: So far I’ve described how WSS V3 uses the ASP.NET 2.0 pluggable authentication provider model using the Membership provider interface.  As well, SharePoint also supports the Role provider interface, which enables you to surface attributes, such as group membership, about your users as well.

 

At a high level, creating an extranet solution in WSS V3 requires you to do the following steps.  I’ll walk through them briefly and then dive into more detail below.  Since MOSS 2007 is built on top of WSS V3, all of the information below applies to MOSS as well. For this scenario, assume that you want to have an intranet style site used internally by your corporate users.  They are all joined to your corporate Active Directory.  In addition, you have a number of trusted partners to which you wish to give access via the Internet.  Note that in this scenario I will not be touching on any aspects of securing your site with firewalls, proxy servers, segmented networks, DMZ Active Directory designs, security best practices around farm configuration, etc. You can read all about that in Joel’s recent blog entry here: http://blogs.msdn.com/sharepoint/archive/2006/08/08/691540.aspx.

 

The process you would go through to build out such a site would be as follows.

  1. After installing WSS V3 (or MOSS 2007) and having configured all of the services and servers in the farm, create a new web application.  By default this will be configured to use Windows authentication and will be the entry point through which your intranet users will access the site. We’ll refer to this site as http://intranet.  Next, create a second web application.  When you create the web application, select the option to Extend an existing Web Application.  When you create your second web application, map it to the Extranet zone.  Give it a Host Header name that you will configure in DNS for your extranet users to resolve against.  We’ll refer to this site as http://extranet.contoso.com.
  2. If you haven’t created and populated your directory of FBA users who will be accessing the site via the extranet, then you should do so at this time.  For this scenario we’ll assume that you are using FBA with the SQL Server Membership and Role providers that are included with ASP.NET 2.0.
  3. Manually modify the web.config for the extranet site and add in the information about your Membership and Role provider (the Role provider is technically optional, but most implementations will use it).  Add this same information into the web.config for the Central Administration site.  Save both config files and do an IISRESET.
  4. In the Central Admin site, go to the Application Management page and select the Policy for Web Application link.  Add a user from your SQL Server directory to the Extranet zone for your web application.  You should be able to type in the user name and resolve it, or use the People Picker dialog to search and find the user name.  If everything is configured correctly then SharePoint will be able to resolve the user name you add.  Give the user account Full access to the web application.
  5. Navigate to the site using either entry point -- Windows or Forms-based authentication.  If you use FBA, then you will need to sign in with the credentials of the user that was granted full access rights via policy.  After you navigate to the site, go into Site Settings, People and Groups.  From there you can add both Windows and forms users and groups to SharePoint Site Groups.  Your users should now be able to access the site.

Now let’s look at some of the above steps in more detail.  Creating the web applications should be fairly straightforward using Central Administration, so I won't spend any time on that.  The key takeaway here is that when you create the second web application, you need to make sure that you select the option to Extend an existing Web Application and map it to the Extranet zone.  Also remember to give it a Host Header name that is in your external DNS – this is the URL that external users will use to access the site via the Internet.

 

Next, you need to create the aspnetdb database used for storing membership and role information if you don’t have one already set up.  To create the database, do the following:

  1. Open a command prompt and change to the .NET Framework directory (by default, it's C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727).
  2. Run the following command: aspnet_regsql -A all –E
  3. This will create the aspnetdb database on the local SQL Server.  If you wish to install it on a different server, then run aspnet_regsql /? to determine the appropriate switch to use. 

If you are creating your SQL Server provider database for the first time you will also need to create one or more users and optionally, one or more roles.  These will be the security principals that you add to the Policy for the extranet web application as well as the SharePoint Site Groups.  There are multiple ways to do this and a quick search on the web will highlight some of those tools and methods.  That’s a bit out of scope for this already lengthy blog, so I'll continue on and assume that you’ve already created the users and roles for your SharePoint site.

 

Now we have our web applications as well as users and roles created in SQL Server, so we need to configure the web.config for the extranet and Central Administration web applications.  The first step is to look for a connectionStrings element; if it doesn’t exist then you can add it below the </SharePoint> and above the <system.web> elements.  The new element should look like the following:

<add name="AspNetSqlProvider" connectionString="server=yourSqlServerName; database=aspnetdb; Trusted_Connection=True" />

 

You’ll want to take note of the name attribute above, because you will use that attribute name when configuring the Membership and Role providers.  Add that information as follows:

  1. Open the web.config file for your extranet web application in a text editor such as Notepad.
  2. Add your connectionString element described above as the last item in the connectionStrings section in the web.config file.
  3. Add the Membership and Role configuration information to the web.config file.  It must be added below the <system.web> element and should look like the following:

    <membership defaultProvider="AspNetSqlMembershipProvider">

      <providers>

        <remove name="AspNetSqlMembershipProvider" />

        <add connectionStringName="AspNetSqlProvider" passwordAttemptWindow="10" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" 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="AspNetSqlProvider" applicationName="/" 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>

  1. Save and close the web.config file.

The name attributes of the Membership and Role providers are highlighted above.  You need to note what these names are because you will enter them in Central Administration when you configure FBA for the site.

 

You also need to make the same exact changes to the web.config for the Central Administration site, with one minor exception.  The roleManager element for the extranet web application looks like the following:

<roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">

 

You need to change this line to read as follows:

<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider">

 

This change is necessary because the Central Administration site still uses Windows authentication for the role provider -- that’s why the AspNetWindowsTokenRoleProvider is set as the default provider.

 

Now you need to configure the Authentication provider for the extranet web application to use FBA.  Open your browser and navigate to your farm’s Central Administration site, click on Application Management and then on Authentication Providers.  Make sure that you are working on the web application for which you wish to enable FBA.  (If the correct application is not already pre-selected, click the Change button in the upper right hand corner of the page to select the application.)

 

You should see a list of two zones that are mapped for this web application; both should say Windows.  Click on the link that says Windows for the web application in the Extranet zone and do the following:

  1. In the Authentication Type section, click on the Forms radio button.  The page will post back and expose two new edit boxes.
  2. In the Membership provider name edit box, type in the name of your web application’s Membership provider for the current zone.  That is the value that was highlighted in the defaultProvider attribute of the Membership element above.
  3. In the Role manager name edit box, type in the name of your web application’s Role provider.  That is the value that was highlighted in the defaultProvider attribute of the roleManager element above.
  4. Click the Save button. 

Your extranet web application is now configured to use FBA.  However, until users, who will be accessing the site via FBA, are given permissions for the site, it will be inaccessible to them.  To do this, you could go directly to the default zone (i.e. http://intranet) of the site, login with your Windows credentials, and add the FBA users.  However, I'll describe an alternative approach because it's the one that you are most likely to use if you ever configure an application that only has one web application, which uses FBA.

 

To get started, open your browser and navigate to your farm’s Central Administration site.  Click on Application Management and then click on Policy for Web Application.  Make sure that you are working on the extranet web application.  Do the following steps:

  1. Click on Add Users.
  2. In the Zones drop down, select the appropriate Extranet zone.  IMPORTANT: If you select the incorrect zone, you may not be able to resolve user names. Hence, the zone you select must match the zone of the web application that is configured to use FBA.
  3. Click the Next button.
  4. In the Users edit box, type the name of the FBA user whom you wish to have full control for the site.
  5. Click the Resolve link next to the Users edit box.  If the web application's FBA information has been configured correctly, the name will resolve and become underlined.
  6. Check the Full Control checkbox.
  7. Click the Finish button.

That’s it -- that’s all of the configuration needed!  You can now navigate to either web application: http://intranet or http://extranet.contoso.com.  Irrespective of which entry point you use, you can add, search and resolve both Windows and FBA users and groups and add them to SharePoint Site Groups.  The People Picker is smart enough to know about all of the web applications that are mapped to the site and will try all of the authentication providers that those applications use.

 

Lastly, there are two other things for you to remember: 

  1. Resolving group names: The People Picker can only do wildcard searches for Windows group names.  If you have a SQL Role provider group called "Readers" and enter "Read" in the People Picker search dialog, it will not find your group; if you enter "Readers" it will.  This is not a bug -- the Role provider just doesn’t provide a good way to do wildcard group searching.
  2. Use Policies sparingly: The concept described above for adding a user or group via the web application Policy should only be used to provide a way for an FBA administrator to access the site.  Policies are very coarsely grained compared to the fine grain permissions that can be configured and granted within individual sites, lists and items.  Once you’ve added your site administrator via Policy, all other users and groups should be added from within the site itself.

Admittedly, there are many steps involved in configuring multiple authentication providers for SharePoint, but I hope that by having read this blog entry, you now understand the reasoning behind each of the steps involved and are in a better position to implement or troubleshoot this particular SharePoint configuration.

 

 

Steve Peschka

Published Wednesday, August 16, 2006 4:37 AM by LLiu
Filed under: ,

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

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Great stuff Steve, thanks.
Wednesday, August 16, 2006 1:59 AM by Arno Nel

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Great piece. I've done a slightly more basic walk through as well with a few screen shots which may be of use:

http://weblog.vb-tech.com/nick/archive/2006/06/14/1617.aspx
Wednesday, August 16, 2006 5:33 AM by Nick Swan

# Mehrere Authentication Provider in SharePoint 2007 konfigurieren

Steve Peschka vom Microsoft SharePoint Team beschreibt in seinem Weblogbeitrag Configuring Multiple Authentication...
Wednesday, August 16, 2006 5:45 AM by SharePoint, SharePoint and stuff

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Thanks dude, this article will certainly be very useful in our real world scenarios.
Wednesday, August 16, 2006 8:10 AM by Alex Silva

# re: Configuring Multiple Authentication Providers for SharePoint 2007

This is all fine, but, I can't to seem to find an answer to my question. I have a site on the extranet only. I want anyone who wants to to access the site as a reader. I also want to give access to additional folks based on a login. I have been unable to get this to work(I can get it to accept logged in users). Is this scenario even possible?
Wednesday, August 16, 2006 2:32 PM by Scott Williams

# Configuring Multiple Authentication Providers for SharePoint 2007 (Via Product Team)

The Microsoft SharePoint Product Team Blog is busy again.&amp;nbsp;Check out Steve Peschka's Blog Post Entitled:&amp;nbsp;Configuring...
Wednesday, August 16, 2006 3:14 PM by The Boiler Room - Mark Kruger, SharePoint MVP

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I have a question regarding anonymous access to the extranet.   I have a webpart that gets the items in a list and displays them.  No problem when I view through the Intranet, but the list isn't available through the extranet.  The SPWeb.Lists.Count returns zero.  Any idea how I can get a list in a site using FBA with anonymous access enabled?  Thanks.
Wednesday, August 16, 2006 3:17 PM by JMN

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Thank you!

Can anyone add any additional examples / suggestions for using the newest version of ADAM as an ASP.net 2.0 membership provider?
Wednesday, August 16, 2006 6:10 PM by Richard Brown

# re: Configuring Multiple Authentication Providers for SharePoint 2007

It's a comprehensive article about using for extranet, but I have a big issue both os WSS 2 & 3, a typical istallation of wss, but can not logon from the internet! I discovered that this issue occured when we try to logon from any ISPs that uses Linux based proxy for gateway, when we click on the Sign In, a message : access denied, any idea about resolving this issue?
Wednesday, August 16, 2006 6:15 PM by Farvashan

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Scott.  RE: "I have a site on the extranet only. I want anyone who wants to to access the site as a reader. I also want to give access to additional folks based on a login. I have been unable to get this to work(I can get it to accept logged in users)"

It sounds as though you may not have anonymous access configured correctly, because your scenario is doable.  Make sure you turn it on for the web app (in central admin, app mgmt, authorization) and at the Site Settings level for your site collection (Advanced Permissions).

Steve
Thursday, August 17, 2006 10:22 AM by pBoy

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi JMN.  RE: "I have a webpart that gets the items in a list and displays them.  No problem when I view through the Intranet, but the list isn't available through the extranet.  The SPWeb.Lists.Count returns zero.  Any idea how I can get a list in a site using FBA with anonymous access enabled?"

See my previous answer to Scott.  You can do this either by enabling read access for anonymous users to your entire site, or by enabling access only for lists and libraries.  If you choose the latter approach you have to break perms inheritance at the list or library level for each one anonymous users will access, then you can grant them rights.  In addition they will only be able to navigate to a forms page for displaying that list info.  So if you want them to have access to pages throughout the site including lists, you need to grant read access to the entire site.
Thursday, August 17, 2006 10:24 AM by pBoy

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Just wanted tothank you. I have it up and working. Now all(sic) I have to do is set this rest of the site. Should be a piece-o-cake compared to what I have done so far

scott
Thursday, August 17, 2006 1:08 PM by RedRiver

# 2007 MOSS Resource Links (Microsoft Office SharePoint Server)

Here is an assortment of various 2007 Microsoft Office SharePoint Server Documentation / Reference Materials...
Thursday, August 17, 2006 5:53 PM by The Boiler Room - Mark Kruger, SharePoint MVP

# re: Configuring Multiple Authentication Providers for SharePoint 2007

How do i configure search for a site using customsqlprovider on  WSS v3?

We dont seem to be getting any hits on the site that uses sql provider. The search account cant be given access to the site since it is a local windows account, and the site uses form based auth!

Do we need to do as in steves example in this article and set up a windows auth site that uses the same content db? Will customsqlroleprovider rights still trim the search result then?

Or can the search account be set up to be a customsqlmembershipprovider user?

thanx for a great article!
Anders
Friday, August 18, 2006 9:14 AM by Anders Rask

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Anders.  RE: setting up search on a forms auth site, the search crawler *only* understands Windows authentication.  So if you want your forms auth site to be crawled by the MOSS search engine then you must map and extend another web application using Windows auth (as you suggest above).  Then you can grant only your crawler account access to the content in the site.  As a side note, I believe there is a bug in beta 2 that prevents the crawls from completing successfully in this configuration.

Steve
Friday, August 18, 2006 6:06 PM by Steve

# TechNet TechCenter for Office SharePoint Server has launched

&amp;nbsp;&amp;nbsp; The TechNet TechCenters are home to content that helps IT Professionals evaluate, plan,...
Wednesday, August 23, 2006 4:24 AM by Microsoft SharePoint Products and Technologies Team Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

One important question we have gotten on multiple authentication providers is, how can I send a link to a site to someone who accesses it through a different URL?  Will they be prompted to switch URLs, or will they get login error, or will it automatically direct them to the correct URL?  This is very important, as the requirement to use different URLs for different providers will otherwise be a showstopper for a lot of organizations.  
Monday, August 28, 2006 1:50 PM by david_tappan

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Thanks for the reply.  

I have enabled anonymous access everywhere it can be set, but I am still unable to access a list via the API when the user is anonymous.   Has anyone been able to do this?  I've tried different attempts at impersonation through code as well, but no luck.  I'd like to iterate through a list and retrieve the values in a web part.  

Monday, August 28, 2006 2:41 PM by JMN

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi,
Do you know about any way to use multiple form based authentication methods (e.g: SQL and Ldap) for the same application and zone.

I need this to make it easy for this users to share the same portal and site collection.

Do I really have to extend an application? If so, can a zone be renamed?

Jonathan
Thursday, August 31, 2006 5:43 AM by Jontathan

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Regarding searching with MOSS and a forms based auth, can someone clarify for me?
  a.  That this won't work right now even if we setup a separate site due to a bug in Beta2?
  b.  Does anyone know if this bug is fixed in Beta2TR that is coming soon?
  c.  Can you use the built in web parts of the forms auth site for search using this configuration?

Thanks, Dave
Sunday, September 03, 2006 9:45 AM by Dave

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve, I've configured everything as you describe and it works great. Thanks for the high quality write-up. I do have one issue though that i believe should be working but I'm not sure what I'm doing wrong. Any thoughts you have would be much appreciated.

I've configured our site for multi-lingual so I have variations turned on. When I created the variations, I did this under the default zone using windows authentication. Under windows auth, it works great and the variationroot.aspx takes me to the right sites. When I access the same site using forms based, the variationroot redirects me to the windows url. If I try to go to a variation site directly logged in under forms I get "Object reference not set to an instance of an object." it seems as if variationroot (the redirect page) isn't handling the multiple web apps (zones) properly and that the variation sites themselves aren't either.

Any help would be appreciated. Thanks in advance,

Peter
Tuesday, September 05, 2006 10:12 AM by Peter

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi JMN.  If you're not able to enumerate a list when hitting the site as an anonymous user than chances are that you are accessing some part of the Object Model that is doing some level of enumeration, and is trying to read from a list to which anonymous users do not have access.  I would look at the new RunWithElevatedPrivileges method to work around this.

Steve
Tuesday, September 05, 2006 6:02 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi david_tappan.  RE: your question, there isn't any sort of link conversion that we will do for your scenario. So if you set up two different web applications, they will have different Urls.  Each Url is going to be using a different membership provider so your emails with links should be directed based on the users associated with a particular web app.  For example, send one email to all Windows users with a link to the Windows auth site, one email to all Forms auth users with a link to the Forms auth site, etc.  Or some other combination, but the gist is there is no magic we do to take one Url and depending upon whom you are, redirect you to some other web application's Url.

Steve
Tuesday, September 05, 2006 6:32 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Jonathan.  You cannot use multiple providers in a single zone.  You can map multiple providers to a single set of content databases so they share the same information in the site collection, but they will access it via different Urls.  You would just create multiple web applications as described in this blog.

Steve
Tuesday, September 05, 2006 6:34 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Dave.  RE: searching in MOSS...this is broken with forms auth in Beta 2.  I have not been able to try it yet in Beta 2 Tech Refresh, but my understanding is that it will still be broken then.  As I said however, I have not had a chance to verify that.  You CAN use the built in web parts in a forms auth site for searching when everything is all working.

Steve
Tuesday, September 05, 2006 6:36 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve, I was curious if it is possible to use the forms based login and still use Windows authentication on the form. I thought maybe it would do this by default when switching to Forms based  but not sure what values to put in for the roles to keep it looking to AD for authentication. Any help would be appreciated.

Donny
Wednesday, September 06, 2006 11:51 AM by Donny

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Donny.  When you configure a web application to use forms authentication, there is not anything we can do to map a user that is logged on that way, to a Windows user.  So you can use FBA for a Windows user with the LDAP provider and Active Directory, for example, so that a person can put in their normal Windows login and password.  But that forms auth user is considered a different entity from a Windows auth user.  This means that even if created two web apps that use the same content databases (by extending a second web app as described in this blog), a Windows user and a forms user that logs in with the same set of Windows credentials is still considered to be two different principals.  Hopefully this makes sense.

Steve
Thursday, September 07, 2006 12:05 AM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Peter.  I believe you are probably hitting a beta 2 bug.  I just tried it on Beta 2 Technical Refresh and it worked fine.  Just as an FYI, if you ever find that the Variations redirection logic is not working sufficiently for you, then you can change it.  If you look on the file system in the 12/template/controltemplates directory you will find a file called VariationsRootLanding.ascx.  It has the redirection logic inline.  The preferred method would be to not change the out of the box template of course, so you can copy it and make changes as needed.  Then you can either update the existing Page Layout template (VariationRootPageLayout.aspx) for the variations redirection page (in the Variation root site, in the Pages library, and is called VariationRoot.aspx).

Hope that makes sense.

Steve
Thursday, September 07, 2006 10:29 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Steve, such a great article

I did everything as in this article however when I open the Extranet site, it displayed the login form, not automatically access the site as anonymous. The 2nd problem is that when I put in the admin account (from aspnetdb), it is successfully validated (correct username & pwd) but then it returned the HTTP 403 error (forbidden error).
I double checked what I configured:
- Extranet site allowed anonymous access to entire site
- Authentication provider correctly set
- Web.config of both extranet site & central admin site modified
- admin account (from aspnetdb) added to policy & site admin

What do I need to check here?

Thanks a lot,
Friday, September 08, 2006 11:26 AM by jet

# MOSSIG Looking Schweet!

Timmah pinged me about the new look MOSSIG website. For those who don't know about MOSSIG, it's a local...
Sunday, September 10, 2006 9:22 PM by David L's Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi jet.  As far as anonymous access, remember that in addition to allowing it at the web application level, you also need to go into each Site Collection and configure what level of anonymous access you want to allow in there.  By default there is no access for anonymous users.  Look in Site Settings, People and Groups, Site Permissions, Anonymous Access to control this setting.

As far as the 403 error, I haven't seen that one before but I would verify that the app pool account for your web application has rights to all the tables and stored procedures in the aspnetdb database.

Steve
Wednesday, September 13, 2006 5:40 PM by pBoy

# Antwoord op de vraag: Wat is een zone

Thursday, September 14, 2006 4:25 AM by Microsoft Enterprise Solutions Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I have tried to login. I have done all the settings as required. But, i am able to add users as sitecollection administrators. It accepts but when i supply the user name and password, The system says that unknown error occurred. I have configured web.config files as desired.

I am using virtual pc environment, the sql 2005 is installed using windows authentication i think. But even then it should work with sqlexpress rite, because it accepts the username that i have created as site collection administrators but it could not authenticate properly. I could not figure out the problem.

When i tried to enter data in sqlexpress MY Website Administration tool is not working. So i have used it in my desktop environment and i copied the data one by one to my virual pc environment.

please do help me out.

Regards,
Diwakaran. N.S
Wednesday, September 20, 2006 2:42 AM by Diwakaran

# Customer &amp; Partner Extranets on MOSS

At a customer event today, I spoke about the benefits of MOSS 2007 for creating customer and partner
Wednesday, September 20, 2006 3:52 AM by MOSSchampions

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve,

I am having the same issue as jet. I always get redirected to the Login.aspx page when coming in through the Extranet Zone even though that site has "Anonymous users can access: Entire Web site". The site collection is also set up this way on the Intranet side (Default Zone). On the Intranet entry point, Anonymous browsing works, and a small "Sign in" link appears on the upper right side as expected. Allow anonymous is also set back under both zones under the two providers. I am running Beta 2 Technology Refresh. Is this a bug, or what am I missing?
Thursday, September 21, 2006 10:51 AM by Roy Ogborn

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Roy.  I just heard today that there is a bug in Beta 2 Tech Refresh that prevents anonymous working correctly with forms authentication.  It is already fixed in post TR builds so it will be okay at release, but it is broken for now.  Sorry.

Steve
Friday, September 22, 2006 2:37 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve,

I am curious of how this model fits in with Windows Live ID aka Passport.

How do you recommend implementing a Single sign-on solution with MOSS?  does MOSS have a built in provider for Passport?
Monday, September 25, 2006 1:50 PM by Jack G

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Great work!! I'm a teacher that is trying to put together a sharepoint site for us to do collaboration in. I followed your directions to resolve the issue with needing windows domain accounts for all users. I have two large questions for you.

One, how can users change their password from within sharepoint?

Two, how can I add users to the sql database?
Tuesday, September 26, 2006 6:45 PM by Jeff Merithew

# Registration WebPart for Forms Authentication SharePoint 2007 sites

Wednesday, September 27, 2006 7:55 AM by VB-tech weblog

# Abilitare la Form-based Authentication in SharePoint 2007

Nell'ambito di un nuovo progetto SharePoint 2007 su cui sto lavorando, mi sono trovato davanti alla necessit&#224;...
Saturday, September 30, 2006 10:13 AM by Igor Macori

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Great article. I had a question about FBA and user access to the site. What I need is a sort of "authenticated users" behavior, where a user has to log in, but does not need to be explicitly added to the site in order to have a certain access level. I say this because I'm trying to set up an internet facing site that fronts some applications that use FBA, which everyone needs access to, but everyone needs to authenticate against the user store first. Is this possible?
Thursday, October 05, 2006 3:05 AM by Jack

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve, Have you recieved any more info regarding the post TR bug fix for anonymous access with forms authentication? Will a fix be available before the RTM? Can you think of any possible workarounds until then? Thanks.
Thursday, October 05, 2006 7:59 PM by Larry C. Collins

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Everything is working fine, BUT!

I build a BDC on the aspnetdb and configured a import connection in Sharepoint 2007 with this BDC.

when i then try to configure an import profile i am not able to choose a import connection as descriped in the Sharepoint Help.

There is just a link 'view import connection' instead of a list of configured connections.

This is a real Killer.

Does anybody know if this Feature :) will be fixed in Release Candidate???

Ronny

Friday, October 06, 2006 8:06 AM by Classgenerator

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve, First, please let me add my voice to those who need to get Anonymous Access to Forms Authentication sites enabled. This has been a real problem for us. Second, I'm trying to publish an ASP.NET page with code to a Doc Library as decribed here: http://www.bluedoglimited.com/SharePointThoughts/ViewPost.aspx?ID=242. It worked fine in pre-TR Beta2. However, with TR every time I try to add a PageParserPath element to the web.config such as I always see the following error when I try to open the site: An error occurred during the compilation of the requested file, or one of its dependencies. 'pages_default_aspx' cannot inherit from class 'TemplateRedirectionPage' because 'TemplateRedirectionPage' is declared 'NotInheritable'. Is there any way to include ASP.NET 2.0 control event handlers in TR? Will this problem be fixed in RTM? Thanks for all your help. Ron
Friday, October 06, 2006 5:01 PM by Ron Rohlfs

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I'm trying to configure form-based authentication in Sharepoint 2007. I need to use ActiveDirectoryMembershipProvider because I use active directory for all - external and internal accounts. I've followed steps in this article but with changes described here in step 2 of "Using ActiveDirectoryMembershipProvider": http://channel9.msdn.com/wiki/default.aspx/Channel9.HowToUseMembership Unfortunately I'm not able to logon with form-based authentication. Even if I fill logon form with administrator's credential I receive message: "The server could not sign you in. Make sure your user name and password are correct, and then try again " Besides, when I try to add user in Central Administration in "Policy for Web Application" and I try to choose "External zone", I write user name (for example administrator's name) but it doesn't recognize him. It works only when I choose "Default zone" or "All zones". Where the problem can be?
Tuesday, October 10, 2006 4:34 AM by sylwia

# MSDN Webcast Follow-up: MOSS WCM for Site Administrators and Owners

MSDN Webcast Follow-up: MOSS WCM for Site Administrators and Owners

Wednesday, October 11, 2006 11:25 AM by Andrew Connell [MVP MCMS]

# Forms Authentication, Search, and Anonymous in WSS/MOSS 2007

We have encountered many issues while trying to use a CustomMembershipProvider and CustomRoleProvider...

Wednesday, October 11, 2006 7:47 PM by Nathan and Rajiv's Dev Center

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Re: Search

I am trying to use a Forms CustomAuthenticationProvider with WSS 2007 B2TR and search still seems to be broken.  I have also been unable to extend a web application to support forms and windows auth for the workaround suggested above.  Can someone please confirm whether this is still an issue in B2TR?

For all of you with Anonymous issues in forms, we got it to work after jumping through several hoops.  I've added it to my blog and it covers the following topics:

ISSUE #1: Unknown Error in Central Admin working with Forms Authentication

ISSUE #2: Can't create a new website or Site Collection in Central Admin while using Forms Authentication

ISSUE #3: Can't allow Anonymous Users under Forms Authentication

Too much info to put here

Wednesday, October 11, 2006 7:57 PM by Nathan

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Steve

I am using MOSS 2007 Beta 2.

I followed the article and was able to configure web site for multiple authentication.

Windows authentication works just fine. When I visit the extranet URL it asks for form authentication. After providing credentials it pops up windows authentication box. If I cancel it then I get the following error.

401 UNAUTHORIZED

If I provide credentials in windows authentication then I get the screen saying

"

You are currently signed in as:  SRV\Administrator

Sign in as a different user

"

Did I miss anything during configuration or is it a bug?

Any help would be highly appreciated.

Regards

Amit

Thursday, October 12, 2006 2:00 PM by Amit

# Form Based Authentication

Gerade habe ich mich ein wenig mit der Form Based Authentication (FBA) beschäftigt. Die Konfiguration...

Friday, October 13, 2006 12:22 PM by Olaf's Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Thanks a ton! I couldn't get it working when i upgraded MOSS 2007 Beta with B2TR. BUt when i did a fresh install, i could get this working sweet. Thanks Steve!

Wednesday, October 18, 2006 5:21 PM by Vinod

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Being said that it's working great, i have couple of other things to be addressed

1. I am trying to import the users from aspnetdb to my user profile db. I have the web app assigned to an SSP? Now how to do an import from aspnetdb? Any links or samples would be greatly appreciated.

2. I have created seperate web app for each of my customer but i  want to store the users of each customer in a seperate database. But i have only one aspnetdb. How to go about it?

I would appreciate any early reply on this.

Thanks once again Steve!

Thursday, October 19, 2006 11:33 AM by Vinod

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Does anyone know how the Profile database works in this scenario?  For example, we have two sites, each with different authentication approaches, pointing to the same content.  On each site, it would be good if the people search picked up all users, and redirected them to their My Site.  I have seen that the Accountname field in the SharePoint profile database is mandatory, but it appears as though it could be mapped to a BDC entry.  I can't quite see how this would work though when in some situations you are importing users from AD into the profile database, and in others you are importing from the membership database.

Friday, October 20, 2006 8:33 PM by AlanC

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Jack G.  Regarding Passport, we don't provide a Membership provider for it out of the box, so you would need to write your own if you wanted to do that.  Sorry.

Saturday, October 21, 2006 6:13 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Jeff Merithew.  There aren't any tools in SharePoint do change the password for a member.  You could add a page to your site to do that and incorporate it a number of ways (custom page in the Pages library, page viewer web part to a remote web site, etc.).  As far as adding users to SQL you would want to look for tools (there are many on the internet if you searchy for them) to add users using the ASP.NET 2.0 Membership Provider.

Steve

Saturday, October 21, 2006 6:15 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Jack.  I'm not sure I understand your scenario about needing to authenticate users first, but that everyone would have access to info in the site.  Perhaps some more details would help me to understand why just using FBA with all users in Visitor's site group is not sufficient for your scenario.

Steve

Saturday, October 21, 2006 6:17 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Larry Collins, there will not be another public build of SharePoint available prior to RTM to resolve the FBA anonymous user issue - sorry.

Steve

Saturday, October 21, 2006 6:18 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Classgenerator.  I'm not entirely sure I understand the issue you are describing, but remember the profile imports can only be done for Windows users.  If you have only a FBA site then you will need to create your profiles manually or write a tool to automate it.

Steve

Saturday, October 21, 2006 6:20 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Ron Rohlfs.  I'm familiar with what you are tryng to accomplish in terms of executing code pages because I wrote that blog posting as well.  : -)  

The specific error you reference I have seen once recently but haven't had a chance to follow up to see where we're at in terms of fixing it.  I can't make promises but I would expect to see this fixed at RTM.  Part of the issue is related to the site template that you used, so you can try with something different (like a Team Site template) and it should work.

Also, I'm not really sure what you mean by including ASP.NET 2.0 control event handlers.  The events that will fire will depend on the base class you are using, and your page layout will determine where you can place controls vs. web parts.  But you should be able to fire code in any standard event for a control or web part.

Steve

Saturday, October 21, 2006 6:25 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Sylvia.  All Zones only works for Windows accounts, so if you are trying to resolve users in there you won't be resolving against your FBA users.  It's kind of tough sometimes, but when in doubt I run a netmon sniff when I'm trying to login.  That's one of the best tools I've found so far for resolving these kinds of issues.

Steve

Saturday, October 21, 2006 6:27 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Amit.  If you're getting a Windows prompt then there is something that is configured incorrectly.  It could be the virtual server is using Kerberos instead of NTLM and Kerberos isn't configured correctly, or the site is still using Windows auth, or the database connectivity is broken (maybe SQL is down or more likely the app pool account is shutout, locked out, or the password has changed).

Also, if it says you are "domain\user" but you don't have access, make sure you have a policy configured for the correct zone to give access rights to your user.

Steve

Saturday, October 21, 2006 6:30 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Vinod.  You need to create user profiles manually or programmatically for FBA users.  We only do imports out of the box for Windows users.  As far as storing users in a different database, you should be able to do this and just configure different connection strings in the web.config for each database you want to use.

Steve

Saturday, October 21, 2006 6:32 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi AlanC.  You will need to import users manually or programmatically for FBA users.

Steve

Saturday, October 21, 2006 6:32 PM by Steve

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I am currently creating a extranet environment for our clients. We want to create an environment with a split back to back topology. We want the web front end in our DMZ and the SQL server in our internal network. We have a domain controler internal and in the DMZ. We were going to use SQL authentication between the two servers because we only have a one way trust where the dmz trusts the internal network. I'm being told at this time that MOSS 2007 TR does not support this type of setup. Has anyone tried this yet or has anyone read any good blogs or articles about this same sort of situation.

Rich

Tuesday, October 24, 2006 9:36 AM by rkoneval

# Dual Authentication Providers

Andrew Connell published a new practical how-to article describing key steps required for Dual Authentication...

Wednesday, October 25, 2006 10:26 AM by Edwin Hakopian's blog

# Integrating MOSS 2007 with Community Server - Part 2

After reading SharePoint Team blog post on Form Authenticationcarefully, I realise that Role Provider

Wednesday, October 25, 2006 11:39 AM by Kit Kai's Tech Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

How to create one user and one role in the SQL Server provider database ? Any good (easy) tutorial ?

Thanks in advance

Friday, October 27, 2006 8:11 AM by ayk

# re: Configuring Multiple Authentication Providers for SharePoint 2007

It's ok for the creation of users, I've used Visual Studio (create a website, use the solution explorer to choose the database - login with sa:you administrator password)

Another question :

Where is the Central Administration web.config stored by default ?

Friday, October 27, 2006 9:10 AM by ayk

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve,

My goal is to allow any user added to the user store to automatically have access to the site.  My problem is that there are too many users to manually add them to a site group, and no way to have users added to a site group automatically when they are added to the user store.  After researching some it seems my solution will probably be a custom role provider.  Besides this excellent post, do you know of other resources with info on custom Role Providers and SharePoint 2007?

Steve wrote:

Hi Jack.  I'm not sure I understand your scenario about needing to authenticate users first, but that everyone would have access to info in the site.  Perhaps some more details would help me to understand why just using FBA with all users in Visitor's site group is not sufficient for your scenario.

Steve

Friday, October 27, 2006 11:17 AM by Jack

# TechNet TechCenter for Office SharePoint Server has launched

The TechNet TechCenters are home to content that helps IT Professionals evaluate, plan, deploy, and operate

Friday, October 27, 2006 12:14 PM by Microsoft SharePoint Products and Technologies Team Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve,

Have you or your team come across 403 18 0 errors in IIS logs?

I am trying to add a new webpart to the Sharepoint Portal Site and i keep getting redirected to the Error.aspx page with a generic WebPart error. I have attached a snapshot of the line entry in IIS logs and the actual error url.

Log Entry:

------------

2006-10-27 16:21:03 W3SVC1 10.10.10.3 GET /_vti_bin/owssvr.dll - 80 DYNAMISOLUTIONS\joe.stoddard 10.10.10.3 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 403 18 0

2006-10-27 16:21:03 W3SVC1 10.10.10.3 GET /_layouts/1033/Menu.htc - 80 - 10.10.10.3 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 401 2 2148074254

Error URL:

------

http://dfsvr-1/_layouts/1033/error.aspx?ErrorID=GenericWebPartError&ErrorIDArgs=&ErrorLinkTextID=MaintenancePageLinkText&ErrorLinkDescriptionID=MaintenancePageDescription&ErrorLinkNavigateUrl=spcontnt%2Easpx%3F%26url%3D%252fdefault%2Easpx

Any help is appreciated!

Thanks!

--Karthik

Friday, October 27, 2006 12:33 PM by Karthik

# re: Configuring Multiple Authentication Providers for SharePoint 2007

How to setup a register page where user could register himself like on most web portals in use today? For example, the best way would be registration form, submitting would then send email to administrator or save it to DB and administrator would then be able to enable access with just one click of a button..or something similar. This is a real world example, we will be setting up extranet for our customers and we don't have an option to prepopulate users (it just isn't feasible). Hope you understand.

Besides that, great post.

Saturday, October 28, 2006 7:00 PM by mark

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Same issue as sylwia : "The server could not sign you in. Make sure your user name and password are correct, and then try again."

Name search doesn't work in the "Add users" (for which that are stored in the new DB).

Any idea ?

Monday, October 30, 2006 4:36 AM by ayk

# Security, Compliance, Server Hardening, and IP Protection

Security is always important. I wanted to pull together a collection of all of the different security

Wednesday, November 01, 2006 8:45 PM by Microsoft SharePoint Products and Technologies Team Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I second the register page idea that mark wrote, where peole can sign up for access and admins can give them one click access.

Sunday, November 12, 2006 1:22 AM by brian

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Thanks for the response Steve! Yes i could have a seperate db for each web app.

But for the profile import from aspnetdb, Is there any API that supports profile import from this database?? The API's i've referred takes only the AD user id with a domain prefix. Also, Is it possible to import users through BDC???

Any suggestions will be greatly appreciated.

Thanks once again.

Wednesday, November 15, 2006 5:38 PM by Vinod

# re: Configuring Multiple Authentication Providers for SharePoint 2007

When we use forms authentication Is it possible to have the "search on a person" functionality???

Wednesday, November 15, 2006 5:44 PM by Vinod

# re: Configuring Multiple Authentication Providers for SharePoint 2007

If this is helpfull to you, please just shoot a quick thank you to fowler_associates@yahoo.com

=====================================================

using System;

using System.Collections.Generic;

using System.Text;

using System.Web.Security;

using System.DirectoryServices;

using System.Threading;

using YourOrganizationsName.Diagnostics;

namespace YourOrganizationsName.Security.LDAP

{

 public class MembershipProvider : System.Web.Security.MembershipProvider

 {

   public override bool ValidateUser(string username, string password)

   {

     //Find the person in the directory to determine their distinct name

     try

     {

       DirectoryEntry root = new DirectoryEntry("LDAP://ldap.directory.YourOrganizationsName.com/ou=person,o=YourOrganizationsName.com,c=US", null, null, AuthenticationTypes.None);

       DirectorySearcher searcher = new DirectorySearcher(root);

       searcher.SearchScope = SearchScope.Subtree;

       searcher.Filter = "uid=" + username;

       SearchResult findResult = searcher.FindOne();

       string distinctName = "uid=" + username;

       // Inverse the ou order found in LDAP to build distinct name

       for (int i = findResult.Properties["ou"].Count - 1; i >= 0; i--)

       {

         distinctName += ",ou=" + findResult.Properties["ou"][i];

       }

       distinctName += ",o=YourOrganizationsName.com,c=US";

       // Find the person as Employee

       DirectoryEntry root2 = new DirectoryEntry("LDAP://ldap.directory.YourOrganizationsName.com/ou=person,o=YourOrganizationsName.com,c=US",

         distinctName, password, AuthenticationTypes.ServerBind);

       DirectorySearcher searcher2 = new DirectorySearcher(root2);

       searcher2.SearchScope = SearchScope.Subtree;

       searcher2.Filter = "uid=" + username;

       try

       {

         SearchResult resultEmployee = searcher2.FindOne();

         if (resultEmployee.Properties["uid"].Count == 1) { return true; } else { return false; }

       }

       catch (Exception ex)

       {

         EventLog eventLog = new EventLog();

         ThreadStart starter = delegate { eventLog.WriteEntry(this.ToString(),String.Format("ValidateUser : {0} : uid {1} Found; Credentials failed", ex.Source, username), System.Diagnostics.EventLogEntryType.Warning); };

         new Thread(starter).Start();

         return false;

       }

     }

     catch (Exception ex)

     {

       if (ex.Message == "Object reference not set to an instance of an object.")

       {

         EventLog eventLog = new EventLog();

         ThreadStart starter = delegate { eventLog.WriteEntry(this.ToString(),String.Format("ValidateUser : {0} : uid {1} NOT found", ex.Source, username), System.Diagnostics.EventLogEntryType.Warning); };

         new Thread(starter).Start();

       }

       else

       {

         EventLog eventLog = new EventLog();

         ThreadStart starter = delegate { eventLog.WriteEntry(this.ToString(),String.Format("ValidateUser : {0} : {1}", ex.Source, ex.Message), System.Diagnostics.EventLogEntryType.Error); };

         new Thread(starter).Start();

       }

       return false;

     }

   }  

================================

using System;

using System.Collections.Generic;

using System.Text;

using System.Diagnostics;

namespace YourOrganizationsName.Diagnostics

{

 public class EventLog

 {

   public void WriteEntry(string Source, string Message, EventLogEntryType EntryType)

   {

     System.Diagnostics.EventLog myEL = new System.Diagnostics.EventLog("Application", System.Environment.MachineName, Source);

     int eventID = 0;

     foreach (EventLogEntry _Entry in myEL.Entries)

     {

       if (_Entry.Source == Source)

       {

         eventID++;

       }

     }

     myEL.WriteEntry(Message, EntryType, eventID);

     myEL.Close();

   }

 }

}

Thursday, November 16, 2006 2:25 PM by Steven Fowler

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve, Thanks for the reply.

Lemme explain the scenario in a little detail. I have "n" number of customers & i've created a web app for each customer. I have also enabled forms authentication for every web app which has it's own custom aspnetdb (Each customer's user profiles are maintained in their own custom_aspnetdb - The requirement is to maintain the each customer's users in a seperate database). So, everything is working well so far.

Now i have a couple of questions :

1. I want to perform a "People search" on each web app and since we have the users in the aspnetdb i have no idea how to perform a "people search" with aspnetdb database in place.

2. If we can't simulate "People Search" with users in aspnetdb, is it possible to import users from aspnetdb to the appropriate SSP's user profile database, so that we can avail the sharepoint's "People Search" directly.

3. If we can import users from aspnetdb, how to keep the user details in sync between "aspnetdb" and "User Profile db" in SSP

FYI, I have created a seperate SSP for each web app (unless otherwise if a customer have a partner and they want to access each other's profiles. In that case, both of the web apps will be bound to a same SSP).

It would be of great help if you could answer these questions. I am not using AD or LDAP, it's just a aspnetdb and new users are manually feeded in to the

database using a webpart. Thanks once again!

Friday, November 17, 2006 11:28 AM by Vinod

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Great article, very helpful. I have a big question that, for the life of me, I can't figure out. How would one delete the extended (extranet) site? I created a new site in the Extranet zone by extending a default site, but I'd like to delete and recreate it. I can't seem to find any way to delete the extended site in the extranet zone and re-add it. Any tips?

Many Thanks,

Evan

Friday, November 17, 2006 2:55 PM by Evan Brown

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Steve,

I was wondering if you can help me.  

I'm having a problem with users permissions. If I set NT AUTHORITY\authenticated users with Full Read permissions in Central Administration and then in the site I create a group for viewers with read only access and I add NT AUTHORITY\authenticated users, then when i try to open the site I get an error Access denied for user .... I tried to add a single user to this group or even I tried to add a user to the Adminsitrators group (with Full Control rights) but I still get the same error message - Access denied.

I tried setting NT AUTHORITY\authenticated users with Full Control permissions in Central Administration and I can access the site but that sort of security is unthinkable.

Also tested annonymous access - i set it in Central administration and then for each site too. try to access teh site, prompt me for credentials if i cancel teh box - access denied.

Am I doing something wrong? I'll be greatful if anyone can help.

Many thanks in advance

Kukita

Wednesday, November 22, 2006 10:21 AM by Kukita

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi! Great Article! But maybe you know how to properly configure FBA+SQL+SSP+MYSITES. I am trying to do so on Trial RTM version of MOSS2007 but all the time I am getting strange results as permissions revocation for both domain and sql users.

Do you have any idea how to conigure SSP and MYSITES with FBA and SQL?

Best regards

Maciej

Friday, November 24, 2006 5:27 AM by Maciej R.

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Thank you!! It helped us a lot to confiure FBA, and it worked fine with release version.

Trusted connection didn't work for us, so changed to

connectionString="Server=yourserver;Database=aspnetdb;uid=sa;pwd=*******;"

Tuesday, November 28, 2006 9:52 PM by Shine

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve,

The port for the default zone of my web application is 60000 , where as the extranet zone extended for the same application is defined with host header 'myapp.domain.com', port 66000 and authentication provider as forms .Here I am able to browse with http://mysystem:60000 but not with http://mysystem:66000 or http://myapp.domain.com.The DNS mapping I have given is for port 66000 of mysystem.The extranet zone is still not up.Where I have gone wrong?

Monday, December 04, 2006 6:05 AM by elizageojy

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve,

Our issues are solved.The DNS mapping was not proper.It started working when I removed the host header.But I have another query that how the web service calls works for other zones?Even If credentials are passed web service calls are redirected to login page when using API's.

Tuesday, December 05, 2006 12:09 AM by elizageojy

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Mark,

We are scoping a sharepoint site out on the extranet. We make part of the site availiable to the world and use FBA when they want to use some of the advanced features. To sign on, we have a modified version of the CreateUserWizard that we drop onto the page.

I have a question for everyone else though.

I was recently using this guide for setting up FBA. Everything worked perfectly. I had no Role manager set up so I added that to give me some more control and that seems to have broken the initial set up. I used to be able to hit my main site anonymously and see the sign-in icon in the top right. After adding the Role manager and resetting IIS, I am always hitting the login screen upon entering my page.

Has anyone seen this and found a solution?

Tuesday, December 05, 2006 5:07 PM by DavidS

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Steve,

just like everyone else, thanks for your great article, it helped a lot.

Unfortunately though I am still having some problems. Just installed the release version of SP and attached my content db again, configured the 3 web.configs just like you said, created a user in the aspnetsqldb, and was able to add it as policy in the central administration. However, if I go to my actual website and try to add the user I can't see or pick him! I don't understand this... if it works in the central admin, why not in my page?

Also, if I try to login to my page using fba I still get an "unknown error" with either user (the asp user or windows user).

I'd be greatful for any help... really kinda stuck here at the moment!

Wednesday, December 06, 2006 4:46 PM by Andy

# re: Configuring Multiple Authentication Providers for SharePoint 2007

In RTM, we're trying to use FBA; however, the member provider isn't being picked up properly.  When I try to add users to the people and groups it is only seeing users from my AD, which shouldn't happen.

Then secondly, when I add one of the AD users and try to logon to the site, it gives me unknown error.

Is anyone else experiencing this? Is this a bug in the RTM or is there a fix to this?

Wednesday, December 06, 2006 11:37 PM by Andy

# re: Configuring Multiple Authentication Providers for SharePoint 2007

In Sharepoint server 2003 when we try to access office documents from a different domain then it asks for authentication every time. Is there any solution for this problem or is this problem rectified in Sharepoint server 2007. If not then please let me know a workaround for this. you can contact me on  tusharpawar23@rediffmail.com.

Tanks and Regards

Friday, December 08, 2006 8:03 AM by Tushar Pawar

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I have the same question that Richard Brown wrote back in August.  I tried applying the info here to implement the AspNetActiveDirectory provider against ADAM in Windows Server 2003 R2, and just can't seem to get it to work.  I installed ADAM, installed an instance, added an ou and users to the ou, and through the schema editor as well as vbscript have been able to read the info from the instance.  I set up the connection string, and the membership config info to the web config file on the extended site, but all I get is a basic login form and errors about file not found when I try to login.  Even if I specify an invalid user or password, or correct ones, I get the same error.

Is there ANYONE that has documentation for setting up multiple providers with the second one being ADAM?

Friday, December 08, 2006 5:54 PM by Stan Spotts

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi guys - I'm trying to deploy SharePoint 2007 to build a global collaboration/extranet for my organisation - I've managed to create an intranet/extranet site sitting behind our ISA, configured using info from various blogs etc. Finally got it up and running, single web application, 2 sites, one internal auth. via AD, one external using Forms + the AD membership provider. Need to do this as i want to use the site to bind our other offices together and provide a measure of 'single sign-on' for our mobile staff travelling around the world (so that wherever they are, all they need to do is use the username and password they already know to get in), and so internal users here in the UK office don't have to sign in at all, as they are already authenticated. Fine. What i can't do is work out how to effectively manage the users - SharePoint appears to treat an internal user added via the site straight from AD as a different person to one added via the ADMembership provider- and the only way i seem to be able to add external access users is using Policy for Web, from the Central Admin site - this seems an incredibly crude tool for doing this, and seems to want me to create each user twice - as i am finding that the users added via the internal facing site can't get in via the external interface. If it try I get this message:

Accesss Denied - Current User  

You are currently signed in as:  WSPAHQ\JeromeMacGillivray - so it authenticates me but won't let me in, unless I'm also added via Policy for Web. Is this right? Is this the way it is meant to function or am I missing something. Also, is Sharepoint going to treat both identities as the same user? What happens if I am using discussion forums or sharing documents - which user will I be? If I add AD groups (or every member of AD) via Policy for Web to give them access rights, can I then manage those users at a granular level via their individual AD accounts added to the internal web app?

Wednesday, December 13, 2006 6:52 AM by Jerome MacGillivray

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Well, it turns out that it's really as difficult to make ADAM work as we thought, but it's not optimal for us.  If you use a certificate, it works w/out needing to specify user credentials in the membership provider declaration in web.config.  If you don't use a certificate, you have to specify these.  We haven't tried encrypting this so we have it in clear text, but we do see that it works.  Why in the world can't we do non-ssl and integrated security so we don't need to put the user id/password in the config file and don't need to implement a certificate?  We'll probably go with the certificate since that's more acceptable than storing user credentials in a web.config file.

Monday, December 18, 2006 4:51 PM by Stan Spotts

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi All,

I have the same users accessing Sharepoint from the intranet and extranet.  So I'll have 1 app with Windows Auth and a second app with forms auth both pointing to the same content.  Now, if I use the ADProvider for the forms auth wouldn't the the user see the same content regardless of whether they access the app via the intranet or extranet?  What do I have to do to proof this out.

Thanks,

Melvyn

Tuesday, January 09, 2007 6:29 PM by Melvyn

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I require anonymous access to a Forms Server and after the form is filled in it should be saved to a forms library. If I have anonymous access I only can read. Is there a way to solve this problem? Internet access an permit to write to a form library.

Wednesday, January 17, 2007 7:22 PM by Hernan Suarez

# Multi Forest/Cross Forest People Picker peoplepicker-searchadcustomquery

stsadm -help setproperty Here's a list of the people picker properties that can be set () peoplepicker-activedirectorysearchtimeout

Thursday, January 18, 2007 11:02 AM by Joel Oleson's SharePoint Land

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I am also having trouble with anonymous access to a custom form for a custom list. I created a list, and now have added a DataFormWebPart to the page (using Designer Insert | SharePoint Controls | Custom List Form). I have set the page and the list to allow anonymous access, and I can get to both (i.e. I can get to the AllItems.aspx page for the list and can add items to the list.) However, when I open the page with the custom list form, the DataFormWebPart displays "Access denied. You do not have permission to perform this action or access this resource." Any suggestions?

Monday, January 22, 2007 12:34 PM by Anthony

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hello,

I get the following error when I add a user to a sharepoint group.

The user or group 'The user or group 'aspnetsqlmembershipprovider:' is unknown

Monday, January 22, 2007 1:22 PM by Mihai Durcau

# Policy for Web vs Add Users

Melvyn (or anyone else!)

Have you managed to solve/unravel the issue of Windows + AD Provider Forms for your intranet/extranet app? I'm still unclear as to the inter-relationship between users added via the sharepoint site > People and Groups(i.e. straight from AD), and the same user added via Sharepoint administration > Policy for Web (i.e. via the AD Provider)...

Wednesday, January 24, 2007 7:49 AM by JeromeMacG

# AspNetWindowsTokenRoleProvider

I havent this

<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider">

section in web.config of wss administrator website, why?

Thursday, February 08, 2007 7:05 AM by Andrea

# How to use ADFS to turn MOSS 2007 into a claims aware application

No, I'm not talking about insurance claims. :-) Rather, I'm referring to identity claims that are federated

Thursday, February 15, 2007 5:15 PM by Microsoft SharePoint Products and Technologies Team Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I'm working on a MOSS implementation with intranet and extranet users.  The extranet users will be authenticated via an IBM Data Power device that intercepts their web requests.  Thus, the Sharepoint Web Application will receive a SAML assertion that the specified user has been authenticated and is the specified Active Directory user.  I have extended my original Web Application and applied a custom membership provider that consumes the SAML assertion and basically returns true since authentication has already been provided.

QUESTION 1) I am getting access denied.  How do I fix this?

QUESTION 2) How do I apply Sharepoint permissions to the user?

please reply to andrew dot lader at wachovia dot com.  TIA!

Friday, February 16, 2007 12:08 PM by AndrewLader

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi All,

This is great artical

I am able to do the Authentication part but

if i want to assign my own roles to the user

and my own permission not default Document permission to the site in Wss3.0 then how can i do that task

as i am using roleprovider,WAT/ASP.NETweb config tool

please provide information as i am trying for so long time

thank you

Tuesday, February 20, 2007 4:24 AM by radhika

# re: Configuring Multiple Authentication Providers for SharePoint 2007

How do I connect users added to the site via AspNetSqlMembershipProvider to the Profiles? I am not able to figure out (yet) how to allow a user in the AspNetSqlMembershipProvider db to have properties that are editable by the user on their wss profile page.  Any ideas or pointers are appreciated.

Monday, February 26, 2007 2:38 AM by BobC

# Solving the "no exact match found" problem

Thanks for this excellent information regarding FBA.  Very helpful.

In the process of setting up a site with FBA I encountered a problem.  As part of this process you need use the "Policy for Web Application|Add Users" page to select a user from the FBA database and assign full control priveleges.  When ever I tried this I got the "no exact match found" message when selecting the FBA user.

The problem was that the Central Administration site was running in a separate Application Pool.  The pool had a defined user identity.   Steve's instructions set up the SQL connection string to the membership database with a trusted connection.  The application pool identity did not have access rights to the membership database.

After adding the application pool user and assigning the aspnet_Membership_FullAccess role using Enterprise Manager, I was able to successfully verify users through the Central Administration pages.

-Tim

Thursday, March 01, 2007 12:06 PM by Tim Colton

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Does anyone know how to setup the LDAP provider to work against a directory that requires a user ID to bind to? I can't seem to find a way to do it.

thanks!

Eric

Saturday, March 03, 2007 6:39 PM by Eric

# Creating Profiles for FBA users

The following code creates a user profile for FBA users.  Just substitute testsite's url and the username.  Make sure you prefix the username with "AspNetSqlMembershipProvider:". AspNetSqlMembershipProvider is defined in web.config.file.

Imports System

Imports System.Collections.Generic

Imports System.Text

Imports Microsoft.SharePoint.Administration

Imports Microsoft.Office.Server.UserProfiles

Imports Microsoft.SharePoint

Imports Microsoft.Office.Server

Imports System.Web

Module Module1

   Sub Main()

       Try

           Dim site As New SPSite("http://testsite:3434")

           Try

               Dim context As ServerContext = ServerContext.GetContext(site)

               Dim profileManager As New UserProfileManager(context)

               profileManager.CreateUserProfile("AspNetSqlMembershipProvider:jgonzalez")

               Dim sAccount As String = "AspNetSqlMembershipProvider:jgonzalez"

               Dim u As UserProfile = profileManager.GetUserProfile(sAccount)

               u(PropertyConstants.WorkEmail).Value = "test@test.com"

               u(PropertyConstants.FirstName).Value = "Joan"

               u(PropertyConstants.LastName).Value = "Gonzalez"

               u(PropertyConstants.Title).Value = "Programmer II"

               u.Commit()

           Finally

               site.Dispose()

           End Try

       Catch exception As UserNotFoundException

           Console.WriteLine(exception.ToString())

       End Try

   End Sub

End Module

Tuesday, March 06, 2007 3:30 PM by Joan Gonzlaez

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Receiving error: The server could not sign you in. Make sure your user name and password are correct, and then try again.  

I was able to verify the LDAP user id within the policy for web with full control so I assume entry is correct in web.config of admin site and my web.config of application site.  LDAP is also the default provider and my LDAP id is listed as Primary Site collection admin.

Any ideas?

Wednesday, March 07, 2007 10:39 AM by JohnB

# Alternate Access Mapping (AAM) With SharePoint

I was going to write a small article about alternate access mapping within SharePoint, but it was never

Thursday, March 15, 2007 8:43 PM by TheKid.me.uk

# re: Configuring Multiple Authentication Providers for SharePoint 2007

You can go to my blogs for help in configuring serch

http://shyjumohan.blogspot.com/

Monday, March 19, 2007 8:34 AM by shyju mohan

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi

I have configured the authentication for SQL and AD. It s works fine . But i have no anonymous access.

My problem is when i start a workflow or send a link by email to user authentication on SQL by a user authentication by AD, the first user receveived the bad link, then he cannot access the site.

Same question from a user in this forum:

One important question we have gotten on multiple authentication providers is, how can I send a link to a site to someone who accesses it through a different URL?  Will they be prompted to switch URLs, or will they get login error, or will it automatically direct them to the correct URL?  This is very important, as the requirement to use different URLs for different providers will otherwise be a showstopper for a lot of organizations.  

Is someone can help me ?

Wednesday, March 21, 2007 6:26 PM by Olivier Balmer

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I've got my Moss 2007 site set up for FBA and AD, but I'm having the stragest behavior from the document libraries.  When I log in with an AD user the libraries act as they should, but when I log in as a FBA user I lose the ability to upload multiple documents. Has anyone else experienced this problem or have a solution?

Thursday, March 29, 2007 10:59 AM by Marc S

# Anon Access not working

Hi there,

we configured WSS exactly according to the following Article by Andrew Connell: http://www.andrewconnell.com/blog/articles/HowToConfigPublishingSiteWithDualAuthProvidersAndAnonAccess.aspx

Everything's working fine except for the  anonymous access to the "http:/internet" site.

It just won't work...

Any ideas?

Thanx

Chris

Tuesday, April 03, 2007 11:51 AM by ChrisN

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi all,

I configured a publishing site with forms based authentication following the steps described here (without the host header stuff).

Everything works fine except the "Create Page" function:

I add a user to the "Members" group and he is able to edit and delete pages. The "Create page" is also offered to him, but when he clicks it, he get's an "Access denied".

Any ideas how this can be solved?

Thanks

   Michaela

Monday, April 16, 2007 10:28 AM by Michaela

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Joan Gonzlaez -

Thanks for your code example.

The code example for creating FBA users doesn't work with the "No mapping between account names and security IDs was done" error message when it tries to create the user profile. This is because SharePoint uses the profile connections to validate that the account name exists (in either AD or LDAP, depending on your configuration).

Maybe there's a way to set up LDAP over the FBA/ASP.NET SQL DB database?

Thanks

Dave

Tuesday, April 17, 2007 11:05 AM by drgrjg

# Have You Called SharePoint Support

If you've called SharePoint support you might have noticed quite a long wait time to get to a support

Thursday, April 19, 2007 12:52 PM by Microsoft Office Support Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I'm trying to connect to an OpenLDAP server.  I want to connect, download the data to my local tree, and continue to use Windows Authentication locally.

Every time I go to set up the connection SharePoint says "An error occurred while validating or updating the directory service connection. No connection was added."  I can use the same info to connect to the ldap server using a GUI tool but SharePoint refuses.  Any clues what I'm doing wrong?

Monday, April 23, 2007 1:20 PM by Paul Grenier

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I 'm still trying to get past all the bugs. I'm encountering "Unknown Error" type bugs when I try to change the provider in the web application. Please confirm that the "ActiveDirectoryMembershipProvider" works with WSS 3.0.

Tuesday, April 24, 2007 9:01 PM by Paul Severini

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hernan, if you want to insert the results of a Forms Server anonymous form, you need to create a web service that inserts the document.

Wednesday, April 25, 2007 9:20 AM by Àlex Peláez

# re: Configuring Multiple Authentication Providers for SharePoint 2007

thanks, for your document.

Well,

I am trying to configure connect some users i created in the database aspnet db. I have some difficulties in adding their account in SharePoint 2007. I have done all the procedure. please help

Wednesday, May 02, 2007 10:24 AM by aymar

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Great article. I want to ask you for help, i need to use sharepoint without AD and i want to know where can i find a guide to write my own authentication provider

Wednesday, May 02, 2007 12:56 PM by Andres Jadan

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Great Article. Just curious about the licensing implications of setting up an extranet in this way for 50,000 non-employees.

Would a SharePoint CAL be required for all of these users?

Thanks

Brad

Saturday, May 12, 2007 12:22 PM by Brad

# re: Configuring iPlanet Directory service Authentication Provider for SharePoint 2007

Hi,

I am new to MOSS2007.

Basically, Active Directory is integrated with MOSS2007. But if I use iPlanet instead of Active Directory, do i need to make any configuration changes?

Please do reply immediately...

Thanks in advance

Arun

Tuesday, May 15, 2007 7:39 AM by dumil

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi,

when i try to add a user using people picker, if i use the user account name the user name validation is very quick, if i use the display name the user name validation takes around 5/10 seconds. Why ? The same happens when i try to add Sharepoint groups. The group name valiation takes 5/10 seconds. Any ideas ?

Thanks

Wednesday, May 23, 2007 4:26 AM by Bodo

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Is there an expert out there who would be willing to help establish a

Forms Based Authentication Login/Registration Web Part for a SharePoint 3.0 site I have?  How much and how long would it take.  Please email me directly at bratoll@mac.com.  Thank you.

Friday, June 01, 2007 9:15 PM by bratolla

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I am using Admembershipprovider to connect to a non-trusted domain and I am able to grant perm per user. I need to manage perm using security group and I understand I need to utilize role manager provider but what should I use?

I've tested using ldap role provider as well as AuthorizationStoreRoleProvider with azman. I am able to reterive the group from either role provider and grant perm. However, when I login using a user from the group I can successful authenticated but authorization faile and MOSS return a Access Denied page.

Monday, June 04, 2007 1:47 PM by Jack

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I am trying to implement this on a WSS 3 site using SQL Express. When I try to create the database I get an error indicating the SQL server does not allow remote connections, even though the local machine is specified in the server field. I am logged onto the local machine as an administrator.  

Will this work with SQL Express or do you have any other ideas on what is wrong?

Tuesday, June 05, 2007 7:32 PM by Mark

# re: Configuring Multiple Authentication Providers for SharePoint 2007

We have a site that is configured to use both windows authentication and Form Based Authentication, and it works fine except for anonymous access to BDC. We have a BDC app defined for a web service, but we can't get anonymous access to it when we access the site that is configured to use Form Based Authentication. What am I missing?

We have tried both "RevertToSelf" and "PassThrough" in the BDC App definition.

Please Help.

Thursday, June 07, 2007 5:56 AM by Jörgen Nilsson

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I want to deploy sharepoint in DMZ, that is exposed for internet and is not connected with corporate's domain. The database server is inside corporate's domain and accessible for sharepoint server located in DMZ.

I want that sharepoint portal to be accessed by our company's employees using intranet and intenet. These employees are in Active Directory of corporate's network.

Is this possible to deploy sharepoint using said scenario where AD exists but in different domain?  

Any idea or clues for this.

I have also posted this to MSDN blog, here is the link http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1729863&SiteID=1

NOTE: When Configuring MOSS from outside domain, it requires domain\user account. How can I install/configure this without accessing domain\user account. One more thing is that Database is at private LAN, so it is accessing from DMZ.

Monday, June 18, 2007 5:05 AM by Muhammad Masood

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hey,

Ive added FBA to my sharepoint portal (as discribed here http://www.andrewconnell.com/blog/articles/HowToConfigPublishingSiteWithDualAuthProvidersAndAnonAccess.aspx), everything configured well, if i try to add users from the database ACaspnetdb to the FBA i get the error : No exact match was found. Ive added rights to the user application pool account in SQL2005, tried everything ... so if someone has an idea what the problem can be let me know at wouter.coppens@augent.be

thanx in advance,

Wouter

Wednesday, July 04, 2007 10:56 AM by Wouter Coppens

# Can't add FBA user from default zone.

>Your extranet web application is now >configured to use FBA.  However, until users, >who will be accessing the site via FBA, are >given permissions for the site, it will be >inaccessible to them.  To do this, you could >go directly to the default zone (i.e. >http://intranet) of the site, login with your >Windows credentials, and add the FBA users.  

Now I can use your method to add FBA users from Sharepoint Central Administration Site, and I can use the first FBA user add other users on the external zone. But I can't add FBA users on the default zone. I think I should do the same thing to the web.config of default zone applicatoin as Sharepoint Central Administrator Site, correct?

Wednesday, July 25, 2007 2:57 AM by Xiaobo Gu

# Synchronizing with MOSS UserProfile

If you ever need to synchronize your users from your custom authentication provider database to the WSS User Profile. Set the replicable property to true, this way the data is also available in the MySettings area and maybe even more important, the audiences will work.

Wednesday, August 01, 2007 10:07 AM by Walter Haas

# Is the FBA Search issue resolved yet?

Anyone have any update on what might be the workaround on configuring search with FBA? there was a sketchy post earlier about creating a separate web app w/ Windows Authentication, but i'm still missing on how to connect the search box on the FBA site with the content index created on the Windows Auth site (aside from a custom dev effort, which, i guess, is possible)?

Monday, August 06, 2007 3:36 PM by water boy

# re: Configuring Multiple Authentication Providers for SharePoint 2007

MOSS User Profile information doesn't get synchronized with WSS User Profile information even after setting the property as Replicable.

Any solution on how to replicate the user info successfully would be greatly appreciated.

Tuesday, August 14, 2007 11:56 AM by Krishnan

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I am having problems using Sharepoint. I set everything up correctly, but when anyone other then System Administrator logs in and attempts to create a new item in any list or in the calender, they recieve a 403 Forbidden error. Even the users in the Full Control group recieve this error.

I've read around about this, and no one seems to have a very useful fix for this. I've seen only "Give everyone full system access", and no offense is meant by this statement, but that is just plain stupid.

Tuesday, August 14, 2007 2:35 PM by Issac

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I am trying to configure moss 2007 with multiplea auth providers internally on default site with windows integrated and externally on different IIS site using forms.  

I would like to use AD Membership provider for the external access as it would be for internal users to get external access, but have hit a few snags!!

I have everything set up as all the thousands of articles say and have managed to get the AD user

to authenticate, but it doesn; want to authorsize access.  Not sure where to go from here??

Tuesday, September 04, 2007 2:55 PM by Andy Crow

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Has anyone figured out a way to mask the links sent out in emails across multiple authenitcation providers? In my scenario an internal employee assigns a task to an external client who accesses the FBA site. The resulting email has links back to the internal URL which is Windows authentication. This really hinders the ability to collaborate with external clients across multiple authentication providers. Any help would be appreciated.

Thanks,

Joe

Wednesday, September 05, 2007 2:21 PM by jshepherd

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Any has any idea or hints to move an existing asp.net 2.0 web site into wss v3 Sharepoint with sqlserver authentication.

I have teachers table in a database, used for validating the teacher login, How do i access it and validate using forms authentication?

can i use any sqlserver on the network to connect to sharepoint.

help me out here

Neel

Thursday, September 06, 2007 2:35 PM by Neel

# instructions on how to search Forms Auth site

Can someone point me in the right direction for how to get the search to crawl my forms auth site.

Friday, September 07, 2007 12:20 PM by dave

# re: Configuring Multiple Authentication Providers for SharePoint 2007

You can solve the 403 Forbidden error by configuring your web applications with host headers, rather than only by port. Read more about it here:

http://weblogs.asp.net/erobillard/archive/2007/09/07/moss-and-forms-based-authentication-the-tricks.aspx

Friday, September 07, 2007 3:58 PM by Eli Robillard

# re: Configuring Multiple Authentication Providers for SharePoint 2007

What if the sites that require different authentication exist in different farms?

For example, I would like to have an Enterprise Edition of MOSS 2007 running for our intranet sites with AD authentication. I would like to use the MOSS 2007 For Internet Sites for the client extranet with Forms authentication. The licensing material states that the two versions must be in separate farms.

The internal employees need to be able to access the client sites sometimes. I would like them to log on once with their AD information and still have access to the extranet sites without another login.

Any thoughts?

Thursday, September 13, 2007 9:26 AM by Dennis

# How to add Authenticated Users in Form Authentication mode?

I was wondering if you can help me.

I have an application that build from MOSS 2007. In window authentication mode, I can add a Authenticated group user, but I can't add it in Form Authentication mode.

How to add a group user as Authenticated Users in Form Authentication mode?

Thanks.

dandn@fsoft.com.vn

Wednesday, September 19, 2007 12:25 AM by kienvangfsoft

# Error 11001: Host Not Found

Hi

I've followed this tutorial through the end, but my internet zone is not working properly, as described in the title.

I've tried the alternate mapping acces without success.

What's wrong?

Please help!

Wednesday, September 19, 2007 4:07 AM by Jeremy

# Custom Role Provider and Windows Authentication without FBA

Hi everybody,

Thank you for this great article. I need to accomplish one special trick with a customer: I would like to use windows integrated authentication (so, no form based authentication) but use a custom role provider which can allow me to build special authorization rules I can't achieve using AD security groups.

Do you think it is possible to do that?

Thank you in advance!

Pierre

Thursday, September 20, 2007 9:23 AM by Pierre VIVIER-MERLE

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I want to creat a team site in the intranet which allows anonymous access. I have both enabled anonymous access for the web application and selected "entire web site" in "Site Settings > Permissions > Anonymous Access" of a site. But when I access this site (login windows without my domain ID), user name and password are still required. After input my domain id and password, I can access the site successfully. But what I need is anonymous access.

Is it due to the "My Site" link on the top of the team site? How to solve this problem?

Anyone can help me? My email address is Xiao_Yang@StateStreet.com

Friday, September 21, 2007 3:04 AM by yangxiao

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hello All,

This is really a great info. I have configured Novell eDirectory with internet Zone and sucess fully imported profiles from LDAP to my SSP I was able to add one of the LDAP user as site admin from Central Admin. but wheh I try to login to URL it always gives me unknown error. As it is unknown error I am unable to trouble shoot this issue.

if any one of you have some clue about this unknown error please let me know.

Thanks,

Hiran Salvi

Monday, October 01, 2007 11:29 AM by Hiran Salvi

# Configuring Multiple Authentication Providers for SharePoint 2007

Wednesday, October 10, 2007 11:42 AM by 蓝色飞翔

# Announcing the Community Kit for SharePoint: Internet/Extranet Edition Forms-Based Authentication solution!

As many of you know, one of the best new features in WSS 3.0 (and consequently MOSS 2007) is the way

Saturday, October 13, 2007 11:41 AM by Microsoft SharePoint Products and Technologies Team Blog

# Announcing the Community Kit for SharePoint: Internet/Extranet Edition Forms-Based Authentication solution!

As many of you know, one of the best new features in WSS 3.0 (and consequently MOSS 2007) is the way

Saturday, October 13, 2007 12:10 PM by Noticias externas

# Unknown Error

For those of you who follow these instructions to the letter and still get an "Unknown Error" when trying to login (last step) using forms authentication. Check this... If you initially set up multiple users for your Sharepoint farm, check the application pool users for both Central Administration and YourSite. In IIS look at the properties of each of these app pools, then look at Identity tab. In my case, they were using two different users. One had access to reach SQL server and the other didn't. They both (if different) need to be logins in SQL server, with the proper sql server role permissions in order to reach the aspnetdb database. Hope this helps you!

Monday, October 15, 2007 3:04 PM by jayfoster12

# MobileLogin Page

Hi,

I have a Forms auth. for my wss site(extranet) everything is fine till i try to access it from a mobile device. Request from a mobile device  doesn't get fwd it to mbloginlogin page.

any help on this is apprecited

Vikram Vyas

vikramvyas@gmail.com

Wednesday, October 17, 2007 10:10 AM by Vikram

# MSDN/TechNet forums for SharePoint at http://mssharepointforums.com - the place for Q&A and discussions!

Since the SharePoint 2007 products (WSS 3.0, MOSS 2007, and SPD 2007) released about 11 months ago, there

Monday, October 22, 2007 2:33 PM by Microsoft SharePoint Products and Technologies Team Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Steve,

would it be possibile to use 2 or more AD as authentication providers (at the same time) for the same web application? The scenario is: big industrial group with several AD domains NOT trusted with each other but network connected. I'm using MOSS 2007.

Thanks for sharing good knowledge.

Gian

Tuesday, October 30, 2007 10:38 AM by Gian

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I read in a blog somewhere that you could have multiple entry points and authentication providers from the same domain name by using virtual directories. Have you seen this? I misplaced the link

Monday, November 12, 2007 6:02 PM by phydroxide

# sharepoint 2007 document library anonymous user access

hi all,

       i am trying to upload a document from a sample asp.net page to the document library , but at the last moment it asks for username and password, evethough i have give anonymous user aceess to the site itself

Thursday, November 15, 2007 12:33 AM by shekhar

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi,

I can configure FBA and login using it. Then i follow the little tutorial here and extend my web app on port 80 to create a new zone. I then have both windows and forms auth setup on different urls.  The problem is, i get the forms login page for both urls... is that normal? can i get the form to login from my extranet zone and the windows auth box for my default? how would i accomplish this?

Tuesday, December 04, 2007 11:54 AM by philippe

# re: Configuring Multiple Authentication Providers for SharePoint 2007

You rock!!!!!!! Thanks for this article, I realised where I had gone wrong and am logging in perfectly now!

Thursday, January 03, 2008 11:23 AM by Sheree

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve,

I’m running a SharePoint 2007 portal with Windows authentication and SSL which consumes port 443 on the web server. My goal is to extend the portal to provide an extranet presence using forms authentication only on the extranet portal. My environment requires all web sites be SSL on port 443. How can I extend the portal so that both are running on the same SSL port, 443? I though about adding a second SharePoint web server to the farm. My concern about that solution is that in testing the addition of a web server to the farm, the second web server mirrored the primary. Please recommend a solution that will allow both sites to run on 443.

Thanks,

Wade P.

Tuesday, January 08, 2008 3:03 PM by Wade P.

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Tuesday, January 22, 2008 10:35 AM by Leslie

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I followed all of the steps above, but I am still unable to see any users in my custom provider.  

I am getting extremely frustrated.

Any ideas for me to check?

Wednesday, January 23, 2008 10:57 AM by George

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve,

I need to implement a single sign on from an asp.net web form to an External sp site.

The External site has been extended from an Internal site.

We are using sqlmembership provider. And have everything configured in the various web configs.

We are following a pattern that works between two asp.net application on separate sub domains. To allow single sign on there.

We are creating a cookie with domain level permissions so that a site on www.hh.com, (our asp.net login) allows permissions to portal.hh.com (Our extended sharepoint portal).

In the sp global.asax during the Application_AuthenticateRequest event we are setting the context of the user to a generic principle on behalf of the asp.net login page.

But this does not appear to be working. We have spent 2 men for two days working on this and cannot figure it out. Any advice you have would be appreciated. I can send code examples if you would like, here is a link to a diagram of what we are trying to do...

http://www.afs.net/sp.jpg

Wednesday, January 23, 2008 5:13 PM by Rob

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Thanks for a great article! Very helpful.

Two comments for future readers:

1. Do not copy and paste aspnet_regsql -S <servername> -A all –E , since on the page -E has an incorrect -. Just type it in instead.

2. In case you can't add users, as specified by Tim Colton make sure your aspnetdb can be accessed by a trusted connection from within Sharepoint Central Administration. This can be tricky to set up, but you'll need to fix this using MS SQL Server Management console. In other words, one of your logins in SQL Server should be mapped to aspnetdb with full access.

Thursday, January 24, 2008 9:57 AM by Vahe

# ActiveDirectoryMembershipProvider, How do I add security groups to my sharepoint groups?

Hello, I have been able to successfully hook up the ActiveDirectoryMembershipProvider and my site successfully uses forms authentication.  However, I cannot find out how to add security groups to my sharepoint groups.  I can add AD users all day long, but it never sees security groups.  How do I add security groups?

Thursday, February 07, 2008 1:08 PM by Sharepoint User

# Getting error when I try to log in

Hi Steve;

Thanks for the great article, it helped me a lot, I did everything as you described, but still I have a problem. I only set up an external web site and when I try to login with the username that I created in aspnetdb, I get unknown error. Do you have any idea about what I am doing wrong here.

Thanks in advance

Erinc Arikan

Thursday, February 28, 2008 11:45 AM by erincarikan@wlccorp.com

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I have configured the web application with Active directory membership and ia m using form based authentication can any body help to get the mysite link at the home page of the webapplication when i sign the web application using form based authentication

Tuesday, March 04, 2008 3:03 AM by shekhar

# ADFS lab: Use Win2K3 Server Enterprise from the start!

I'm working through a bit of learning on integrating MOSS with ADFS for a federated SSO scenario at a

Wednesday, March 19, 2008 9:34 PM by Redundant Entropy

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hello Steve

I am also trying to do same thing. If it is not against can you please share the code or mail me code on ashishkanoongo@hotmail.com

Thanks

Ani

Tuesday, March 25, 2008 11:36 PM by Ani

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Can i do formsbasedauthentication with Active directory for internet zone of the web application.I don't have different webconfigs for different zones of web applications,so if i change the webconfig of the webapplication,it refelcts both internet and intranet zones.Then how is it possible.

Wednesday, March 26, 2008 6:47 PM by aditya

# re: login access

i have designed a portl using sharepoint,i want to discuss regarding logins.When we sign in portal we are submitting our username and password,when we dont gice any username and password i just click cancel.After clicking cancel button it was displaying as 401/404 unauthorised page.Can any one suggest how to handle that event so that it should redirect to the portal signin home page.

I would be greatful if any one can help me in this regard.

Friday, April 11, 2008 3:59 AM by Naveen

# Wondering If MOSS is capable

Hi Steve,

Here is the scenario:

We have to networks. Internal and external.

200 internal users have internal.com accounts

2000 external users will have external.com accounts

Sharepoint will be part of external.com domain

We are wondering is ADFS the best way to give the internal.com users a seamless single-sign-on experience?

Constraints:

No forest trusts can exist between internal.com and external.com

Would ADFS in this scenario be the recommended way microsoft would do it?

Friday, April 11, 2008 8:51 PM by James Dewfeld

# re: Configuring Multiple Authentication Providers for SharePoint 2007

How to "Extend an existing Web Application" to difference web server for extranet in DMZ?

Friday, April 18, 2008 10:02 PM by Ku Dang

# Authentification still required for office documents

Hi Sharepoint experts

We have several sharepoint publishing sites with anonymous authentification on for entire site. However when anonymous users click on a office document (doc or docx etc.) they are prompted for logon/password, but the document is loaded anyway when clicking CANCEL to the logon prompt.

The sites are configured with kerberos to eliminate double hop authentification, but it does not seem to work completely with anonymous authentification in publishing sites.

Also we do not use ISA server.

Do you experts have an idea of what I may have overlooked??

thanks guys

Monday, April 28, 2008 2:32 AM by Stilbo

# re: Configuring Multiple Authentication Providers for SharePoint 2007

If anyone is having issues with the people picker finding the FBA roles, you may need to update the Desciption field in aspnet_Roles field.  I spent 2 days searching forums and nothing, and then I looked at the table and noticed the fields were null, so I just put the role name in the description field and BAM! it works now.

Thursday, May 22, 2008 1:03 PM by Battles

# Continuous Pop up for login page except Mozilla

Hi to all,

I have configured form authentication in WSS 3.0, it's working fine in Mozilla. But when i open and login website with Internet explorer, netscape, safari browsers, it postbacks but shows same login page and doesn't redirected to Home Page of Website like it does in Mozilla. If i am trying with wrong username and password all browsers shows that username or password is wrong.

I have configured all steps for form authentication in My Sharepoint site.

I could not understand, why My Site is not redirected from login page to Home Page(default.aspx) in all browsers except Mozilla .

Please Help me in this context if you can,

Thank you so much,

Saurabh

Wednesday, May 28, 2008 7:46 AM by Saurabh

# Zones, Alternate Access Mappings, and Internal URL's...Oh My!!!

Zones, Alternate Access Mappings, and Internal URL's...Oh My!!!

Monday, June 02, 2008 6:34 PM by Blog-Mania

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Has anyone configured an intranet/extranet where both are using windows authentication but from 2 different domains(internal users, and external users) that are not trusted or related in any way?

Wednesday, June 11, 2008 8:48 AM by Jeff

# how to configure sharepoint and Active Directory

i want to configure my sharepoint server to see our AD.How can i do it.

Tuesday, June 17, 2008 8:08 AM by Ambrose

# Remote Users of an Intranet site

I am working for a govt. agency and am trying to come up with a solution to a problem we are having.  We have as local SP site (intranet) and we have local users and users in various parts of the world that need to access the SP site.  All of the users have active directory accounts but our remote users are unable to log in to the site.  Can anyone help me understand what needs to be done to allow those remote users access or point me to a previous post or something?  I thank you in advance for your help in this matter.

Thursday, June 19, 2008 9:26 AM by farrell.evans

# re: Solving the "no exact match found" problem

Hello Tim

I am also facing same problem, tried as you mentioned but still not able to add fba users. FYI I am using multiple providers (Windows/FBA users).

Can you tell me step by step, so I can re-check again?

Ani

Tuesday, July 08, 2008 1:40 PM by Ani

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Steve,

Great post that you have here.

I have a question that I need help to solve and I hope you can help me.

I have Moss 2007 in a stand alone configuration with Project Server and PWA.

I already published over the internet both the sharpoint (used to intranet) portal and project web access with multiple authentication (AD+FBA).

The problem: the users who access to PWA by the FBA authentication can't access to the sub pages of PWA, after the user clicks the link is redirected to an internal page (which obviously it don't have permission).

Do you have any idea of what is the problem?

Thank you

Best regards.

Friday, July 18, 2008 6:44 AM by Ricardo

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Steve,

Great post that you have here.

I have a question that I need help to solve and I hope you can help me.

I have Moss 2007 in a stand alone configuration with Project Server and PWA.

I already published over the internet both the sharpoint (used to intranet) portal and project web access with multiple authentication (AD+FBA).

The problem: the users who access to PWA by the FBA authentication can't access to the sub pages of PWA, after the user clicks the link is redirected to an internal page (which obviously it don't have permission).

Do you have any idea of what is the problem?

Thank you

Best regards.

Friday, July 18, 2008 6:45 AM by Ricardo

# re: Configuring Multiple Authentication Providers for SharePoint 2007

I did as detailed in the steps below, but am managing to keep my extranet and intranet urls identical by making sure I have two IP addresses on my server say IPa and IPb and,

1. Extending http://intranet, maping it to the extranet and calling the host header, say www.sameurl.com.

2. When this is complete I then pop into IIS and add another host header to http://intranet and call it www.sameurl.com and allocating one of the IP addresses to it, say IPa.

3. Also in IIS I make sure my host header for www.sameurl.com web app is pointing to the other IP address, IPb.  This way one IP address is responsible for windows authentication and the other forms authentication.

4. In my hosts file I then comment out one IP address when I want to test forms authentication and the other when I want to test windows authentication.

5. Have tested 'email the link' and alerts and the urls all seem to work find.

Seems so simple there has to be something wrong.

Friday, July 18, 2008 12:56 PM by Davies

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Tim,

Nice work with the article.

Hi have a problem with my FBA access.

My PWA working with FBA (SQL server DB) is not working properly. The user can access to the page of PWA normally, but when they try to use the shortcuts for folder or workspaces it redirect the user for an internal page, using the AD and logically they don't have access and gives them a blank page.

Do you have any idea of what could be the problem?

Thank you very much.

Wednesday, July 23, 2008 5:13 AM by Ricardo Caldas

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve, Could you give a code example for setting the redirection logic for a site variation to use a Sharepoint Group instead of the browsers Language or Local? I want to use variations for branding - but this is where I get stuck.

Monday, July 28, 2008 5:37 PM by Kylomon

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi,

We have customised the Forms Authentication to use LDAP. We are able to choose the users in Central Administration also in the format like ldapprovider:username

The Problem we are facing is that we are unable to authenticate users against LDAP. There is no issues in the password. I have checked it. Infact, some 3 people tried to login with their passwords... it did not work..

The error we get is "The server could not sign you in. Make sure your user name and password are correct, and then try again. "

This is the config which is used.

<add name="LdapMembership" type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"

server="ourserver"

port="389"

useSSL="false"

useDNAttribute="false"

userDNAttribute="distinguishedName"

userNameAttribute="mailNickname"

userContainer="DC=corp,DC=dal,DC=com"

userObjectClass="User" userFilter="(ObjectClass=*)"

scope="Subtree"

otherRequiredUserAttributes="sn,givenname,cn,sAMAccountName"

/>

Thursday, August 14, 2008 7:25 AM by Vivek

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Tim:

I have a Sharepoint list that has an input form that I have opened up to Anonymous Access. (It is a support desk trouble ticket input form).

The site and list also has Windows authentication, that authenticates users from our Active Directory, that are part of our domain.

Users outside of the domain can enter support trouble tickets. With anonymous access IIS will authenticate anonymous access users first,

before Active Directory users. The problem here is... for one of our internal users that goes directly to the input page from a favorites link,

they are not authenticated by their Active Directory login, they are given access to the page as an anonymous access user.

How can I force the authentication (sign-in) of Active Directory users, and then if they are not in Active Directory to default to anonymous user.

Thanks for your help.

Thursday, August 14, 2008 9:23 AM by Jim Reeves

# User Management Challenges and Solutions for SharePoint Extranets (Part 1)

Hey this is Joel Oleson, back with another guest post here at the Bamboo Solutions team blog. I&#39;ve

Thursday, October 09, 2008 11:41 AM by The Bamboo Team Blog

# User Management Challenges and Solutions for SharePoint Extranets (Part 1)

Hey this is Joel Oleson, back with another guest post here at the Bamboo Solutions team blog. I&#39;ve

Thursday, October 09, 2008 11:42 AM by The Bamboo Team Blog

# User Management Challenges and Solutions for SharePoint Extranets (Part 1/3)

Hey this is Joel Oleson, back with another guest post here at the Bamboo Solutions team blog. I&#39;ve

Thursday, October 09, 2008 1:55 PM by The Bamboo Team Blog

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Steve,

I have added the username from Active Directory in Sharepoint People and Group using the below code:

spUser = myweb.EnsureUser(username); //string username is available in active directory  

spGroup = myweb.SiteGroups[sekGroup]; //string sekGroup is the group name in sharepoint site.

spGroup.AddUser(spUser.LoginName, spUser.Email, spUser.Name, "");

spGroup.Update();

The above code is working fine in windows authentication, user is added successfully in sharepoint people and group and the user is able to login. but the user is not able to login in form based authentication when using the same code. I am using FBA with active directory membership provider.

I also tried by modifying the above code:

spUser = myweb.EnsureUser("MyADMembershipProvider" + ":" + username); //added Active Directory membership provider with username

The Error message I am getting is:

Error: Access Denied

Current user

You are currently logged in as [username]

Sign in as a different user

I need your kind support.

Thanks in advance

Raja.

Tuesday, October 21, 2008 3:13 AM by Raja

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Steve

    Thanks a lot for the excellent article.I have found it so useful and I have implemented the same in my SharePoint site. But now, I have some more requirements. I need to include Country Details and Status Details for every new user created in the Membership database. Please let me know how can I achieve this? Also let me know how can I avoid the Secret Question and Secret Answer while creating a user?

Tuesday, October 21, 2008 12:47 PM by Ven

# re: Configuring Multiple Authentication Providers for SharePoint 2007

Hi Steve,

I have configured our site as you described above.  Unfortunately the Central Administration site cannot resolve the usernames from our SQL Server DB.  The web.config modifications work fine on our extranet site (users can login, they just don't have any permissions) but not on our Central Admin site.

Have you seen this type of problem before and if so, do you know of a solution?

Thanks in advance.

Shannon

Thursday, October 30, 2008 12:27 PM by ditweed

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker