On Monday, February 3, 2003, at 12:01 PM, Stefano Maestri wrote:

Il lun, 2003-02-03 alle 16:03, David Jencks ha scritto:

I'm very interested in this login module. Can you supply it as a
"patch" in the sourceforge tracker? Otherwise I may lose track of it
before I can review and commit it.



I'd glad to do it when it will work in ByContainer Mode

Offhand it seems to me that the LoginModule should only work if the
criteria was ByContainer. 


As I said it works only in ByApplication criteria

Are you calling ds.getConnection() or
ds.getConnection(user, pw)? 


the last one.

If you call ds.getConnection(user, pw) you MUST NOT provide a LoginModule and you must use the ByApplication criteria if your adapter does not support reauthentication or ByNothing if it does. Login modules are for use only with Container manager security, which basically means you always call ds.getConnection().

thanks
david jencks
Can you check the code in
XAManagedConnectionFactory.matchManagedConnection and
BaseWrapperManagedConnectionFactory.getConnectionProperties to see if
it is obvious why the match is failing? You might need to modify the
OracleXAManagedConnectionFactory to provide more suitable matching
behavior. (I'm looking at jboss head for these classes).

I'm taking a look.
Thanks for the interest.


thanks

david jencks


<excerpt>Hi guys,


I wrote a login module specific for Oracle DataBase, that try to
authenticate a user on Oracle DataSource and map Oracle Role on J2ee
Role. I think it could be very interesting for guys that have jboss
and Oracle together, because you could manage roles and user just in
one enviroment.

I tried it on my enviroment and seems to work only if I set in
Oracle-xa-service.xml


<<attribute name="Criteria">ByApplication<</attribute>


If I set it to ByContainer I get this error:


15:14:02,562 WARN  [JBossManagedConnectionPool] Destroying connection
that could not be successfully matched:
<underline><color><param>1999,1999,FFFF</param>org.jboss.resource.adapter.jdbc.xa.oracle.XAOracleManagedConnection@462631


</color></underline>And connection still Opened on the DB.

Could you please explain me what's happen. Thank you in advance

BTW I attached my source, what about it? Couldn't it be useful for
anyone?


</excerpt><<image.tiff>

<excerpt>

<<OracleServerLoginModule.java></excerpt>




<image.tiff>

Reply via email to