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 :
<configuration>
  <configSections>
      <sectionGroup name="System.DirectoryServices">
<section name="Settings" type="System.Configuration.NameValueSectionHandler"/>
      </sectionGroup>
  </configSections>

  <System.DirectoryServices>
      <Settings>
          <add key="servername" value="<server name>"/>
          <add key="port" value="389"/>
      </Settings>
  </System.DirectoryServices>
</configuration>

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

Boris

--
Boris Kirzner
Mainsoft Corporation
http://www.mainsoft.com

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to