Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AD Conection...

Status
Not open for further replies.

evil76

Technical User
Sep 18, 2003
12
ES
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top