Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello everyone,

what are the pre-requisite to connect a "asp.net website using vb" with ldap?

Some Details :

domain name: esnlab.local, IP : 192.168.60.146

Users :Total ten(10) users are there like : abhijit,amit,bitan,chinmoy,lalit,nivesh,vinod,vikash1,poulomi,santanu.

Password: "admin@123" for all

what will be the code please suggest me ?

Is there anyone who will provide me the exact code.....If there any more details required then please ask me or post it here. But please help regarding this matter. I am eager to see the solutions.......plz...plz...
Posted
Updated 4-Dec-12 18:51pm
v2
Comments
ZurdoDev 26-Nov-12 8:45am    
You'll want to look into the DirectoryServices namespace. http://msdn.microsoft.com/en-us/library/system.directoryservices.directoryentry.aspx
Abhijit Dan 26-Nov-12 10:42am    
hey Tim,

Could you please provide me the code by which I can connect my website with Active Directory using LDAP.

1 solution

You will need to do some work on this, since most examples are in C# but they convert quite easily to VB.NET using a converter. Here are a couple I found:

http://stackoverflow.com/questions/9812199/adding-users-to-ad-using-ldap[^]
Howto: (Almost) Everything In Active Directory via C#[^]

These will get you started working with LDAP in your code. They both show methods for accessing, reading, and updating Active Directory using LDAP.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900