Hi!
I have same problem. I wonder that some informations that user entered
(username and passwd) were encoded ? Some informations that get from mySQL is
plain text ! So they can't match !
Have any ideal ? Thanks!
View the original post :
aleksab wrote : What about when you want to secure a client?
|
| I've added a policy to the conf/login-config.xml, which seems to work. It
connects to the database, but the username is always null (found out by
examining the mysql log)
|
| In the client i'm using a LoginContext, and
Hi all!
Today, all things are ok (they worked!). My project is EJB3.0. Inside folder
\server\default\conf, I add some informations:
application-policy name = DB-Domain
|authentication
| login-module code =
org.jboss.security.auth.spi.DatabaseServerLoginModule
|
Are there really nobody who can help me here?
Have posted numerous requests and searched the web without any luck.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022938#4022938
Reply to the post :
Yeah, i've annotated the EJB with my security domain and allowed roles. This
works, since the exception (with no matching username) is thrown.
If somebody know what I'm doing wrong with the client, please inform me. Just
can not get the client to propagate the Jaas information to the EJB layer
don't know about jGuard, but this is JAAS with database login (a real quicky
tho, feel free to ask more).
1) setup the connection to the database. put a database-ds.xml file in the
deploy directory wich contains something like:
| datasources
| local-tx-datasource
|
What about when you want to secure a client?
I've added a policy to the conf/login-config.xml, which seems to work. It
connects to the database, but the username is always null (found out by
examining the mysql log)
In the client i'm using a LoginContext, and i've included
| login-module
ah that's quiet another story, I described securing a web app, not ejb's. You
must annotate the EJB's with the security domain and allowed roles, like this:
(assuming you work with EJB3 that is)
@Stateless()
| @SecurityDomain(exampleDomain)
| public class MyBean implements MyBeanRemote {
|
why hasn't anyone replied to this post? i have a similar interest in a good
tutorial on setting up JAAS in JBoss.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4011622#4011622
Reply to the post :