/** * {@inheritDoc} */ @Override public void loadSchema() throws LdapException { loadSchema( new DefaultSchemaLoader( this ) ); }
/** * {@inheritDoc} */ @Override public void loadSchema() throws LdapException { loadSchema( new DefaultSchemaLoader( this ) ); }
/** * {@inheritDoc} */ @Override public void loadSchemaRelaxed() throws LdapException { loadSchema( new DefaultSchemaLoader( this, true ) ); }
/** * {@inheritDoc} */ @Override public void loadSchemaRelaxed() throws LdapException { loadSchema( new DefaultSchemaLoader( this, true ) ); }
/** * {@inheritDoc} */ @Override public void loadSchema() throws LdapException { loadSchema( new DefaultSchemaLoader( this ) ); }
/** * {@inheritDoc} */ @Override public void loadSchemaRelaxed() throws LdapException { loadSchema( new DefaultSchemaLoader( this, true ) ); }
/** * Opens the dao's connection. Dn and credentials are used for authentication. Throws an {@link LdapDaoException} in * case of IO error or invalid dn. * */ public void connect(String dn, String credentials) { BindRequest bindRequest = new BindRequestImpl(); bindRequest.setCredentials(credentials); try { bindRequest.setDn(new Dn(dn)); connection.connect(); connection.bind(bindRequest); ((LdapNetworkConnection) connection).loadSchema(new DefaultSchemaLoader(connection)); } catch (Exception e) { throw new LdapDaoException(e); } }