ForgeRock UnSummit in Bristol – March 2nd.

lp0_2813
Allan Foster, VP Global Partner Enablement, master of ceremony of the 2016 San Francisco UnSummit.

On March 2nd, ForgeRock will be hosting an UnSummit, a  free and open to all event, in Bristol.  In an “unconference” format, join us in the ForgeRock’s Bristol offices at Queen’s Square, for a day of discussions, presentations with users, deployers and developers of the ForgeRock Identity Platform.

 

Top 5 reasons why you (or your team) should join us?

  1. It’s a day for techie’s and nothing like a regular conference
  2. If you’re interested in identity or working on an identity project – it’s a must!
  3. There will be 30+ sessions to choose from during the day
  4. It’s a great opportunity to visit Bristol – one of Britain’s leading “Smart Cities”
  5. It’s complimentary so no charge to attend

You can register and find  more details on the ForgeRock website. And if you’re still hesitating, please check what TechSpark wrote about the coming UnSummit.

I’ll be attending the UnSummit and hope to see you there.

 


Filed under: General, Identity Tagged: Bristol, conference, ForgeRock, iam, identity, innovation, unconference

Installing OpenIDM with a MySQL Database

I mentioned some time ago in the OpenIDM beginner series that although the built in OrientDB is more than sufficient for development purposes as soon as you start getting serious you will want to install a proper database backend.

This is a quick blog to talk you through how to install OpenIDM on a database. In my case I am going to use MySQL ( MariaDB specifically ), steps for installing other databases are broadly similar.

Prerequisites

For this exercise please:

Steps

Installation

1. Create a directory for the environment, e.g. : /usr/local/env/demo
2. Unzip OpenIDM:
unzip openidm-4.5.0.zip

Open up openidm/conf/repo.orientdb.json  and take a quick look.


What we have here is a set of queries for the OOTB embedded OrientDB. We are going to replace this with a compatible SQL based version.


3. Run the following script to configure the OpenIDM schema:


mysql -u root -p < /usr/local/env/demo/openidm/db/mysql/scripts/openidm.sql


Here I run it for mysql against the root user. You will be asked for a password, please enter it. This script will create an openidm schema.


4. Next we need to run some additional scripts.


mysql -D openidm -u root -p < /opt/forgerock/openidm/db/mysql/scripts/activiti.mysql55.create.engine.sql
mysql -D openidm -u root -p < /opt/forgerock/openidm/db/mysql/scripts/activiti.mysql55.create.history.sql


mysql -D openidm -u root -p < /opt/forgerock/openidm/db/mysql/scripts/activiti.mysql.create.identity.sql


These scripts set up the Activiti BPMN workflow engine in the openidm database instance we just created.


5. Now lets remove the original repo.orientdb.json file. Don’t forget to do this step! I’d also suggest making a backup:


cd /usr/local/env/demo/openidm/conf


mkdir backup


mv repo.orientdb.json backup


6. Next we need to copy over the database specific configuration files:


cd /usr/local/env/demo/openidm
cp db/mysql/conf/repo.jdbc.json conf
cp db/mysql/conf/datasource.jdbc-default.json conf


Again, let’s take a quick look at these files , repo.jdbc.json:



You’ll notice that what we have is an SQL version of the repo file we looked at earlier, ready to execute queries against a MySQL like database. There is also one other notable difference:



The original repo did not have this line. Well, this line is used to specify the datasource to be used i.e. our MySQL database, and it refers to the second file we copied over datasource.jdbc-default.json:



8. Ensure that the useDataSource (default) value matches the datasource specification datasource.jdbc-default.json


9. Configure the datasource.jdbc-default.json file for your MySQL database. Specifically the jdbcUrl, databaseName, username and password.


10. Update workflow.json to use the same datasource i.e. default.


To be very clear, if you named your datasource specification datasource.jdbc-example.json then your useDataSource value should be example in the files above.


11. That’s it. You should be able to start openidm up normally:


/startup.sh