INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

LDAP vb6 test username and password

LDAP vb6 test username and password

(OP)
I have been looking for weeks to try and find some working examples of how to test if a users username and password are correct.

the best / cleanest example i can find is below however it craps out on the set objectlist =
Private Sub Form_Load()
Set ado = CreateObject("ADODB.Connection") 'create new ADO connection
ado.Provider = "ADSDSOObject" 'use the ADSI interface
ado.Properties("User ID") = LogonName 'pass credentials - if you omit this, the search is performed....
ado.Properties("Password") = Password '... with the current credentials
ado.Properties("Encrypt Password") = True 'only needed if you set "User ID" and "Password"
ado.Open "connection-name" 'use any name for this connection

Set objectList = ado.Execute("<LDAP://abc.xyz.internal/ou=test,dc=abc,dc=internal>; LDAPfilter;ADSPath;subtree")

End Sub



the error message is Run-Time error "-2147217900 (80040e14)":

should that ado be able to test a username and password field.

any help really appreciated as i'm drawing a blank on examples and guides


RE: LDAP vb6 test username and password

Are you in the right forum?

Both your goals and the syntax above look far more like things in the domain of VBScript, not VB.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close