blob: 4cbb35122107af6820dd38f3ae186c9f2ecae94a [file]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- $Rev$ $Date$ -->
<openejb-jar
xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2"
xmlns:cs="http://geronimo.apache.org/xml/ns/credentialstore-1.0">
<environment>
<export-package>
org.apache.geronimo.monitoring.ejb
</export-package>
</environment>
<enterprise-beans>
<session>
<ejb-name>ejb/mgmt/MRC</ejb-name>
<jndi-name>ejb/mgmt/MRC</jndi-name>
</session>
</enterprise-beans>
<sec:security>
<sec:credential-store-ref>
<sys:name>monitoring-credential-store</sys:name>
</sec:credential-store-ref>
<sec:default-subject>
<sec:realm>monitoring-runas-realm</sec:realm>
<sec:id>monitoring-user</sec:id>
</sec:default-subject>
<sec:role-mappings>
<sec:role role-name="mejbuser">
<sec:principal name="admin"
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"/>
<sec:principal name="mejb-admin"
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"/>
</sec:role>
<sec:role role-name="mejbadmin">
<sec:principal name="mejb-admin"
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"/>
</sec:role>
</sec:role-mappings>
</sec:security>
<sys:gbean name="monitoring-credential-store" class="org.apache.geronimo.security.credentialstore.SimpleCredentialStoreImpl">
<sys:xml-attribute name="credentialStore">
<cs:credential-store>
<cs:realm name="monitoring-runas-realm">
<cs:subject>
<cs:id>monitoring-user</cs:id>
<cs:credential>
<cs:type>org.apache.geronimo.security.credentialstore.NameCallbackHandler</cs:type>
<cs:value>admin</cs:value>
</cs:credential>
</cs:subject>
</cs:realm>
</cs:credential-store>
</sys:xml-attribute>
<sys:reference name="Realms">
<sys:name>monitoring-runas-realm</sys:name>
</sys:reference>
<sys:dependency>
<nam:name>monitoring-runas-realm</nam:name>
</sys:dependency>
</sys:gbean>
<!-- the realm is in the agent-ds plan although it should be here. For some reason it doesn't always start before the credential-store
despite the dependency -->
</openejb-jar>