Using Active Directory Form Based Authentication with Windows Sharepoint Services

Recently we have come into a project that demanded us to implement an Active Directory driven logging mechanism in Windows Sharepoint Services with Forms Based Authentication. The problem took some research and hacking around with some XML but we tackled it pretty quickly.
This text on MSDN helped us out a lot so you should take it as a good read. Creating a WSS site is a clear-cut case, we enabled anonymous access so everyone can get to is and supplied the “ADProvider” as a Membership provider name.  Then you need to edit the web.config document of the site you created (in IIS > root of the site).
Before the <system.web> tags you need something like this.
<add name=”ADService” connectionString=”
LDAP://,DC=domain,DC=com” />

This will point to your container with user accounts.
Inside the <system.web>  and after the <authorization> tags you need to specify your connection.
<membership defaultProvider=”ADProvider”>
<add name=”ADProvider” type=”System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
password” />
Now fire up your favorite browser and go to your site, go into the login area and attempt to login with your username ( and password.
You should be up and running now.

9 Responses to Using Active Directory Form Based Authentication with Windows Sharepoint Services

  1. Jweiss says:

    I tried all that but was unable to get it work. I am unable to put a primary site collection administrator. And if I go to the sharepoint site now it just says error and go back to site link.

  2. Sekwith says:

    Hi Jweiss,

    Do you give “ADProvider” to you created in FBA site? You give the Connection and Provider for all web.config files, Like Central Administraton, WA and FBA sites as you created.


  3. Jweiss says:

    I was finaly able to put in a site collection administrator. But now when i got to the sharepoint site I enable forms for, it says Error, An unexpected error has occured in a sharepoint window there is an option to go back to site at the top but it does nothing. A

    Any ideas?



  4. vamsankar says:

    Please check your domain name, DNS and LDAP configuration.

  5. nischal says:

    i tried all that but unable to configure it. my DNS and all other r correct

    error is this so please tell about this error and how to configure LDAP

  6. Alexwebmaster says:

    Hello webmaster
    I would like to share with you a link to your site
    write me here

  7. DNS says:

    DNS Port…

    […]Using Active Directory Form Based Authentication with Windows Sharepoint Services « Sharepoint Musing’s[…]…

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: