I'am working on a program to add users to a Active directory. I made it in VBscript and now i want to do it in VB .NET, but i couldn't connect to the Domain with LDAP.
Iam using a W2k machine, added on the domain but my user connect in local not on domain becose its mobile and i have to connect to many domains and i have to connect on local machine.
My code its:
sDomain = TextBox_DOMINIO.Text
oContainer = GetObject("LDAP://CN=Users,DC=" & sDomain)
And return me and error. I have probe all i can probe.... connect before to the ldap and then with de DC with user and password. to de machine and the to the DC.
Now i dont know what i can do. I need help to do it. My next step could be connect to the domain my computer and probe but it is something i didn want to do.
Help..... Its any way to do it???
Thanks From Canary Island
Iam using a W2k machine, added on the domain but my user connect in local not on domain becose its mobile and i have to connect to many domains and i have to connect on local machine.
My code its:
sDomain = TextBox_DOMINIO.Text
oContainer = GetObject("LDAP://CN=Users,DC=" & sDomain)
And return me and error. I have probe all i can probe.... connect before to the ldap and then with de DC with user and password. to de machine and the to the DC.
Now i dont know what i can do. I need help to do it. My next step could be connect to the domain my computer and probe but it is something i didn want to do.
Help..... Its any way to do it???
Thanks From Canary Island