LDAP Configuration

The LdapConfiguration class allows you to configure your class mappings, set the page size for the server (defaults to 500), control the scope of the configuration, disable paging, and configure a default connection factory for DirectoryContext. The configuration should only be done once, but you can have one or more configurations at a time.
Add Mappings
This will forward calls to the Directory Mapper associated with this configuration.

var config = new LdapConfiguration()
    .AddMapping(new AttributeClassMap<Role>())
    .AddMappingsFrom("OtherMappings.dll");
Configure Factory
There are two default factories available for configuration via LdapConfiguration. You can read more about them in the Connection Factories section. You can also specify a custom factory that implements ILdapConnectionFactory.

config.ConfigureFactory("myserver.com");

config.ConfigurePooledFactory("myserver.com");

config.ConfigureCustomFactory(/*custom factory*/);

Last edited Jun 12, 2012 at 3:37 AM by MadHatter22, version 10