dferugson wrote:
> Oleg Nitz wrote:
>> 
>> Ferguson, Doug wrote:
>> > I am currently tryint to write a loginModule that
>> > uses DBAuthentication and uses roles.
>> BTW, you don't need to re-implement DBAuthentication, you can use
>> DatabaseServerLoginModule and write your own login module that just
>> sets user roles for the Subject. These server login modules then
>> should appear in auth.conf one below another in the same application
>> entry.
>> 
>> Oleg

> Whoa. I was just extending the existing DatabaseServerLoginModule.
> Wouldn't it make sense to query the roles when I query the password =
> only on dB hit.
Yes, it makes sense.

> PS, I am not sure how it would work with 2 modules.
It would call it one by one with the same Subject instance,
as Edward pointed out.

Oleg



Reply via email to