Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAZN/Custom JAAS LoginModule

302611Mar 2 2005 — edited Jun 13 2006
Hi all,

I have built a custom JAAS compliant LoginModule, but I don't seem to be able to get Embedded OC4J (within JDev) to pick it up.
I am trying to run with Basic authentication. If I have in my jazn-data.xml the following, I get normal JAZN authentication (and can log in with a jazn-data username & password).
<jazn-loginconfig>
<application>
<name>oracle.security.jazn.tools.Admintool</name>
<login-modules>
<login-module>
<class>oracle.security.jazn.realm.RealmLoginModule</class>
<control-flag>required</control-flag>
<options>
<option>
<name>addAllRoles</name>
<value>true</value>
</option>
<option>
<name>debug</name>
<value>false</value>
</option>
</options>
</login-module>
</login-modules>
</application>
</jazn-loginconfig>

But, if I change the class definition above to use my own CustomLoginModule thus:

<class>cqu.security.MyCustomLoginModule</class>

I don't get any errors in the OC4J log, nor do I even get asked for authentication details - the page is displayed without authentication.
While I would be happy even to see a ClassNotFound exception, ( I am quite prepared to admit the setup is far from perfect) I am stuck!
Can anyone point me in the right direction to track down any logs or maybe a Jdev 10.1.2 "How to implement a custom LoginModule - step by Step " right now I need to have it run in Embedded OC4J, but when I get that going I will need to deploy it out on IAS also.

I have already checked out the following, among other docs and this forum, and can't seem to find what I am looking for...

http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10325/configja.htm#1014810

regards
Brigette
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2006
Added on Mar 2 2005
31 comments
3,468 views