fiorenzino
unread,Nov 1, 2010, 12:59:35 PM11/1/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SIwpas Discussion
Hi,
can someone submit an example to use a login.config in a web
application?
In jboss i use jboss-web.xml for declaring some like this:
<security-domain>java:/jaas/GestOrdCL</security-domain>
to complete security-constraint declaration in web.xml.
And in Siwpas I would like to use login.config like this:
SQLLogin {
org.apache.openejb.core.security.jaas.SQLLoginModule required
dataSourceName="testTRANS"
userSelect="SELECT user, password FROM users WHERE user = ?"
groupSelect="SELECT user, grp FROM groups WHERE user = ?";
};
Some questions:
1) Do can i declare this in META-INF/openejb.xml? if not, can i deploy
a file login.config in a war file?
2) How is possible to declare what SQLLoginModule use a specific web
application?
bye
fiorenzo