[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-03-01 Thread changemylife
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 :

[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-03-01 Thread jaikiran
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

[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-03-01 Thread changemylife
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 |

[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-02-27 Thread aleksab
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 :

[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-02-20 Thread aleksab
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

[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-02-19 Thread smeaggie
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 |

[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-02-19 Thread aleksab
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

[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-02-19 Thread smeaggie
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 { |

[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-02-05 Thread zzztimbo
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 :