Hi,

I tested other configuration. in login-config.xml I defined this:

<application-policy name = "mmcms">
<authentication>
<login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">
<module-option name = "dsJndiName">java:/DefaultDS</module-option>
<module-option name = "principalsQuery">select password from principals where principal=?</module-option>
<module-option name = "rolesQuery">select role, 'Roles' from roles where principal=?</module-option>
</login-module>
</authentication>
</application-policy>


I created the principals and roles table in my db with data. the first query will be sended by JBoss to my PostgreSQL db, but:

LOG: query: select password from principals where principal=null

why ist principal=null? my values for InitialContext are:

initial.context.factory=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
provider.url=http://localhost:8080
security.principal=mmcms
security.credentials=mmcms

principals table has entry:
principal=mmcms,password=mmcms

roles table has entry:
principal=mmcms,role=mmcms


I have no idea.



Best Regards, Rafal

At 06:42 12.03.2003 -0800, Scott M Stark wrote:
Security is not enabled unless you set the security-domain element in the
jboss.xml descriptor as described in the quick start guide. Set that and
try your example.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

----- Original Message -----
From: "Rafal Kedziorski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 4:16 AM
Subject: [JBoss-user] security question


> hi, > > I have a small problem with security, which I'm testing now. > > I'm working with JBoss 3.0.6 and J2SE 1.4.1_02. My ejb-jar.xml looks so:



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to