-
1. Re: Error on deploying a cmp bean
noel.rocher Nov 4, 2002 8:02 AM (in response to dragospd)Hi,
As your xxx-service.xml should tell you, JAAS information should be configured in your login-config.xml in the conf directory of your server (probably the "default" one)
Hope this helps.
Noel -
2. Re: Error on deploying a cmp bean
dragospd Nov 5, 2002 3:48 AM (in response to dragospd)here is the login-config.xml part:
<application-policy name = "MySqlDBRealm">
<login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
flag = "required">
<module-option name="dsJndiName">
java:/MySqlDS
</module-option>
<module-option name="principalsQuery">
SELECT passwd FROM sgitest.user WHERE user_id=?
</module-option>
<module-option name="rolesQuery">
SELECT role_id, 'roles' FROM user2role
WHERE user_id=?
</module-option>
<module-option name="managedConnectionFactoryName">
jboss.jca:service=LocalTxDS,name=MySqlDS
</module-option>
</login-module>
</application-policy>
i read jboss tutorial where, for databaseserverloginmodule there is no "principal" module-option entry (and it's seems logical for me). On the other side in the example directory of jboss with mysql-service.xml example, in login module configuration part written as an example to put in login-config.xml there are almost total different module-options (principal, username, password). my question is: witch one configuration is correct since I want to use jaas with databaseserverloginmodule as authentication module.
And one more question here: where I have to put database connection username and password? in url connection string? in mysql-service.xml config-property entries(Username and Password)?
thanks for your time
Dragos