Not necessarily looking for someone to write the code, but have been looking for examples and I can not find. I want to take the below code and make it a DLL so I can call it from VB or ASP applications. Any help greatly appreciated.
Dim strUserName
Dim strPassword
On Error GoTo displaymessage:
Set oADsNamespace = GetObject("LDAP:")
Set oADsObject = oADsNamespace.OpenDSObject("LDAP://domainname.local", "domainname\" & strUserName, strPassword, 0)
If (Err.Number = 0) Then
MsgBox "USER AUHTENTICATED!"
Exit Sub
End If
displaymessage:
MsgBox "Invalid Username or Password
Dim strUserName
Dim strPassword
On Error GoTo displaymessage:
Set oADsNamespace = GetObject("LDAP:")
Set oADsObject = oADsNamespace.OpenDSObject("LDAP://domainname.local", "domainname\" & strUserName, strPassword, 0)
If (Err.Number = 0) Then
MsgBox "USER AUHTENTICATED!"
Exit Sub
End If
displaymessage:
MsgBox "Invalid Username or Password