[
https://issues.apache.org/jira/browse/GERONIMO-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bill Brown updated GERONIMO-3076:
---------------------------------
Greetings:
The first output below is the deployment plan for the security realm I created
using the web console (I cliked the show deployment button). The realm deploys
ok but it does not work because it is missing a mysql dependency needed to to
the db lookup for the realm:
<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
<environment>
<moduleId>
<groupId>console.realm</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<type>car</type>
</moduleId>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.configs</groupId>
<artifactId>j2ee-security</artifactId>
<type>car</type>
</dependency>
<dependency>
<groupId>com.colorful</groupId>
<artifactId>jaasAuth</artifactId>
<version>1.0.0.1-SNAPSHOT</version>
<type>jar</type>
</dependency>
<!--needed mysql dependency missing here -->
</dependencies>
</environment>
<gbean name="test"
class="org.apache.geronimo.security.realm.GenericSecurityRealm"
xsi:type="dep:gbeanType"
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<attribute name="realmName">test</attribute>
<reference name="ServerInfo">
<name>ServerInfo</name>
</reference>
<reference name="LoginService">
<name>JaasLoginService</name>
</reference>
<xml-reference name="LoginModuleConfiguration">
<log:login-config
xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-1.2">
<log:login-module control-flag="REQUIRED" server-side="true"
wrap-principals="false">
<log:login-domain-name>earthbeats</log:login-domain-name>
<log:login-module-class>com.colorful.auth.AESLoginModule</log:login-module-class>
<log:option name="user">user</log:option>
<log:option name="debug">true</log:option>
<log:option name="password">password</log:option>
<log:option
name="url">jdbc:mysql://localhost/test</log:option>
<log:option name="key">keyDATA_HERE</log:option>
<log:option name="driver">com.mysql.jdbc.Driver</log:option>
</log:login-module>
</log:login-config>
</xml-reference>
</gbean>
</module>
The modified xml below contains the mysql dependency needed for the custom
realm to work. I copied the dependency tag by clicking on the jar link in the
common/lib's section of the web console.
...
<environment>
<moduleId>
<groupId>console.realm</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<type>car</type>
</moduleId>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.configs</groupId>
<artifactId>j2ee-security</artifactId>
<type>car</type>
</dependency>
<dependency>
<groupId>com.colorful</groupId>
<artifactId>jaasAuth</artifactId>
<version>1.0.0.1-SNAPSHOT</version>
<type>jar</type>
</dependency>
<!--needed mysql dependency missing here -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>3.1.12</version>
<type>jar</type>
</dependency>
</dependencies>
</environment>
...
The only way I know of to add the missing dependency is to modify the
config.xml file when the server is stopped. So the feature would be to somehow
add the needed dependency during the configuration of the realm.
Thanks for looking at this.
Bill.
> Request to add Security Realm dependencies from the web console
> ---------------------------------------------------------------
>
> Key: GERONIMO-3076
> URL: https://issues.apache.org/jira/browse/GERONIMO-3076
> Project: Geronimo
> Issue Type: Improvement
> Security Level: public(Regular issues)
> Components: security
> Affects Versions: 2.0-M4
> Environment: all
> Reporter: Bill Brown
>
> Greetings:
> I am not sure if this has already been requested. I have a custom jaas
> security realm I use for authentication. The realm depends on a library in
> the common lib. When the server is down I can add the dependency tag in the
> gbean for the realm in the config.xml file. I think it would be a neat
> feature to be able to add this and other dependencies to the realm from
> within the web console while the server is running without having to edit the
> config.xml server when the server is stopped.
> Thanks for the consideration.
> Bill.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.