Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8685917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:42:07+00:00 2026-06-12T22:42:07+00:00

I need to configure a connection string for a Active Directory, my web application

  • 0

I need to configure a connection string for a Active Directory, my web application is on the same machine where I can access the Active Directory

at the moment I’m using this string with no success

<add name="ADConnectionString" connectionString="" />

could you please point me out the right direction because this is the first time I’m doing a lookup against Active Directory.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:42:09+00:00Added an answer on June 12, 2026 at 10:42 pm

    Access Active Directory security requires a connection string to your Active Directory. Your system administrator should provide you with appropriate connection string information. The Application Security Wizard provides the possible Active Directory connection strings for the root domain controller and for the first-level domain controllers, which is sufficient to connect to Active Directory and use Active Directory security. This is a very powerful feature. Without Active directory available, no one can be authenticated. Configured connection strings are stored as a value of the ADDomainControllers key in your application’s Web.config file. If the Active Directory controller is not available when configuring application security via the Application Security Wizard, then no roles will be visible in the wizard except standard roles. Hence, Active Directory role configuration is possible only when the Application Security Wizard can reach the Active Directory controller.

    Steps required to provide authentication against Active Directory, either for new sites with no authentication, or for existing sites using database authentication…

    The Active Directory connection string is simliar to the database connection string used in ASP.NET, except that it references an LDAP address.

        <connectionStrings>
         <add name="ADConnectionString"
          connectionString="LDAP://Product.com.au/DC=Product,DC=prd,DC=au"/>
         </connectionStrings>
    

    this in web.config file and its for entire Product. We can do this for particular,

    like

    <connectionStrings>
    <add name="ADConnectionString"
      connectionString="LDAP://Sub.Product.com.au/CN=Sub,DC=Product,DC=prd,DC=au"/>
     </connectionStrings>
    

    Then Configure the Membership provider

    <membership defaultProvider="defaultProviderName">
    <providers>
        <add name="defaultProviderName"
        type="System.Web.Security.ActiveDirectoryMembershipProvider,
        System.Web, Version=2.0.0.0, Culture=neutral,
        PublicKeyToken=b03f5f7f11d50a3a"
        connectionStringName="NmaeActiveDirConnectionString"
        attributeMapUsername="Name"/>
    </providers>
    </membership>
    

    Then Configure the Authentication and Authorization parameters,
    This settings above require every user to authenticate before accessing your web application. ASP.NET will automatically redirect these users to a Login.aspx page.

    <authentication mode="Forms">
    <forms name=".ADAuthCookie" timeout="43200"/>
     </authentication>
      <authorization>
      <deny users="?"/>
      <allow users="*"/>
     </authorization>
    

    Last step is create Login Page,

    Membership.GetUser(UserName) using to get the details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created the application in which I need to configure the connection pool.In
Can anyone tell me the correct syntax? I need to enter the connection string
I am using hibernate.properties to configure my hibernate connection to mysql. But I need
I need to be able to configure my connection string at run time, preferably
I'm using an application called Logi info. it requires a connection string to my
I have a windows application (C#) and i need to configure it to run
I need to setup ActiveMQ with MySQL which i follow this article http://note19.com/2007/06/23/configure-activemq-with-mysql/ I
I am using Oracle 9 JDBC Thin Driver - the connection string I have
I need to know where and how application settings (connections string) could be stored
I'm attempting to configure ELMAH error logging in an ASP.NET 4 application using SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.