I need to be able to create, delete and update details including changing password in active directory from a VB.net application. This application will running on a machine that is not part of the domain so there for I will need to bind as administrator or similar to do any account creation/maintenance
From what I understand I need something like this...
dim ou as object
ou = GetObject("LDAP://myDomain/CN=users, DC=myCompany,DC=com",userName, password)
set Set usr = ou.Create("user", "CN=test user")
usr.Put "samAccountName", "testuserid"
usr.Put "sn", "User"
usr.Put "givenName", "Test"
... but I can not seem to get it to work.
Does anyone have any ideas?