422,904 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,904 IT Pros & Developers. It's quick & easy.

C# code to connect LDAP server and after connecting clearup the values of a attribute

P: 1
string User = "uid=xxxxxxxx,ou=xxxxxxxxx";
string domain = "LDAP://";
string Password = "xxxxx";
//string domainAndUsername = domain + @"\" + username;
try
{
DirectoryEntry entry = new DirectoryEntry(domain, User, Password);
// object obj = entry.NativeObject;
Console.Out.WriteLine("Login Successful");

im not able to connect with LDAP and i need a code to delete the values of an attribute to all the users in LDAP
4 Days Ago #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.