由于用户登录时候密码错误次数太多而被锁定.
现在需要用C#来实现对用户账号的解锁.
我尝试使用userAccountControl属性和Accountdisabled均不成功.
特来求救,感激不尽.
现在需要用C#来实现对用户账号的解锁.
我尝试使用userAccountControl属性和Accountdisabled均不成功.
特来求救,感激不尽.
解决方案 »
- 爸、妈、媳妇有没有车票用这个看---C# 火车票查询助手0.32,支持精确票数显示
- C#编程实现将图片赋值给控件pictureBox1-6中
- WebBrowser中的事件怎么没有触发,WebBrowser只能用在Form中吗
- 如何解决asp.net中文件的上传和下载超过4M的问题,有着独到的见解,等待高手的解决!
- 想问个问题 怎么做投票器呢。。。。
- 我写的多线程发送数据多个线程调同一个方法,当发送一万多条数据后循环就停了。错误信息是可能达到了线程池最大数。
- 初学C#有很多疑问
- 关于从repeater中读取同页面中dropdownList选中值的问题
- webBrowser设置页面内容出现乱码?
- 字
- DataList的EditCommand事件中获取不到EditItemTemplate中的控件
- 继承自同一模板页的两aspx页面一个乱码一个正常
"fabrikam.com",
"CN=Users,DC=fabrikam,DC=com",
"administrator",
"SecretPwd123");
UserPrincipal usr = UserPrincipal.FindByIdentity(ctx, "John Smith");
if (usr != null)
{
if (usr.IsAccountLockedOut())
usr.UnlockAccount(); usr.Dispose();
}
ctx.Dispose(); http://msdn.microsoft.com/en-us/library/system.directoryservices.accountmanagement.authenticableprincipal.unlockaccount.aspx