users@glassfish.java.net

Re: debugging JDBCRealm configuration

From: Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM>
Date: Thu, 08 Feb 2007 11:06:27 -0800

krishna unni wrote:
> if we are using db tables for user/group/role mapping
> do we still need sun-web.xml??
>
The database table only have user and groups, but not roles.
Yes, unless you turn on default principal to role mapping.
> /unni
> --- Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM> wrote:
>
>
>> glassfish_at_javadesktop.org wrote:
>>
>>> Thank you for replying.
>>>
>>> We discovered something that has allowed us to get
>>>
>> JDBCRealm to work. There is
>>
>>> an important piece that is not covered in the
>>>
>> developinjava article: a sun-web.xml
>>
>>> configuration file that contains some role-mapping
>>>
>> tags.
>>
>>>
>>>
>> The security-role-mapping is needed for GlassFish
>> application.
>> But one can also have a default
>> security-role-mapping generated in
>> deployment time by
>> turning on default principal to role mapping in
>> admin GUI and then
>> "restart the server".
>> Then all the newly deployed application will have a
>> default principal to
>> role mapping if there is no security-role-mapping
>> there.
>>
>>> The example application mentioned at the very
>>>
>> bottom of the article does contain
>>
>>> a sun-web.xml file, however, and it was the
>>>
>> missing piece in our case.
>>
>>> [Message sent by forum member 'pohl' (pohl)]
>>>
>>>
>>>
> http://forums.java.net/jive/thread.jspa?messageID=202568
>
>>>
> ---------------------------------------------------------------------
>
>>> To unsubscribe, e-mail:
>>>
>> users-unsubscribe_at_glassfish.dev.java.net
>>
>>> For additional commands, e-mail:
>>>
>> users-help_at_glassfish.dev.java.net
>>
>>>
>>>
>>
> ---------------------------------------------------------------------
>
>> To unsubscribe, e-mail:
>> users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail:
>> users-help_at_glassfish.dev.java.net
>>
>>
>>
>
>
> Unnikrishnan.K.V
> Sun Microsystems, Bangalore.
>
>
>
> ____________________________________________________________________________________
> Cheap talk?
> Check out Yahoo! Messenger's low PC-to-Phone call rates.
> http://voice.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>