[jboss-jira] [JBoss JIRA] (AS7-3824) Security domain ignored for resource adapters
Nicholas DiPiazza (JIRA)
jira-events at lists.jboss.org
Thu Jul 12 12:34:12 EDT 2012
[ https://issues.jboss.org/browse/AS7-3824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705739#comment-12705739 ]
Nicholas DiPiazza edited comment on AS7-3824 at 7/12/12 12:33 PM:
------------------------------------------------------------------
Agreed. I have JBoss 7.1.1.Final on CentOS6.2 64-bit, jdk 6, and I get this issue when trying to use Domain authentication from the SQL Server.
Driver "sqljdbc4.jar" deployed as a module.
standalone.xml:
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/NDD_DS" pool-name="NDD_DS" enabled="true" jta="true" use-java-context="true" use-ccm="true">
<connection-url>
jdbc:sqlserver://192.168.2.18;databasename=test;user=Administrator;username=Administrator;password=xxxxxxxx
</connection-url>
<driver>
microsoft
</driver>
<pool>
<min-pool-size>
0
</min-pool-size>
<max-pool-size>
10
</max-pool-size>
<prefill>
false
</prefill>
<use-strict-min>
false
</use-strict-min>
<flush-strategy>
FailingConnectionOnly
</flush-strategy>
</pool>
<security>
<security-domain>
COM
</security-domain>
<user-name>Administrator</user-name>
<password>xxxxxxxx</password>
</security>
</datasource>
<drivers>
<driver name="microsoft" module="com.microsoft.sqlserver">
<xa-datasource-class>com.microsoft.sqlserver.jdbc.SQLServerXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
Error:
10:52:04,351 ERROR [org.jboss.as.connector.subsystems.datasources.AbstractDataSo
urceService$AS7DataSourceDeployer] (MSC service thread 1-1) Exception during cre
ateSubject()PB00024: Access Denied:Unauthenticated caller:null: java.lang.Securi
tyException: PB00024: Access Denied:Unauthenticated caller:null
The same credentials work to connect from
was (Author: ndipiazza):
Agreed. I have JBoss 7.1.1.Final and I get this issue when trying to use Domain authentication from the SQL Server.
Driver "sqljdbc4.jar" deployed as a module.
standalone.xml:
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/NDD_DS" pool-name="NDD_DS" enabled="true" jta="true" use-java-context="true" use-ccm="true">
<connection-url>
jdbc:sqlserver://192.168.2.18;databasename=test;user=Administrator;username=Administrator;password=xxxxxxxx
</connection-url>
<driver>
microsoft
</driver>
<pool>
<min-pool-size>
0
</min-pool-size>
<max-pool-size>
10
</max-pool-size>
<prefill>
false
</prefill>
<use-strict-min>
false
</use-strict-min>
<flush-strategy>
FailingConnectionOnly
</flush-strategy>
</pool>
<security>
<security-domain>
COM
</security-domain>
<user-name>Administrator</user-name>
<password>xxxxxxxx</password>
</security>
</datasource>
<drivers>
<driver name="microsoft" module="com.microsoft.sqlserver">
<xa-datasource-class>com.microsoft.sqlserver.jdbc.SQLServerXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
Error:
10:52:04,351 ERROR [org.jboss.as.connector.subsystems.datasources.AbstractDataSo
urceService$AS7DataSourceDeployer] (MSC service thread 1-1) Exception during cre
ateSubject()PB00024: Access Denied:Unauthenticated caller:null: java.lang.Securi
tyException: PB00024: Access Denied:Unauthenticated caller:null
> Security domain ignored for resource adapters
> ---------------------------------------------
>
> Key: AS7-3824
> URL: https://issues.jboss.org/browse/AS7-3824
> Project: Application Server 7
> Issue Type: Bug
> Components: JCA, Test Suite
> Affects Versions: 7.1.0.Final
> Reporter: Jesper Pedersen
> Assignee: Anil Saldhana
> Fix For: 7.1.1.Final
>
>
> Creating RA with security domain authentication failed:
> [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) IJ020007: Exception during createSubject(): PB00024: Access Denied:Unauthenticated caller:null: java.lang.SecurityException: PB00024: Access Denied:Unauthenticated caller:null
> at org.jboss.security.plugins.JBossSecuritySubjectFactory.createSubject(JBossSecuritySubjectFactory.java:89) [picketbox-4.0.6.final.jar:4.0.6.final]
> at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer$1.run(AbstractResourceAdapterDeployer.java:2242) [ironjacamar-deployers-common-1.0.7.Final.jar:1.0.7.Final]
> at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer$1.run(AbstractResourceAdapterDeployer.java:2237) [ironjacamar-deployers-common-1.0.7.Final.jar:1.0.7.Final]
> at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_23]
> at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createSubject(AbstractResourceAdapterDeployer.java:2236) [ironjacamar-deployers-common-1.0.7.Final.jar:1.0.7.Final]
> at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2018) [ironjacamar-deployers-common-1.0.7.Final.jar:1.0.7.Final]
> at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1030) [ironjacamar-deployers-common-1.0.7.Final.jar:1.0.7.Final]
> at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService$AS7RaDeployer.doDeploy(ResourceAdapterDeploymentService.java:171)
> at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:100)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]
> at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list