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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top