Thanks for the reply. Indeed developing a custom realm could be a
solution. But I was thinking if there would be a way to define several
realms in the web.xml instead of having custom realm.
Ali
On 2014-11-28 07:05, William wrote:
> maybe you can write your custom Realm, which
> extends com.sun.appserv.security.AppservRealm
>
>> On Nov 27, 2014, at 8:34 PM, Ali Gholami <gholami_at_kth.se
>> <mailto:gholami_at_kth.se>> wrote:
>>
>> My web application needs uses two different custom authentication
>> realms for two groups of users. I wonder if it is possible to have
>> two different realms in one web.xml, eg LDAP and JDBC realms. I'm
>> using Glassfish 3.1.2.2.
>>
>> Ali
>