Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Cho phép bạn bản đồ thành viên PasswordAnswerAttemptLockoutDuration tài sản cho một thuộc tính Active Directory. Sau khi bạn hoàn thành các bước cấu hình, bạn có thể sử dụng các nhà cung cấp ActiveDirectoryMembership | 1244 CHAPTER 27 Using ASf.NET Membership enableSearchMethods Enables the ActiveDirectoryMembershipProvider class to use additional methods. You must enable this attribute when using the Web Site Administration Tool. attributeMapPasswordQuestion Enables you to map the Membership security question to an Active Directory attribute. attributeMapPasswordAnswer Enables you to map the Membership security answer to an Active Directory attribute. attributeMapFailedPasswordAnswerCount Enables you to map the Membership MaxInvalidPasswordAttempts property to an Active Directory attribute. attributeMapFailedPasswordAnswerTime Enables you to map the Membership PasswordAttemptWindow property to an Active Directory attribute. attributeMapFailedPasswordAnswerLockoutTime Enables you to map the Membership PasswordAnswerAttemptLockoutDuration property to an Active Directory attribute. After you finish these configuration steps you can use the ActiveDirectoryMembership Provider in precisely the same way that you can use the SqlMembershipProvider. When you use the Login control users are validated against Active Directory. When you use the CreateUserWizard control new users are created in Active Directory. Creating a Custom Membership Provider Because ASP.NET Membership uses the provider model you can easily extend ASP.NET membership by creating a custom Membership provider. There are two main situations in which you might need to create a custom Membership provider. First imagine that you have an existing ASP.NET 1.x or ASP classic application. You are currently storing membership information in your own custom set of database tables. Furthermore your table schemas don t easily map to the table schemas used by the SqlMembershipProvider. In this situation it makes sense to create a custom Membership provider that reflects your existing database schema. If you create a custom Membership provider you can use your existing database tables with ASP.NET Membership. Second imagine that you .