如何使用asp.net在活动目录中获得用户的“最小密码年龄”?
使用目录服务或AspNetActiveDirectoryMembershipProvider
例如,:
from below line, I can get lastname of user.
string lastName = objDirectoryEntry.Properties["sn"].Value;
下面是用户属性列表,我在所需属性“最低密码年龄”中找不到
备注:我正在使用Asp.net
Summary----------------------- 编辑
当我试图使用目录服务或AspNetActiv
我偶然发现了一种简单但有用的方法来保护页面的密码:
代码如下:
<%
needAuthentication = True
If Request.Form.Count > 0 Then
If Request.Form("username") <> "jon" Or Request.Form("password") <> "secret" Then
' Redirect to another URI
Response.Redirect("