LDAP state

G

gregory_regan

Hi

I am very new to dotnet asp programming and am feeling my way around
various ldap queries and appear to have reached a brick wall - perhaps
someone would be kind enough to help.

In a nutshell I need to verify that my logged on users have a
connection to Active Directory and the connection state.

I am using the System.DirectoryServices namespace to achieve my
connection and everything I have tried works really well provided that
I have a connection, however, there are instances where my user base
will not be able to connect to AD and as such I need to error trap the
connection state.


I know that it is possible to do this, for instance, with a SQL
database

Dim connection As New
System.Data.SqlClient.SqlConnection("dbConnectionString")
connection .Open()
Dim ConnectionState = connection .State()

Anyone know how to do the equivalent with System.DirectoryServices

Thanks in advance

Greg
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top