Last post Oct 25, 2012 06:04 AM by thanjaipvr
Oct 25, 2012 06:04 AM|thanjaipvr|LINK
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();
Kindly suggest me to over come and guide me what is required to pass as parameter in DirectoryEntry class.