我们正在使用MS Visual Studio 2008 VB .Net开发我们的应用程序。使用.Net的Active Directory服务器
我们必须使用Active Directory Server来验证登录到应用程序的用户。
有没有人有代码样本集成.net和ADS?
我们正在使用MS Visual Studio 2008 VB .Net开发我们的应用程序。使用.Net的Active Directory服务器
我们必须使用Active Directory Server来验证登录到应用程序的用户。
有没有人有代码样本集成.net和ADS?
有关于这一主题的CodeProject上的文章:
和MSDN上的System.DirectoryServices
文档中,有
,然后对新功能的支持AD与.NET 2.0和3.5两个真正的好文章:
假设你打算把用户到Active Directory组进行身份验证:
' Assume an Active Directory group exists named "MyApp Admins" with users in it.
If My.User.CurrentPrincipal.IsInRole("MyApp Admins") Then
' Do stuff
End If