424,301 Members | 1,295 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,301 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;
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
Jul 11 '18 #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.