// cleanup gets a conn using the ldap user & pwd, so we can unset the
// requireAuthentication so the default teardown & db cleanup can happen
protected void cleanup(DataSource ds) throws SQLException {
Connection conn2 = ds.getConnection(ldapUser, ldapPassword);
setDatabaseProperty("derby.connection.requireAuthentication", "false", conn2);
conn2.commit();
JDBCDataSource.setBeanProperty(ds, "shutdownDatabase", "shutdown");
// shutdown only really happens on attempting to get a connection;
// this exercise is needed so the DatabasePropertySetup.teardown() can work.
// Getting a 08006 is not really part of the test, but would be good
// to be warned of if it happens.