users@glassfish.java.net

Re: Relationship between custom realm and default jdbcRealm

From: <glassfish_at_javadesktop.org>
Date: Thu, 10 Jun 2010 00:00:55 PDT

Hi,

When you created the JDBCRealm you determined it with "JAAS Context: jdbcRealm" this is the key of Login.conf.

Attila.

Create JDBCRealm:
-----------------------------
In the Glassfish admin panel:
Configuration->Security->Realm, select 'new'
Name: helloRealm
Class Name: com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm

JAAS Context: jdbcRealm
JNDI: jdbc/auth
User Table: usertable
User Name Column: username
Password Column: password
Group Table: grouptable
Group Name Column: groupname
Digest Algorithm: none
<OK>
[Message sent by forum member 'aszomor']

http://forums.java.net/jive/thread.jspa?messageID=473684