HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2016-05-13 aabb5d1781654f694fdec399d342aa52c3dc21c5
revoke any privileges for unknown users from created database
1 files modified
1 ■■■■ changed files
hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseProcessorFactory.java 1 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseProcessorFactory.java
@@ -27,6 +27,7 @@
        String aEncoding = AbstractEntity.escapeString(db.getEncoding());
        aJDBCP = createPostgreSqlAdminProcessor();
        aJDBCP.addSQL("CREATE DATABASE " + aName + " OWNER=" + aOwner + " ENCODING='" + aEncoding + "' TEMPLATE template0");
        aJDBCP.addSQL("REVOKE ALL ON DATABASE " + aName + " FROM public");
        return aJDBCP;
    }