From: Vance K. <va...@us...> - 2006-02-23 08:38:59
|
User: vancek Date: 06/02/23 00:38:10 Modified: andromda-ejb3/src/site/xdoc howto8.xml Log: added schema table ddl for principal and role Revision Changes Path 1.2 +23 -2 cartridges/andromda-ejb3/src/site/xdoc/howto8.xml Index: howto8.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto8.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- howto8.xml 23 Feb 2006 08:24:52 -0000 1.1 +++ howto8.xml 23 Feb 2006 08:38:09 -0000 1.2 @@ -25,7 +25,7 @@ </p> <p> Once you have done that, the cartridge will create the login-config deploy descriptor - for JBoss. It's contents between the <code>policy</code> elemtns should be copied to the + for JBoss. It's contents between the <code>policy</code> elements should be copied to the JBoss server container 'conf' folder login-config.xml. The file will look like: <source language="xml"><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> @@ -69,7 +69,7 @@ You will need this file if you are outside of the server JVM to be able to authenticate your credentials. This file needs to be in your classpath when you run your external client. -<source language="xml"><![CDATA[ +<source><![CDATA[ howtomodel { // jBoss LoginModule org.jboss.security.ClientLoginModule required @@ -81,6 +81,27 @@ System.setProperty("java.security.auth.login.config", "./auth.conf"); ]]></source> </p> + <p> + Remember that you will need to create your table schema corresponding to the authentication + policy defined in login-config.xml. The DDL would look something like the following if you + were using MySQL: +<source><![CDATA[ +create table principal +( +PRINCIPAL_ID varchar(64) not null default '', +PASSWORD varchar(64) default NULL, +PRIMARY KEY(PRINCIPAL_ID) +); + +create table role +( +PRINCIPAL_ID varchar(64) not null default '', +ROLE varchar(64) default NULL, ROLE_GROUP varchar(64) default NULL, +PRIMARY KEY(PRINCIPAL_ID) +); +]]></source> + + </p> </subsection> <a name="Modelling"/> <subsection name="Modelling"> |