To administer security realms via the Geronimo Administration Console the Security Realms portlet is available on the Console Navigation menu on the left hand side. This portlet allows you to add a new security realm or edit an existing one. To remove realms you would normally use the command line option with the Deployer tool.

Listed in this portlet you will find all the available security realms. By default, the security realm used by Geronimo to authenticate users via properties file is geronimo-admin.

When you edit an existing realm (in this case geronimo-admin) you will be presented with the following screen, note that you will not be able to change the realm name nor the login domain name.

The following example illustrates the deployment plan generated by this realm.

<module xmlns="">
    <gbean name="geronimo-admin" class="" xsi:type="dep:gbeanType"  
           xmlns:dep="" xmlns:xsi="">
        <attribute name="realmName">geronimo-admin</attribute>
        <reference name="ServerInfo">
        <xml-reference name="LoginModuleConfiguration">
            <log:login-config xmlns:log="">
                <log:login-module control-flag="REQUIRED" wrap-principals="false">
                    <log:option name="usersURI">var/security/</log:option>
                    <log:option name="groupsURI">var/security/</log:option>

As we mentioned before, this plan is for the default, properties file based, security realm. When you create a new realm you will have to choose from the following realm types available:

  • Certificate Properties File Realm
  • Database (SQL) Realm
  • LDAP Realm
  • Properties File Realm
  • Other

The last available option lets you create your custom realm type when none of the above fits your environment needs.

Having the Properties File Realm covered by default we will now focus on the other alternatives.

  • No labels