System.DirectoryServices in a WinForms application

S

samchurchill82

Hi,

I've seen loads of web articles and forums telling me how to use
System.DirectoryServices to interegate Active Directory from ASP.NET
but I want to do it from a standard VB.NET Windows Forms application.
When I put in "imports System.DirectoryServices" at the top of the
Class it doesn't like it. Any ideas? Is it just for ASP.NET rather
than being a general .NET namespace?

(The overall aim, just in case there's another simpler way of doing it,
is to write a

UserIsValidOnDomain(byval username as string, byval password as string)
as Boolean

function.)

Thanks in advance,

Sam
 
C

Cor Ligthert [MVP]

Sam,

Probably

Choose Projects -> add reference -> System.directoryservices.dll -> add ->
OK

I hope this helps,

Cor
 

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

Top