How to configure JAAS JDBC authentication with MSSQL jtds driver ?
Issue
-
While trying to use A-MQ to authenticate and retrieve roles from external database table by using JAAS JDBC. For this, The documentation was found with some basic information and sample configuration. https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_A-MQ/6.1/html/Security_Guide/ESBSecureContainer.html#ESBSecureJAASAuth
-
It mentions that the blueprint configuration file should be exposed as osgi service in order to use
"jaas:jdbc"feature. We created the jar files using blueprint configuration (one for datasource and second for jaas config as suggested in the doc). Not sure how to expose these as service. Is it enough to keep it inside system folder:
$AMQ_HOME\system\org\apache\karaf\jaas\org.apache.karaf.jaas.config\2.3.0.redhat-60024
- Also tried to install the jar using
osgi:install -s file:C:/jboss-a-mq-6.0.0.redhat-024/system/org/apache/karaf/jaas/org.apache.karaf.jaas.config/2.3.0.redhat-60024/test_jdbc_ds_config.jar
-
But above returns error saying
"error executing command - error executing bundles". So no progress could be made on this despite reading lots of scattered documentation. -
What is the step by step instruction to use JAAS JDBC module in A-MQ product.
Environment
- Red Hat JBoss A-MQ
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
