[Mono-devel-list] System.DirectoryServices - implementing default LDAP root functionality

Boris Kirzner borisk at mainsoft.com
Tue Jun 7 12:36:59 EDT 2005

Hello all
.NET framework System.DirectoryServices classes provide an ability for 
user to omit the specification of the LDAP server he wants to connect to 
and use a "default" server (actually, default root dsn also) that exists 
somewhere on the network. It seems that they try to retrieve rootDSE 
information from the domain server.
My proposal for providing the ability for querying rootDSE in our 
implementation is to enable user to specify his default server name at 
config  level (both machine.config and override in app.config).

The section should look like the following :
       <sectionGroup name="System.DirectoryServices">
           <section name="Settings" 

           <add key="servername" value="<server name>"/>
           <add key="port" value="389"/>

The implementation will retrieve this information if server information 
was not provided in user code, cache and use it as a default.


Boris Kirzner
Mainsoft Corporation

More information about the Mono-devel-list mailing list