Welcome to MSDN Blogs Sign in | Join | Help

Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

1. Configure SharePoint Central Admin 

  • Login to SharePoint Central Admin
  • Go to Application Management / Application Security / Authentication Providers and Change the Web Application to the one which needs to be configured for Forms Based Authentication
  • Click zone / default, change authentication type to forms and enter ActiveDirectoryMemebershipProvider under membership provider name ( for example , "ADMembershipProvider") and save this change

2.Update the web.config of SharePoint Central admin site
 

under <configuration> node

<connectionStrings>
<add name="ADConnectionString" connectionString="LDAP://DynamicsAX.local/CN=Users,DC=DynamicsAX,DC=local />
</connectionStrings>

under <system.web> node

<membership defaultProvider="ADMembershipProvider">
<providers>
<add name="ADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider,System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString"
connectionUsername="xxx" connectionPassword="yyy"
enableSearchMethods="true"
attributeMapUsername="sAMAccountName"/>
</providers>
</membership>

replace the connectionstring to the one matching your encvironment and replace"xxx" with domainname\username and "yyy" with password

 

3.Update the web.config of SharePoint Web application

  •  Repeat step 2 for the web.config of the SharePoint webapplication to be configured for Forms Based Authentication
  •  Change the authentication in web.cconfig to
    <authentication mode="Forms">
        <forms loginUrl="/_layouts/login.aspx"></forms>
    </authentication>

For more details
http://technet2.microsoft.com/Office/en-us/library/23b837d1-15d9-4621-aa0b-9ce3f1c7153e1033.mspx?mfr=true
http://msdn2.microsoft.com/en-us/library/ms998360.aspx

Published Monday, August 27, 2007 9:47 PM by meysun
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: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Monday, August 27, 2007 5:10 PM by Tony

Do you know if we lose any Microsoft Office coupling capabilities when using Forms Authentication?

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Monday, August 27, 2007 6:41 PM by meysun

http://www.willierust.com/Lists/Posts/Post.aspx?ID=6 talks about how you can do client connection with FBA.

http://www.networkworld.com/community/node/18581 lists some issues/work arounds.

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Wednesday, September 05, 2007 10:14 AM by Jignesh

Hi,

Very good explanation but I have this question.

What I’m trying to do is write a custom membership provider that authenticates the users via a custom web service. The Membership Provider doesn’t communicate with the SQL server at all it communicates with the web service for all of its operations and the WS in-turn connects to the SQL server.

I have implemented most of the methods and properties (some still throw not implemented exception) and ValidateUser and Initialize methods do get called (in debug mode). The issue I’m running into is GetUser never gets called when I try to Search for users in MOSS administration site to add users into the site or set site collection administration using the people picker.

Since my provider is not directly communicating with backend system directly, I do not have connectionString in the web.config file. Could that be the issue ?

Here’s the web.config setting

<membership>

                                               <providers>

                                               <remove name="AspNetSqlMembershipProvider"/>

                                            <add name="MembershipTest" passwordAttemptWindow="10" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true"

requiresUniqueEmail="false" applicationName="MyTest"

type="DEMembershipProvider.Custom.CustomAuthenticationProvider, DEMembershipProvider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=116c9f5eed79bbc1" />

</providers>

</membership>

This is the only update to the config file both in the application and central admin.

Thanks a lot in advance.

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Wednesday, September 05, 2007 12:13 PM by shahj99

Well, well well.... Found the fix for the issue I posted earlier.

<membership> should be changed to :

<membership defaultProvider="MembershipTest">

defaultProvider is required otherwise the People Picker wouldn't search.

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Monday, April 21, 2008 6:52 AM by nikos.msk

Hello,

I made all settings as described in this article but every time I got 403 error in browser with eventlog error

Object reference not set to an instance of an object.

System.NullReferenceException

  at Microsoft.Dynamics.WebParts.SessionItem.Init()

When I access sharepoint pages without axapta components, everything works perfect! But axapta beb parts failed to initialize.

Thanks for any suggestions!

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Tuesday, May 20, 2008 1:57 PM by Raúl.

Hi all,

I've followed all the steps.

The active directory authentication seems to validate, but after that...

ACCESS DENIED

What about the axapta validation?

Does axapta business connector need the "Domain\" before the Username to login?

Any suggestion?

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Wednesday, July 16, 2008 6:19 PM by SShah

Hey Raul,

I am facing same issue as your where i am getting Access Denied error . were you able to find solution for this?

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Tuesday, August 12, 2008 8:52 AM by Rahul Sharma

Hi Raul and SShah,

We are also facing the same problem. could you suggest the solution if you have any.

Regards,

Rahul

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Tuesday, August 19, 2008 7:31 AM by parvesh

Hey Rahul,

You will need to mention the admin of your site collection, map an AD user to your site collection and it should work

thanks

parvesh

# Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007 (by MeySun)

Thursday, October 02, 2008 4:23 AM by Dirk Van den Berghe SharePoint Admin Blog

I had an issue this week that I was unable to sign in to my personal WSS site. for some reason the popup

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Tuesday, December 30, 2008 4:15 AM by Gerhard

I have done all the required things, about the FBA doesn't work.

I get the login page "_layouts/login.aspx" but after click Login,I get the message "Page or Site not found"

I don't no what is the problem? The configuration parameters in the web.config?

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Wednesday, June 24, 2009 11:40 AM by Chris

I've the authentication set up for my SharePoint site, but it seems it won't resolve usernames in the Central Administration when trying to change the Site Collection Administrators. I've googling for this, but haven't found anything much relevant to this particular problem. Any ideas on what to look for?

# re: Forms Based Authentication ( FBA) in WSS 3.0 / MOSS 2007

Tuesday, June 30, 2009 10:22 AM by Bram v

Is it possible to combine FBA and Domain based Authentication on one site in WSS 3.0?

We are using the web based interface for external partners but would like to have domain based for our own users.

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker