The easiest way is to use the EJBUser usermanager. You will need to refer to
the ejb in your ejb-jar.xml. There is an orion security adapter available
for the petstore example, and this works well with the EJBUser usermanager
as long as you have the entity bean reference as noted below.
Of course, you will need to specify your security roles in the web.xml
document. We use this entity reference in our ejb-jar.xml:
<entity>
<display-name>EJBUser</display-name>
<description>EJBUser management....</description>
<ejb-name>com.evermind.ejb.EJBUser</ejb-name>
<home>com.evermind.ejb.EJBUserHome</home>
<remote>com.evermind.ejb.EJBUser</remote>
<ejb-class>com.evermind.ejb.EJBUserBean</ejb-class>
<persistence-type>Container</persistence-type>
<primkey-class>java.lang.String</primkey-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>username</field-name>
</cmp-field>
<cmp-field>
<field-name>password</field-name>
</cmp-field>
<cmp-field>
<field-name>description</field-name>
</cmp-field>
<cmp-field>
<field-name>locale</field-name>
</cmp-field>
<cmp-field>
<field-name>certificateIssuerDN</field-name>
</cmp-field>
<cmp-field>
<field-name>certificateSerial</field-name>
</cmp-field>
<cmp-field>
<field-name>groups</field-name>
</cmp-field>
<primkey-field>username</primkey-field>
</entity>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sergei Batiuk
Sent: Sunday, March 11, 2001 10:51 AM
To: Orion-Interest
Subject: UserManager
Could anyone please explain how to create a custom user manager for Orion?
What is the way to associate the users and groups in the database with the
roles and principal of the orion?