Active Directory

  • Thread starter Thread starter Tim
  • Start date Start date
Here's the basics you can search for the nuances of the WindowsIdentity and
WindowsPrincipal classes. If this is for an ASP.NET application you can
access the user.Identity

Imports System.Security

Dim wi As New Principal.WindowsIdentity("userName")

Dim wp As New Principal.WindowsPrincipal(a)

If wp.IsInRole("domainName\groupName") Then

End If
 
Back
Top