ADSI for Beginners
In this example we are going to build our own web based management system using the concepts presented in this article.
The demo will have a backend VB DLL, and two interfaces that should be useful. The first interface is a standard VB Client interface, allowing you to perform the following:
-View all users in a group
-Remove a user
-Add a user
-Change a user's password
-Reset a user's password
There is also a simple ASP interface, that provides all of the above features bar viewing all the users in a group (this is due to VB Scripts lack of support for collections).
To get all this to work you will have to download the demo project from here:http://www.vbsquare.com/demos/adsi-demo/
Unzip the lot, and register the prjAdmin.DLL file on your web server (must be IIS). Place the ASP files in your wwwroot area somewhere, and point your browser to default.asp. From there you can test out the DLL. Make sure that you enter the correct details in the forms, otherwise errors may occur (there is no error handling currently!)
The VB client requires the DLL to be registered but can be run normally to see how VB interacts with our component. The source code for the DLL is included, so have a look around and see how it all works.
If you have any problems don't hesitate to email me at: email@example.com
Page 5 of 5