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
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.