Hi Folks,
I'm working on ASP.NET/C# web application hosted in Apache 2.0 w/ mod_mono module 1.0 
on Red Hat Linux 9.0 . The application now uses LDAP for search and retrieval in 
iPlanet Directory Server. Although it worked fine when developed on Windows 2000 
Server w/ IIS 5.0, the production version on Red Hat Linux 9.0 doesn't work for 
methods in System.DirectoryServices.
 
My code looks like this:
 
-----------
...
using System.DirectoryServices;
...
DirectoryEntry de = new DirectoryEntry(strLdapAddress + strLdapBasePath);
DirectorySearcher searcher = new DirectorySearcher();
 
de.AuthenticationType = AuthenticationTypes.None;
 
de.Username = strCN;
de.Password = strPassword;
string name = de.Name; //force a bind
//de.RefreshCache();
searcher.SearchRoot = de;
searcher.Filter = strFilter;
searcher.SearchScope = SearchScope.Subtree;
searcher.PropertiesToLoad.Add("uid");
searcher.PropertiesToLoad.Add("Phone");
 
searcher.Sort = new SortOption("uid", SortDirection.Ascending);
 
SearchResultCollection results = searcher.FindAll();
...
-----------
 
First it complaint about RefreshCache() method -- 
"System.DirectoryServices.DirectoryEntry.RefreshCache()".
 
After commenting the RefreshCache() method call, it now says: "The requested feature 
is not implemented".
 
This works fine on IIS 5.0 on Windows, i.e., Microsoft .NET version 1.1.

Any pointer to resolve this challenge will be higly appreciated.
Thanks in advance.. �

Reply via email to