| | |
| | | |
| | | // Add missing matching rules and attribute syntaxes to base schema to allow read of remote server schema |
| | | // (see OPENDJ-1122 for more details) |
| | | //SchemaHandler.addServerSyntaxesAndMatchingRules(schemaBuilder); |
| | | SchemaHandler.addServerSyntaxesAndMatchingRules(schemaBuilder); |
| | | |
| | | // Add remote schema entry |
| | | final SearchRequest request = newSearchRequest( |
| | | DN.valueOf(DN_DEFAULT_SCHEMA_ROOT), BASE_OBJECT, Filter.alwaysTrue(), |
| | | ATTR_LDAP_SYNTAXES, ATTR_ATTRIBUTE_TYPES, ATTR_OBJECTCLASSES); |
| | | final SearchResultEntry entry = connWrapper.getConnection().searchSingleEntry(request); |
| | | removeNonOpenDjOrOpenDsSyntaxes(entry); |
| | | new SchemaBuilder(getBaseSchema()).addSchema(entry, true); |
| | | //removeNonOpenDjOrOpenDsSyntaxes(entry); |
| | | schemaBuilder.addSchema(entry, true); |
| | | |
| | | return buildSchema(schemaBuilder); |
| | | return schemaBuilder.toSchema(); |
| | | |
| | | } |
| | | |