I have requirement to authenticate my web application using LDAP Authentication against Lotus Notes(Not Active Directory)
I found the following code from ASP Forum to get the list of users which is mainly used for Active Directory. I tried the same code against Lotus Notes but it gives "The Server is not in operational" error message.
I got server name, email and password for lotus notes to bind the server and to get list of user. I also have "CN=cnvalue,O=Orgunitvalue,C=IN" but I don't know where to pass this one. I used this in first parameter and removed.
DirectoryEntry entry = new DirectoryEntry("LDAP://ltousldap.mydomain.com:389", "username", "password", AuthenticationTypes.None);
DirectorySearcher search = new DirectorySearcher(entry);
search.Filter = "(&(objectClass=user))";
//search.SizeLimit = 1000;
foreach (SearchResult result in search.FindAll())
if (result != null)
DirectoryEntry de = result.GetDirectoryEntry();
string uid = de.Properties["uid"].Value.ToString();
uid = uid.Trim();
uid = uid.ToLower();
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.