Well I did it.
I try to explain briefly what I did.
I extended UsernamePasswordLoginModule, making user/password test and
Roles recovery with a special connection made with DriverManager. Then I
added code to make this LoginModule to be a LoginModule that knows it is
working with a ManagedConnectionFactory starting from code of
CallerIdentity Login Module. Then I configured a DataSource with
SecurityDomainJndiName pointing to a security domain configure with this
module and Criteria setted at ByContainer. Then I wrote a StupidServlet
that do a getConnection on that Datasource and does a "select USER from
DUAL", configuring security-domain in jboss-web.xml at the same
jndiName, and web.xml to put my StupidServlet in a security constraint
based on Oracle's Roles name.
Then when I try servlet it ask me log and password, authenticate over my
Login Module using rightly Oracle's Roles, get Connection with correct
user and give me a correct output.
I think I could say that it works!!
If you are still interested I'll send you the code asap (It need a
little style clean up and some log removing :) )
Thanx for the help
Il mar, 2003-02-04 alle 16:34, Stefano Maestri ha scritto:
> More clear now. I'm sorry to took your time.
> So, I took a look, and I think I could do something like the
> CallerIdentityLoginModule adding a special connection from
> DriverManager to authenticate user over Oracle and get Roles. I'm
> going to try. Thanks alot for the support. I'll let ypu know how
> things will go on.
>
> bye
>
> Stefano
>
--------------- all work and no play makes Jack a dull boy
---------------
bye Stefano
[EMAIL PROTECTED]
www.javalinux.it
MSN messanger: [EMAIL PROTECTED]
ICQ uin: 122192578
Jabber: canezen
#jedit IRC channel as <maeste>
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development