摘要: 首先根据UserName创建DirectoryEntry对象实例: DirectoryEntry de= new DirectoryEntry(results.Path,ADUser,ADPassword,AuthenticationTypes.Secure); 需要注意的是ADUser/ADPassword必须具有Account Operator或Administrator的权限,否则de.CommitChanges();会抛出异常。 阅读全文
posted @ 2005-07-02 00:53 Rickie 阅读(2985) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示