Active Directory Authentication in .NET2.0

  • Thread starter Thread starter suresh.csharp
  • Start date Start date
S

suresh.csharp

Hi,
I am trying to write Windows Form application in .NET 2.0, which
needs ActiveDirectory Authentication module integration. Can any one
point me to related links. Please suggest me what is the right way of
doing in .NET 2.0.


Thanks
Suresh Eddala
 
What exactly do you want to do?

You can get the roles (groups) for the user by doing this at startup:

Thread.CurrentPrincipal = new WindowsPrincipal(
WindowsIdentity.GetCurrent() );

if ( Thread.CurrentPrincipal.IsInRole( "Sales" ) {
// only allow sales to do this
}

Andy
 
Back
Top