[jboss-user] [JCA/JBoss] - Re: Using custom security domain to use encrypted password
priyankalavti
do-not-reply at jboss.com
Tue Jul 29 04:05:32 EDT 2008
here are the logs after enabling trace on the server.
Please notice the time difference of colored logs.
2008-07-25 16:40:34,369 INFO [STDOUT] Entering getDbConnection method
2008-07-25 16:40:34,370 TRACE [org.jboss.security.SecurityAssociation] getPrincipal, principal=id=admin,ou=user,dc=test,dc=com
2008-07-25 16:40:34,370 TRACE [org.jboss.security.plugins.JaasSecurityManager$DomainInfo] destroy, subject=Subject:
Private Credential: javax.resource.spi.security.PasswordCredential at 1ab2f
, this=org.jboss.security.plugins.JaasSecurityManager$DomainInfo at 15e5335[Subject(7975210).principals=,credential.class=java.lang.String at 4337374,expirationTime=1216984219275], activeUsers=0
2008-07-25 16:40:34,370 TRACE [org.jboss.security.plugins.JaasSecurityManager$DomainInfo] logout, subject=Subject:
Private Credential: javax.resource.spi.security.PasswordCredential at 1ab2f
, this=org.jboss.security.plugins.JaasSecurityManager$DomainInfo at 15e5335[Subject(7975210).principals=,credential.class=java.lang.String at 4337374,expirationTime=1216984219275]
2008-07-25 16:40:34,370 TRACE [org.jboss.resource.security.SecureIdentityLoginModule1] getIdentity called, username=testuser
2008-07-25 16:40:34,370 TRACE [org.jboss.security.plugins.JaasSecurityManager.EncryptDBPassword] Begin isValid, principal:id=admin,ou=user,dc=test,dc=com, cache info: null
2008-07-25 16:40:34,370 TRACE [org.jboss.security.plugins.JaasSecurityManager.EncryptDBPassword] defaultLogin, principal=id=admin,ou=user,dc=test,dc=com
2008-07-25 16:40:34,397 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] Begin getAppConfigurationEntry(EncryptDBPassword), size=10
2008-07-25 16:40:34,397 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] End getAppConfigurationEntry(EncryptDBPassword), authInfo=AppConfigurationEntry[]:
[0]
LoginModule Class: com.test.security.jboss.loginmodule.DatabaseSecureLoginModule
ControlFlag: LoginModuleControlFlag: required
Options:name=managedConnectionFactoryName, value=jboss.jca:name=testjndi,service=LocalTxCM
name=password, value=TESTUSER_KEY
name=username, value=testuser
2008-07-25 16:40:34,398 TRACE [org.jboss.resource.security.AbstractPasswordCredentialLoginModule1] mcfname: jboss.jca:name=testjndi,service=LocalTxCM
2008-07-25 16:40:34,398 TRACE [org.jboss.resource.security.SecureIdentityLoginModule1] login called
2008-07-25 16:40:34,399 TRACE [org.jboss.security.plugins.JaasSecurityManager.EncryptDBPassword] defaultLogin, lc=javax.security.auth.login.LoginContext at 1d71519, subject=Subject(27927662).principals=
2008-07-25 16:40:34,399 TRACE [org.jboss.security.plugins.JaasSecurityManager.EncryptDBPassword] updateCache, inputSubject=Subject(27927662).principals=, cacheSubject=Subject(20835342).principals=
2008-07-25 16:40:34,399 TRACE [org.jboss.security.plugins.JaasSecurityManager.EncryptDBPassword] Inserted cache info: org.jboss.security.plugins.JaasSecurityManager$DomainInfo at 54b8e7[Subject(20835342).principals=,credential.class=java.lang.String at 4337374,expirationTime=1216984219275]
2008-07-25 16:40:34,399 TRACE [org.jboss.security.plugins.JaasSecurityManager.EncryptDBPassword] End isValid, true
2008-07-25 16:40:34,399 INFO [STDOUT] time taken in getDbConnection in millis...30
Regards,
Priyanka
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167244#4167244
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167244
More information about the jboss-user
mailing list