摘要: ASP.NET 2.0 allows you to validate users via Active Directory, database, or even a custom algorithm. ASP.NET 2.0 supports a provider-based model for a number of application services including me... 阅读全文
posted @ 2007-04-11 10:00 李占卫 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: Common Patterns in System.DirectoryServicesSearching the Directory: Create a DirectoryEntry that represents your SearchRoot. Your searches will be rooted to this location and will have the same ... 阅读全文
posted @ 2007-04-11 10:00 李占卫 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 创建示例1. 打开 Microsoft Visual Studio .NET,然后新建一个 Visual C# Console 应用程序项目。 2. 在“解决方案资源管理器”中,右键单击引用,然后单击添加引用。 3. 添加一个对 System.DirectoryServices.dll 程序集的引用。 4. 将 Class1.cs 中的代码替换为下面的代码: using System;usi... 阅读全文
posted @ 2007-04-11 09:59 李占卫 阅读(594) 评论(0) 推荐(0) 编辑
摘要: The System.DirectoryServices namespace provides easy access to Active Directory from managed code. The namespace contains two component classes, DirectoryEntry and DirectorySearcher, which use the Act... 阅读全文
posted @ 2007-04-11 09:57 李占卫 阅读(479) 评论(0) 推荐(0) 编辑
摘要: .NET Framework Class Library: System.DirectoryServices Namespace http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdirectoryservices.asp How to poll for changes to the Active Directory by ... 阅读全文
posted @ 2007-04-11 09:57 李占卫 阅读(387) 评论(0) 推荐(0) 编辑
摘要: System.DirectoryServices.Protocols.dll是.net2.0新增加的一个针对目录服务访问协议处理的组件,其下只有一个System.DirectoryServices.Protocols命名空间。在该命名空间下,主要有LDAP、DSML两种国际标准协议的一系列实现类。通过这些类,完全可以很方便地实现对目录的操作管理,这... 阅读全文
posted @ 2007-04-11 09:53 李占卫 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 为什么要有活动目录,什么是活动目录,它有什么用:活动目录主要用在分布式的环境中。在分布式环境中,要求有各种信息可以被各种应用很方便地访问读取。活动目录正式为分布式环境中的信息提供一种访问途径。它提供了一个公共的区域来保存分布式环境中的各种信息,并且对这些信息进行定位。从开发人员角度看活动目录,可以理解活动目录是一种存放了应用程序所需要的特定资源信息的“数据库”。活动目录还对这些资源信息... 阅读全文
posted @ 2007-04-11 09:43 李占卫 阅读(302) 评论(0) 推荐(0) 编辑