1.0

Table Of Contents
If you do not congure user authorizations for a specic user ID, the user ID inherits whatever authorization is
set as the default user authorization for the SQLFire member
(sqlfire.authz-default-connection-mode).
Tip: If you set the sqlfire.authz-default-connection-mode property to noAccess or
readOnlyAccess, you should allow at least one user read-write access. Otherwise, depending on the default
connection authorization that you specify, your system may contain database objects that cannot be
accessed or changed.
How User Authorization Properties Work Together
The sqlfire.authz-default-connection-mode and sqlfire.sql-authorization properties
work together. The default settings for these properties allow anyone to access and drop the database objects
that they create. You can change the default access mode by specifying different settings for these properties.
When the sqlfire.sql-authorization property is FALSE, the ability to read from or write to database
objects is determined by the setting for the sqlfire.authz-default-connection-mode property.
If sqlfire.authz-default-connection-mode is set to readOnlyAccess, users can access all of the
database objects but they cannot update or drop those objects.
When sqlfire.sql-authorization is TRUE, the ability to read from or write to database objects is
initially restricted to the owner of those database objects. The owner must explicitly grant permission for others
to access the database objects. No one but the owner of an object or the JVM owner can drop the object.
The access mode specied for the sqlfire.authz-default-connection-mode property overrides
the permissions that are granted by the owner of a database object. For example, if a user is granted INSERT
privileges on a table but the user only has read-only connection authorization, the user cannot insert data into
the table.
Changing Connection Authorization Settings
Connection authorization properties are xed for the duration of a connection. Establish a new connection in
order to change authorization properties.
Set the SQL Standard Authorization Mode
Use the sqlfire.sql-authorization property to enable SQLFire standard authorization.
The sqlfire.sql-authorization property controls the ability for object owners to grant and revoke
permission for users to perform actions on database objects that they create.
The valid settings for the sqlfire.sql-authorization property are:
TRUE
FALSE
The default setting for the sqlfire.sql-authorization property is FALSE.
After you set the sqlfire.sql-authorization property to TRUE, you cannot set the property back to
FALSE.
When you enable this property, all new database schemas have SQL authorization enabled.
239
Configuring Authentication and Authorization