asp.net.ph

ActiveDirectoryConnectionProtection Enumeration

System.Web.Security Namespace


.NET Framework version 2.0

Specifies the connection protection options supported by the ActiveDirectoryMembershipProvider class.

Members


Member Description
None No transport layer security is used. Explicit credentials for the Active Directory connection must be provided in the configuration file.
SignAndSeal The connection to the Active Directory server is secured by digitally signing and encrypting each packet sent to the server.
Ssl An SSL connection is used to connect to the Active Directory server.

Remarks

The ActiveDirectoryConnectionProtection enumeration is used in an application's configuration file to set the protocol used to secure communications between an ActiveDirectoryMembershipProvider object and an Active Directory or Active Directory Application Mode server.

The enumeration indicates the type of connection security the provider established based on the connectionProtection attribute of the membership configuration element. The connectionProtection attribute can be set only to either None or SignAndSeal.

Example

The following code example shows a Web.config entry that configures an ActiveDirectoryMembershipProvider instance to use the SSL security protocol to connect to an Active Directory server.

<configuration>
   <connectionStrings>
      <add name = "ADService"
         connectionString = "LDAP://ldapServer/" />
   </connectionStrings>
   <system.web>
      <membership defaultProvider = "AspNetActiveDirectoryMembershipProvider">
         <providers>
            <add name = "AspNetActiveDirectoryMembershipProvider"   
               type = "System.Web.Security.ActiveDirectoryMembershipProvider,   
                  System.Web, Version=2.0.3600, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
               connectionProtection = "SignAndSeal" />
         </providers>
      </membership>
   </system.web>
</configuration>
Skip Navigation Links



Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph