Hi Brian,

Sorry that my response was aimed at web apps and didn't help. Of course, JAAS originated for the desktop and only became completely integrated into JEE recently. As I mentioned, there's plenty of LDAP code and JAAS tutorials around. If you run into problems, or even as initial research, there is the OpenJDK project at:

http://openjdk.java.net/

I didn't check specifically, but I assume the code for JndiLoginModule is available there. It may be in the standard source download as well. That should give you a running start.


Joe Sam

Joe Sam Shirah - http://www.conceptgo.com
conceptGO - Consulting/Development/Outsourcing
Java Filter Forum: http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International? http://www.jguru.com/faq/I18N
Que Java400? http://www.jguru.com/faq/Java400

----- Original Message ----- From: "Brian Leathem" <bleathem@xxxxxxxxx>
To: "Java Programming on and around the iSeries / AS400" <java400-l@xxxxxxxxxxxx>
Sent: Friday, November 16, 2007 9:35 AM
Subject: Re: JAAS, LdapLoginModule - no groups


Joe Sam Shirah wrote:
First question is, do you need JAAS? Most app servers allow you to set
the default security mechanism (like LDAP) and you can use form based
authentication, which should also pick up the groups.
...
If JAAS is necessary, you're probably better off just writing it
yourself with a LoginModule implementation instead of trying to get
something with built-in restrictions (like JndiLoginModule) to work.
There's plenty of LDAP access code around. You can also look at something
like jGuard, but third party add-ons often use additional application
filters. App filters are great, but you can be surprised when and how often
they run.


Thanks for the feedback Joe. I'm looking at using JAAS for Swing apps
(deployed with Web Start). I was initially quite excited to see the
LoginModule implementations in JDK6, in fact it motivated me to migrate
all our Swing code to Java6. I was quite disappointed when I came to
the actual implementation to find these various short comings.

So I guess I'll bite the bullet, and write my own LoginModule. I
suppose at the least I'll learn something from the exercise :P

Brian



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.