I want to use Integrated authentication using jdbc connector in Teiid. I have tried to create a connecton to Database using:
1. Create Teiid Model Project-> Source ->Import->JDBC Connection
2. I see a feature called integrated security checkbox in Specify a Driver and Connection profile.
When i am inserting values there , it is giving me an error. I want to understand if it is supported by Teiid or not
Yes, this is supported as general JBoss EAP feature, but there is no tooling support like in the Teiid Designer as you describe above.
When you create a data source configuration for Oracle in JBoss EAP, define "security-domain", and then configure a JAAS based security domain that based on Caller Idenity Login Module. See https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Data_Services/5/html/Data_Services_Administration_Guide/chap-Login_Modules.html
Once you configure that, if Oracle source is being used as one of the sources under Teiid VDB, then the credentials used to log into Teiid will be used to issue queries on Oracle.
Related
I develop Spring Boot Rest API project using JDBC and the database is PostgreSQL. I added authorization with Keycloak. I wanna use User Federation because I would like to use Users in my PostgreSQL DB. How can I use it and other ways not to use User Federation?
I have faced the same problem recently. I have different clients with different RDBMS, so I have decided to address this problem so that I could reuse my solution across multiple clients.
I published my solution as a multi RDBMS implementation (oracle, mysql, postgresl, sqlserver) to solve simple database federation needs, supporting bcrypt and several types of hashes.
Just build and deploy this solution on keycloak and configure it through the admin console providing jdbc connection string, login, password, the required SQL queries and the type of hash used.
Feel free to clone, fork or do whatever you need to solve your issue.
GitHub repo:
https://github.com/opensingular/singular-keycloak-database-federation
I'm doing similar development but with Oracle and JSF.
I created a project with three classes:
one implementing UserStorageProvider, UserLookupProvider and CredentialInputValidator
one implementing UserStorageProviderFactory
one extending AbstractUserAdapter
Then I created another project which creates an ear file containing the jar file generated in the previous project plus the driver jar file (of PostgreSQL in your case) inside a lib folder.
Finally the ear file is copied in the /opt/jboss/keycloak/standalone/deployments/ folder of the Keycloak server and it gets autodeployed as a SPI. It's necessary to add this provider in the User federation section of the administration application of Keycloak.
I am using Mobilefirst 8.0. I wanted to connect my hybrid application to DB2 database and create table in that and retrieve data from this. I just came to know after reading some documents that have to use sql adapter. but
1) how to configure and add external dependancies of JDBC driver?
2) Can I do this from my local developer server?
Please any one can guide me.
You have several questions there...
I wanted to connect my hybrid application to DB2 database and create table in that
To create a DB2 database and table in it, you need to install DB2 and create a table in it. This is not related to IBM MobileFirst. Consult the DB2 documentation.
... and retrieve data from this. I just came to know after reading some documents that have to use sql adapter.
In IBM MobileFirst Foundation 8.0 you can create either a Java adapter or a JavaScript adapter, depending on your proficiency and your project requirements.
In a Java adapter it is expected that you will create and handle the database connection as is standard in Java programming.
Read more about creating Java adapters: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/java-adapters/
Read more about SQL in Java adapters: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/java-adapters/java-sql-adapter/
In JavaScript adapters, MobileFirst Server takes care of many aspects, but you still need to do some minimal configurations, such as providing the database URL, and the username and password for it.
Read more about JavaScript adapters: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/javascript-adapters/
Read more about SQL JavaScript adapters: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/javascript-adapters/js-sql-adapter/
About retrieving data and display it, etc, there are plenty of existing questions about this in Stack Overflow. Simply search for some implementation pointers.
How to configure and add external dependancies of JDBC driver
In MobileFirst Foundation 8.0 adapters are actually Maven projects. As such dependencies such as database connectors are handled via the Maven dependencies mechanism.
Learn more about adapters in general: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/
Learn how to creating adapters and adding dependencies: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/creating-adapters/
Since you're using DB2, you need to search the Maven repository for a DB2 connector and add it to your adapter's pom.xml file, then build the adapter to verify that it manages to pull the connector and that there are no compilation errors.
The example SQL adapter provided in the links above defined a connector for a MySQL database in its pom.xml. You can base your adapter on the changes made in that sample adapter.
For example:
<dependency>
<groupId>com.ibm.db2.jcc</groupId>
<artifactId>db2jcc</artifactId>
<version>3.8.47</version>
</dependency>
<dependency>
<groupId>com.ibm.db2.jcc</groupId>
<artifactId>db2jcc_license_cu</artifactId>
<version>3.8.47</version>
</dependency>
Can I do this from my local developer server?
This is not related to the server. It is all done in the adapter.
I'm trying to configure IBM Cognos 10.2.1 with IBM DB2 - 10.5.1 on AIX 7.1. The default installation (in cogstartup.xml) of Cognos comes with Derby database. Cognos with default configuration starts successfully. Dispatcher page comes up but with an error that indicates that Content Store (i.e. Derby) is not available.
However, if I replace the database with DB2, Cognos does not start properly i.e. dispatcher URL is inaccessible.
Can you please see what can be the issue?
Are you doing config for server end or framework manager client end? what i can tell you is once you passed config in FM and want to change it, you gotta remove two Pkey and comm folders before you trying to save your config
You might need to copy db2 jar files to cognos lib folder when you change the database from Derby to DB2, directly edit the cogstartup.xml with DB2 data configurations.
I want to know the steps for connecting to DB2 using RSA 9.0. I tried the below steps but I am not able to see any schema after connecting.
Opened Database development perspective
Right clicked on Database Connections and clicked on Add Repository
I have only 2 connection profile types listed -Derby and Generic JDBC (I am not sure whether this is the problem as I dont see DB2)
I selected Generic JDBC and clicked on Next
I clicked on new driver configuration add db2 jar (I have tried with db2jcc.jar as well as db2jcc4.jar) and provided the properties
For driver class, I clicked on Available classes from Jar list and used browse for class option. Here I selected com.ibm.db2.jcc.DB2Driver
I have given the connection url in the below format
jdbc:db2://DBServer:port/DBName
When I test the connection it shows ping succeeded. But when I try to open the schemas its blank
When I checked with my colleagues, they get DB2 connection profile in RSA. Let me know is there any option for me to add it.
I got the solution for this. In IBM installation manager, click on modify and select the language. Then in the list of available components select Data tools. Once installed, DB2 connection profile with IBM data server Driver will be available. Hope this helps.
There are couple of datasource configuration files for XA and NON-XA datasource in JBOSS v4.2.3 for the various need of the deployed applications in the jboss environment. Also the DB passwords are encrypted using the JBOSS provided techniques (some datasources are created using JaasSecurityDomain and some use SecureIdentityLoginModule) .
How these datasource configurations and these encryption methodologies are going to behave in jboss v5 and jbossv7 ?
Is there any JBOSS tool/utility to convert the datasource to the corresponding new JBOSS version and also take care of the encryption password part ?
What is the best way to migrate these datasources created with the password encrypted.
Any help in this topic is highly appreciated .
Regards,
Jiten
Take a look at Windup project http://windup.jboss.org/
that is aiming to provide as automated upgrade as possible.