[JBoss-user] [Security & JAAS/JBoss] - Re: standalone EJB client and JASS

2005-09-17 Thread jaikiran
Datasources are not available outside the virtual machine View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3895282#3895282 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3895282 ---

[JBoss-user] [Security & JAAS/JBoss] - Re: standalone EJB client and JASS

2005-09-16 Thread wats
When I try to use DatabaseServerLoginModule defined in the following local myLogin.conf file | ehelp { | org.jboss.security.auth.spi.DatabaseServerLoginModule required | dsJndiName="java:/PostgresDS" | principalsQuery="select hashedpassword from EMPLOYEES where login=?" | rolesQuery="s

[JBoss-user] [Security & JAAS/JBoss] - Re: standalone EJB client and JASS

2005-09-16 Thread jaikiran
Ya, you are right, that code wont be working for the requirement you are mentioning. "wats" wrote : I tried using DatabaseServerLoginModule, but it seems it is not able to acces the DataSource in the application server. | Whats the exact problem you are facing while using DatabaseServerLogi

[JBoss-user] [Security & JAAS/JBoss] - Re: standalone EJB client and JASS

2005-09-16 Thread wats
Hello, Thanks jaikiran for your help, but the solution you posted is not what I was looking for. I was using similiar code in my app (ClientLoginModule etc.) and also tested yours, but the authentication seems to work every time, whatever the login/pass values are. If the login information is n

[JBoss-user] [Security & JAAS/JBoss] - Re: standalone EJB client and JASS

2005-09-16 Thread jaikiran
Hi, You can use the "client-login" LoginModule for the JAAS login. As you mention, that this is a standalone client accessing an ejb, you would require a file(say myLogin.conf) containing the login modules as follows: client-login{ |org.jboss.security.ClientLoginModule required; |