hello,

it seems client application can't find database.

I receive this message :
javax.security.auth.login.LoginException: javax.naming.NameNotFoundException: FwkDS 
not bound
        at 
org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:110)

My auth.conf :
 MyLogin
{
//Login Module Needed - I use Database (Note it correlates to what I had in 
login-config.xml
org.jboss.security.auth.spi.DatabaseServerLoginModule required 
dsJndiName="java:/FwkDS" principalsQuery="select PWPASWWORD from itcuser where NMNOM=?"
rolesQuery="select role, 'Roles' from itcuserrole where NMNOM=?";
};
//NOT 100% SURE IF THIS IS NEEDED, SINCE I HAVEN'T DONE THIS IN A WHILE AND I FORGET, 
//BUT IT'S IN MY FILE (Although I think it's not needed)
other
{
//DEFAULT CLIENT-LOGIN MODULE
org.jboss.security.ClientLoginModule required;
};

My security domain in login-config :
<application-policy name = "MyLogin"> 
    
       <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag 
= "required"> 

<module-option name = "dsJndiName">java:/FwkDS</module-option> 

<module-option name = "principalsQuery">select PWPASWWORD from itcuser where 
NMNOM=?</module-option> 

<module-option name = "rolesQuery">select role, 'Roles' from itcuserrole where 
NMNOM=?</module-option> 

</login-module>
   
</application-policy>

Thanks for your help

Antoine



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829740#3829740

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829740


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to