I am looking to get authentication against our corporate active directory.
I have a username and password box that someone will fill out. When they click submit, it should verify if the user entered a valid username and password against the active directory.
In asp.net (Visual Basic .NET 1.1) I have:
I basically just need code that says, myDirectory.valid
Any ideas? Just looking for some simple line of code....
Thanks
I have a username and password box that someone will fill out. When they click submit, it should verify if the user entered a valid username and password against the active directory.
In asp.net (Visual Basic .NET 1.1) I have:
Code:
Dim myADSPath As String "LDAP://domain.local/CN=Users,DC=domain,DC=local"
' Create an Instance of DirectoryEntry.
Dim myDirectoryEntry As New DirectoryEntry(myADSPath)
myDirectoryEntry.Username = txtUsername.Text
myDirectoryEntry.Password = txtPassword.Text
Any ideas? Just looking for some simple line of code....
Thanks