G
Guest
'***********************************************
Dim MySearcher As New
DirectorySearcher("LDAP://CN=Users,DC=corporate,DC=domainname,DC=com")
' Create a DirectorySearcher object.
Dim resEnt As SearchResult = MySearcher.FindOne()
'Now what? None of the examples are getting what I need
'***********************************************
I am a newbie and am simply trying to figure out how to query Active
Directory to see if a username being created on the Windows Form already
exists.
I feel like I am really close, but just can't get it.
(p.s. Although I am on A Windows Form, I have added the System.Web &
System.DirectoryServices references)
Thank you very much!
Environment:
Visual Studio 2005
Windows 2003 Mixed-Mode
Dim MySearcher As New
DirectorySearcher("LDAP://CN=Users,DC=corporate,DC=domainname,DC=com")
' Create a DirectorySearcher object.
Dim resEnt As SearchResult = MySearcher.FindOne()
'Now what? None of the examples are getting what I need
'***********************************************
I am a newbie and am simply trying to figure out how to query Active
Directory to see if a username being created on the Windows Form already
exists.
I feel like I am really close, but just can't get it.
(p.s. Although I am on A Windows Form, I have added the System.Web &
System.DirectoryServices references)
Thank you very much!
Environment:
Visual Studio 2005
Windows 2003 Mixed-Mode