Hi,
Radovan has added some way to support schemas that have some slight
differences with the RFC, using the quirkmode flag. If you are using
tehe NetworkLdapConnection, it works this way :
SchemaLoader schemaLoader = new DefaultSchemaLoader(
ldapConnection, true );
ldapConnection.loadSchema( schemaLoader );
Thats fine, except if you have declared your ldapConnection thsi way :
LdapConnection ldapConnection = new
LdapNetworkConnection( server.getServerName(), server.getPort() );
because the LdapConnection interface does not expose the loadSchema(
schemaLoader ) method.
I suggest we expose it.
I also think we should extend the ldapConnection.loadSchema() method, in
order to spare the users from declaring a SchemaLoader on their own.
That would make the code looks like :
ldapConnection.loadSchemaRelaxed();
which would replace
SchemaLoader schemaLoader = new DefaultSchemaLoader(
ldapConnection, true );
ldapConnection.loadSchema( schemaLoader );
Thoughts ?