ASP.NET 4 Unleased - p 128

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 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 Membership uses the provider model you can easily extend 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 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 Membership. Second imagine that you .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.