|
From: emmaueze <nu...@jb...> - 2004-04-07 14:58:35
|
I have got JBoss-3.2.4RC1 and succeeded in generating the encryted password but Jboss keep throwing the following exception each time I try to access a page that makes a DB connection via JNDI :
java.lang.SecurityException: Invalid authentication attempt, principal=null
I added the following lines to login-config.xml:
<application-policy name = "MsqlDbRealm">
<login-module code = "org.jboss.resource.security.SecureIdentityLoginModule"
flag = "required">
<module-option name = "username">theuser</module-option>
<module-option name = "password">3f1eade193525626</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=MYDATASRC</module-option>
</login-module>
</application-policy>
I also added the following line to mssql-ds.xml
<security-domain>MsqlDbRealm</security-domain>
I'm connecting to an MSSQL 2000 DB. Everything is normally alright when I supply my DB username and password directly in mssql-ds.xml
How do I get the encrypted DB factory password to work?
Thanks
Emmanuel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829644#3829644
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829644
|