example use login.config

33 views
Skip to first unread message

fiorenzino

unread,
Nov 1, 2010, 12:59:35 PM11/1/10
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

Gurkan Erdogdu

unread,
Nov 3, 2010, 3:34:55 AM11/3/10
to siwpas-d...@googlegroups.com
Hi

We do not use OpenEJB security features. For the time being, SIwpas uses Tomcat security that is configured in Engine level.

We will add Host and Context Level security features of Tomcat on CR6.

--Gurkan

2010/11/1 fiorenzino <fiore...@gmail.com>



--
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com
Reply all
Reply to author
Forward
0 new messages