RE: how to set role for JAASRealm

2007-03-07 Thread Caldarale, Charles R
> From: Page, Steve C. [mailto:[EMAIL PROTECTED] > Subject: RE: how to set role for JAASRealm > > Since I extended Principal, I also needed to extend > BaseRealm. That doesn't necessarily follow. We're using custom Principal, RolePrincipal, and LoginModule class

RE: how to set role for JAASRealm

2007-03-07 Thread Page, Steve C.
Shahab- I am hardly an expert, but I have just created a custom principal. Here is what I learned. The RealmBase class is responsible for creating principals for the context. Normally, this is just a Principal class. Since I extended Principal, I also needed to extend BaseRealm. The realm class m

Re: how to set role for JAASRealm

2007-03-07 Thread olivier nouguier
Hi First of all, are you sure a JDBCRealm or a DataSourceRealm do not fill your needs ? Secondly, AFAIK when providing a Jaas module to the JaasRealm you just need to provide the authentication method (LoginModule inteface). You don't have to manipulate the loginContext, it is the JaasRealm job .

RE: how to set role for JAASRealm

2007-03-06 Thread Caldarale, Charles R
> From: shahab [mailto:[EMAIL PROTECTED] > Subject: how to set role for JAASRealm > > I have also made entries in server.xml as follows (i set > debug to 0 hoping for more debug info, The value "0" provides minimal diagnostic information; "99" is what you really want. Check all the logs to mak