Forms authentication with Activedirectory in sharepoint server 2007

Last post 03-02-2008 4:41 AM by madhur25. 1 replies.

Sort Posts:

  • Forms authentication with Activedirectory in sharepoint server 2007

    02-07-2008, 6:37 PM
    • Loading...
    • aditya_raj
    • Joined on 11-05-2007, 1:33 AM
    • Posts 64

    HI,

    I need to configure sharepoint server webapplication with forms authentication using Active Directory.
    I have modified the web config file by adding a default membership provider.

    <membership defaultProvider=" MyADMembershipProvider">
      <providers>
    <clear />
        <add
           name=" MyADMembershipProvider"
           type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,
                 Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
           connectionStringName="ADConnectionString"
           attributeMapUsername="sAMAccountName"
           connectionUsername="spectrum\administrator"
           connectionPassword="password"/>
      </providers>
     </membership>


    and the added the connectionstring

     <connectionStrings>
        <add name="ADConnectionString" connectionString="LDAP://specdevdc01:389/DC=Spectrum,DC=dev" />
      </connectionStrings>

    i have downloded a ldap browser and tested the connection string.It is connecting fine.

    Now i have configured my webapplication in sharepoint server by selecting forms authentication and checking the allow anonymous users checbox and opting NO in Client Integration option button.
    Entered the membership provider name with my default provider and saved it.

    Still when i tried to login i am getting login page.But when i sig in with an id in Activedirectory i am getting error message

    Server could not sign you in.Make sure Username and password are correct,and then try again.

    Anybody please help me in ressolving this.I didn't undersatand what i have missed.

  • Re: Forms authentication with Activedirectory in sharepoint server 2007

    03-02-2008, 4:41 AM
    • Loading...
    • madhur25
    • Joined on 01-09-2008, 10:20 PM
    • Hyderabad
    • Posts 82
    aditya_raj wrote:
    > HI,
    >
    > I need to configure sharepoint server webapplication with forms
    > authentication using Active Directory.
    > I have modified the web config file by adding a default membership
    > provider.
    >
    >
    >
    >
    >
    > name=" MyADMembershipProvider"
    > type="System.Web.Security.ActiveDirectoryMembershipProvider,
    > System.Web, Version=2.0.0.0, Culture=neutral,
    > PublicKeyToken=b03f5f7f11d50a3a"
    > connectionStringName="ADConnectionString"
    > attributeMapUsername="sAMAccountName"
    > connectionUsername="spectrum\administrator"
    > connectionPassword="password"/>
    >
    >
    >
    > and the added the connectionstring
    >
    >
    >
    > connectionString="LDAP://specdevdc01:389/DC=Spectrum,DC=dev" />
    >
    >
    > i have downloded a ldap browser and tested the connection string.It
    > is connecting fine.
    >
    > Now i have configured my webapplication in sharepoint server by
    > selecting forms authentication and checking the allow anonymous users
    > checbox and opting NO in Client Integration option button. Entered
    > the membership provider name with my default provider and saved it.
    >
    > Still when i tried to login i am getting login page.But when i sig in
    > with an id in Activedirectory i am getting error message
    >
    > Server could not sign you in.Make sure Username and password are
    > correct,and then try again.
    >
    > Anybody please help me in ressolving this.I didn't undersatand what i
    > have missed.

    I read on MSDN article that if you want to use Form Authentication with
    Active Directory, you should use ISA Server.

    --
    Madhur

    http://madhurahuja.blogspot.com
    Madhur Ahuja

    http://madhurahuja.blogspot.com
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter