By default, the embedded Derby database server does not use authentication for database connections. Security for the Derby database can be enabled by creating a derby.properties
file under the <GERONIMO_HOME>/var/derby
directory. The contents of a sample properties file are shown below:
derby.connection.requireAuthentication=true derby.authentication.provider=BUILTIN derby.user.userName1=password1 derby.user.userName2=password2
Here, the authentication mechanism used is BUILTIN
, whereby the usernames and passwords are specified in the properties file itself. The authentication methods that can be used are:
In derby.properties
, two users— "userName1" with password "password1" and "userName2" with password "password2" are created.
Users can...