中获取用户信息在用户通过》,下一步检索用户信息并显示。1. 中检索用户信息/// This will return a DirectoryEntry object if the user does exist /// <returns></returns> //create an instance of th
创建 ADUser/ADPassword或de.CommitChanges(); 中获取AD的扩展属性extensionAttribute6public static void UpdateUserByDataSet(DataSet dsUser) DataRow theRow = dsUser.Tables[0].R
属性来判断Lock/Unlock不支持WinNT Provider提供程序标识符区分大小写)1. 属性,判断是否DirectoryEntry de = new DirectoryEntry(strUser); boolLocked = True = False
DirectoryEntry objDE;//列出用户objDE=new DirectoryEntry("LDAP://yourserver","Administrator","pwd",System.DirectoryServices.AuthenticationTypes.ServerBind);System.DirectoryServices.DirectorySearcher mySear
System.DirectoryServices.Protocols.dll是.NET2.0新增加的一个针对目录服务访问协议处理的组件,其下只有一个System.DirectoryServices.Protocols命名空间。在该命名空间下,主要有LDAP、DSML两种国际标准协议的一系列实现类。通过这些类,完全可以很方便地实现对目录的操作管理,这个实现步骤就有点类似你利用ADO.NET操作数据库
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号