Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

LDAP for VB

Posted on 2001-07-25
7
Medium Priority
?
563 Views
Last Modified: 2010-05-18
I want to connect and authenticate user to an LDAP server using VB. I also want to change my password on the LDAP server using VB. Are there any available OCX (free) that can be used? Any sample

Thanks
0
Comment
Question by:puruknoy
  • 4
  • 2
7 Comments
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6316914
Go here and search the page for LDAP.. they have code samples

http://developer.novell.com/support/sample/areas/vbs.htm
0
 

Accepted Solution

by:
jackyx earned 400 total points
ID: 6316942
You must install the ADSI runtime (ADS.EXE) available from www.microsoft.com/ntserver/info/adsi.htm, and then add a reference to Active DS Type Library.

Note: Windows 2000 includes the ADSI 2.5 runtime. Installation of the above runtime is not required.

Here is some code snippet (not completed) but it will help you get going.  Once you referenced ADSI 2.5 you will find all objects in the object explorer (F2 key).

You will find all the needed info in the net or look at the ADSI samples in VB from Microsoft website.

...
'Declaration here
Dim machinename As IADs...
Dim username As IADS...
...
'Make the ADSI call for password change
Set oUser = GetObject("WinNT://machinename/username")
oUser.ChangePassword "oldpassword", "newpassword"
oUser.SetInfo
Set oUser = Nothing
...

Well i hope this was what you needed.

Regards

jackyx
0
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6316963
jackyx.

Please the the section "Tips on Comments and Answers" at the bottom of this page.

Hint:  if you have to put something like ("Well i hope this was what you needed.") in your post, it should probably be a comment.

Thanks

Dave
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:puruknoy
ID: 6320347
I still have to try that solution, Dave green was right but anyway thanks for the tip and effort.
0
 

Author Comment

by:puruknoy
ID: 6320403
Dave_Green, where can i find the LDAPSDK Library to be used in the VB sample program?

http://developer.novell.com/support/sample/areas/vbs.htm 

Thanks
0
 

Author Comment

by:puruknoy
ID: 6320522
Dave_Green, where can i find the LDAPSDK Library to be used in the VB sample program?

http://developer.novell.com/support/sample/areas/vbs.htm 

Thanks
0
 

Author Comment

by:puruknoy
ID: 6320587
Dave_Green, where can i find the LDAPSDK Library to be used in the VB sample program?

http://developer.novell.com/support/sample/areas/vbs.htm 

Thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question