There probably isn't a way to do what you want.  Reading the specs for
EJB, you have to mention the roles in the ejb-jar.xml file.  The only
way around that is to role your role checking stuff.  The way I would
do it would be to come up with some general roles for the overall
security.  Something like User, Admin, Operator maybe.  They are so
general you could then make a bunch of sub-roles that would be more
dynamic.  You have to have some sort of mapping too.. if it's truly
dynamic set of roles.
I am assuming that you mean by dynamic, that one day you want a role
called foo, and then several days a role called bar, and then maybe
delete foo.  If that's the case, then you may also want to seriously
reconsider what you call a role.  Most of the roles should be fluid. 
You may have to get fairly fine grained on the roles if you want to get
really fluid with your users abilities.

--- Binoy <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
> Well i guess this is the third time i am forwarding this mail...
> probably
> nobody took notice of it ..
> 
> I want to integrate my OpenLDAP OpenLDAP-2.0.11 server  running on
> RedHat
> 6.2
> with JBoss 2.2.1-Tomcat 3.2.1 and utilize it for the
> security/authentication
> purposes..
> I have an idea what i want to achieve..but am not sure if that is
> possible
> with jboss or not. and so i need
> directions.
> I want role based security for my applications . and for which the
> principal
> / roles will be persistent on the OpenLDAP server. I want to
> authenticate
> the users based on the roles defined in the OpenLDAP server.. but i
> dont
> want to get a hard-coded solution....by mentioning the roles /
> principals in
> the deployement descriptors but want them to be dynamically loaded
> from the
> OpenLDAP server and then matched and authenticated accordingly.
> Is there any way i can achieve this ?
> Any kind of help or Lead will be appreciated :-)
> Thanks
> Binoy
> 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


=====
Grim Shieldsson (James A Barrows)
Acting Chieftain of Clan StormWolf
Barbarian Freehold Alliance
Oppurtunity doesn't knock.  It only presents itself after you kick down the door.
--Kyle Chandler

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to